We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<?php abstract class AbstractConstants { public static function __callStatic($name, $arguments) { if (! isset($arguments) || count($arguments) === 0) { throw new \Exception('The Code is required'); } $code = $arguments[0]; $name = strtolower(substr($name, 3)); array_shift($arguments); $message = ''; $count = count($arguments); if ($count > 0) { return sprintf($message, ...(array) $arguments[0]); } return $message; } }
$ vendor/bin/phpstan analyse -l 5 index.php 1/1 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100% ------ -------------------------------------------------------------------- Line index.php ------ -------------------------------------------------------------------- 19 Comparison operation ">" between int<1, max> and 0 is always true. 23 Unreachable statement - code above always terminates. ------ -------------------------------------------------------------------- [ERROR] Found 2 errors
If the $arguments is [0], the operation ">" should between int <0, max>
The text was updated successfully, but these errors were encountered:
https://travis-ci.org/github/hyperf/hyperf/builds/738511548
Sorry, something went wrong.
Fixed: phpstan/phpstan-src@26d29ec
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
No branches or pull requests
If the $arguments is [0], the operation ">" should between int <0, max>
The text was updated successfully, but these errors were encountered: