Make adjustments for tests

This commit is contained in:
Dennis Eichhorn 2017-08-21 13:29:43 +02:00
parent 0767139593
commit 886d2beff5
2 changed files with 4 additions and 2 deletions

View File

@ -36,7 +36,7 @@ final class UnhandledHandler
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public static function exceptionHandler($e) /* : void */ public static function exceptionHandler(\Throwable $e) /* : void */
{ {
$logger = FileLogger::getInstance(__DIR__ . '/../Logs'); $logger = FileLogger::getInstance(__DIR__ . '/../Logs');
$logger->critical(FileLogger::MSG_FULL, [ $logger->critical(FileLogger::MSG_FULL, [
@ -104,6 +104,8 @@ final class UnhandledHandler
/** /**
* Shutdown handler. * Shutdown handler.
* *
* @return void
*
* @since 1.0.0 * @since 1.0.0
*/ */
public static function shutdownHandler() /* : void */ public static function shutdownHandler() /* : void */

View File

@ -197,7 +197,7 @@ class UriFactory
$pars[] = $key . '=' . $value; $pars[] = $key . '=' . $value;
} }
return $parts[0] . (empty($pars) ? '' : '?' . implode('&', $pars)); $url = $parts[0] . (empty($pars) ? '' : '?' . implode('&', $pars));
} }
return $url; return $url;