Phpstan fixes

This commit is contained in:
Dennis Eichhorn 2018-09-22 12:41:14 +02:00
parent 8a91224f66
commit 3fbb441d13
3 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -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));

View File

@ -135,7 +135,7 @@ final class ModuleManager
*
* @param RequestAbstract $request Request
*
* @return array<string, array>
* @return array<string|int, array>
*
* @since 1.0.0
*/