-
Notifications
You must be signed in to change notification settings - Fork 28
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
PHP 7.2: Failure evaluating code: is_resource($handle) #36
Comments
Since this library supports both PHP 5 and 7, and assertions as language construct exist only since version 7.0, I'm not sure what's the best course of action here, should the library stop supporting PHP 5? Or should assertions be rewritten as |
@mekras I didn't mean to overstep, I just already had a working fix that I would like to share with you and the other contributors if it somehow saves you guys work. |
No worries. I would say this is perfect behavior to write an issue and then create a fix for it. I promise @mekras is super happy that you added a PR. |
Version 1.7.1 released. |
In
src/PromiseCore.php:79
, there are 2 assertions as string:This behavior is deprecated in PHP 7.2 (see http://php.net/manual/en/function.assert.php).
The text was updated successfully, but these errors were encountered: