-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
chore: @phpstan-ignore
for php version check
#8920
New issue
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
Conversation
@@ -35,6 +35,7 @@ set_error_handler(static function (int $severity, string $message, string $file, | |||
exit(1); | |||
} | |||
|
|||
// @phpstan-ignore smaller.alwaysFalse |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it possible to add a comment why we put this ignore, in-code ? so john doe won't wonder
php-cs-fixer
Outdated
@@ -35,7 +35,7 @@ set_error_handler(static function (int $severity, string $message, string $file, | |||
exit(1); | |||
} | |||
|
|||
// @phpstan-ignore smaller.alwaysFalse | |||
// @phpstan-ignore smaller.alwaysFalse (PHPStan knows ower min PHP version, but we want to check the min version here anyway) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ower? our?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
version here because entrypoint file allows wider PHP range than project itself
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(ref)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
Baseline entries are "todos", but this is not really fixable. So I suggest to use
@phpstan-ignore
here.