diff --git a/composer.json b/composer.json index 3302c37..c0710a8 100644 --- a/composer.json +++ b/composer.json @@ -11,15 +11,15 @@ ], "require": { "php": "^7.2", - "symfony/config": "^4.4", - "symfony/dependency-injection": "^4.4", - "symfony/http-kernel": "^4.4", + "symfony/config": "^4.4|^5", + "symfony/dependency-injection": "^4.4|^5", + "symfony/http-kernel": "^4.4|^5", "symfony/orm-pack": "^2.1", - "symfony/security-bundle": "^4.4", - "symfony/serializer": "^4.4" + "symfony/security-bundle": "^4.4|^5", + "symfony/serializer": "^4.4|^5" }, "require-dev": { - "symfony/phpunit-bridge": "^4.4" + "symfony/phpunit-bridge": "^4.4|^5" }, "config": { "optimize-autoloader": true, diff --git a/src/Command/UserListCommand.php b/src/Command/UserListCommand.php index 204bce8..40fc5c7 100644 --- a/src/Command/UserListCommand.php +++ b/src/Command/UserListCommand.php @@ -84,7 +84,7 @@ private function draw(SymfonyStyle $io, int $page, int $limit) if (ceil($counetr / $limit) > 1) { $page = $io->ask("Page", ($page < ceil($counetr / $limit)) ? $page + 1 : null); - if (!is_int($page) || $page == null) { + if ((int)$page == 0) { $io->writeln('Bye'); return 0; }