-
Notifications
You must be signed in to change notification settings - Fork 2
Fix partially supported callables deprecation #18
Conversation
Pull Request Test Coverage Report for Build 2950452412
💛 - Coveralls |
@@ -18,7 +18,7 @@ trait PolyfillTrait6 | |||
{ | |||
public function expectException($exception) | |||
{ | |||
if (\is_callable(['parent', 'expectException'])) { | |||
if (\is_callable([parent::class, 'expectException'])) { |
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.
can we have a PHP CS Fixer rule that is automating that, pls? :)
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.
There is no way to determine whether ['parent', 'expectException']
is supposed to be a callable or just an array.
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.
but if it's passed as literal to is_callable
etc, we can do the fix
Can we add all needed 8.x to CI, so we are sure the fix is enough to claim the 8.2 support? |
Not sure I follow, what do you mean? |
Sorry, I've mistaken this for PHPUnitGoodPractices/Traits#55 :) Rebased onto #19. |
no worry. thanks for the work! i will release new polyfill version now |
https://wiki.php.net/rfc/deprecate_partially_supported_callables