Skip to content

Commit

Permalink
fixed page input
Browse files Browse the repository at this point in the history
fixed Symfony 5 compatibility
  • Loading branch information
Fabricio872 committed Apr 16, 2021
1 parent e42e3d4 commit 5a80f46
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/Command/UserListCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5a80f46

Please sign in to comment.