-
-
Notifications
You must be signed in to change notification settings - Fork 144
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
Ctype: Give the correct deprecations for PHP 8.1+ #504
base: 1.x
Are you sure you want to change the base?
Conversation
src/Ctype/composer.json
Outdated
@@ -16,7 +16,8 @@ | |||
} | |||
], | |||
"require": { | |||
"php": ">=7.2" | |||
"php": ">=7.2", | |||
"symfony/polyfill-php80": "^1.31" |
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.
why are you adding this dependency ?
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.
friendly up @BackEndTea
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.
This is due to the usage of get_debug_type
, since that was only added in PHP 8.0
I could switch it out with a gettype
call if we are willing to accept a slight mismatch in error messages.
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.
let's use gettype yes
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.
wait: get_debug_type is behind a PHP_VERSION_ID >= 80100
check so the polyfill is never needed
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.
Youre correct, i didnt realize that!
116cfd7
to
a56b42d
Compare
This isn't just for integers that are outside the integer range of -128, 255. https://3v4l.org/PgZ6c
a56b42d
to
7effac3
Compare
This deprecation isn't just for integers that are outside the integer range of -128, 255.
https://3v4l.org/PgZ6c