protected function getLastError() { if ($e = parent::getLastError()) { return $e; } return array('type' => E_WARNING, 'message' => 'Foo Bar', 'file' => '/tmp/foo', 'line' => 2); }