From 3fbb441d13bd60a5c7991d96ee7e6dbcb4e64f7e Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 22 Sep 2018 12:41:14 +0200 Subject: [PATCH] Phpstan fixes --- Dispatcher/Dispatcher.php | 4 ++-- Math/Statistic/MeasureOfDispersion.php | 2 +- Module/ModuleManager.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dispatcher/Dispatcher.php b/Dispatcher/Dispatcher.php index e0bd401ed..f34f2a583 100644 --- a/Dispatcher/Dispatcher.php +++ b/Dispatcher/Dispatcher.php @@ -32,7 +32,7 @@ final class Dispatcher /** * Application. * - * @var ApplicationAbstract + * @var ApplicationAbstract|null * @since 1.0.0 */ private $app = null; @@ -54,7 +54,7 @@ final class Dispatcher * * @since 1.0.0 */ - public function __construct(ApplicationAbstract $app = null) + public function __construct(ApplicationAbstract $app) { $this->app = $app; } diff --git a/Math/Statistic/MeasureOfDispersion.php b/Math/Statistic/MeasureOfDispersion.php index f4b9337e5..9ac55737e 100644 --- a/Math/Statistic/MeasureOfDispersion.php +++ b/Math/Statistic/MeasureOfDispersion.php @@ -235,11 +235,11 @@ final class MeasureOfDispersion --$count; } - /** @var int $count */ $count /= 2; \sort($x); + /** @var int $count */ $Q1 = Average::median(\array_slice($x, 0, $count)); $Q3 = Average::median(\array_slice($x, -$count, $count)); diff --git a/Module/ModuleManager.php b/Module/ModuleManager.php index c0e463930..77d8a0187 100644 --- a/Module/ModuleManager.php +++ b/Module/ModuleManager.php @@ -135,7 +135,7 @@ final class ModuleManager * * @param RequestAbstract $request Request * - * @return array + * @return array * * @since 1.0.0 */