diff --git a/Controller/ApiController.php b/Controller/ApiController.php index b3448eb..6a46adc 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -126,7 +126,7 @@ final class ApiController extends Controller */ private function createEmployeeFromAccountFromRequest(RequestAbstract $request) : array { - $accounts = $request->getDataList('profiles') ?? []; + $accounts = $request->getDataList('profiles'); $employees = []; foreach ($accounts as $account) { diff --git a/composer.json b/composer.json index b90cb5e..10044a1 100755 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ "friendsofphp/php-cs-fixer": ">=3.2", "squizlabs/php_codesniffer": ">=3.6", "phpmd/phpmd": ">=2.9", - "phpstan/phpstan": ">=0.12.58", + "phpstan/phpstan": ">=1.5.4", "phan/phan": ">=3.2.6" }, "minimum-stability": "dev",