Skip to content

Conversation

TimothyBJacobs
Copy link
Contributor

On PHP 8, an array of a class name and instance method name is no longer
considered a callable. This commit adds an additional check to see if
the command is a pair of a class name and method name that exists on that
class before rejecting the command registration.

Fixes #5472.

On PHP 8, an array of a class name and instance method name is no longer
considered a callable. This commit adds an additional check to see if
the command is a pair of a class name and method name that exists on that
class before rejecting the command registration.
@TimothyBJacobs TimothyBJacobs requested a review from a team as a code owner November 12, 2020 20:08
@schlessera schlessera added this to the 2.5.0 milestone Nov 18, 2020
@schlessera schlessera merged commit 1512cd0 into wp-cli:master Nov 18, 2020
@TimothyBJacobs TimothyBJacobs deleted the fix/5472 branch November 18, 2020 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[PHP 8] Can no longer register a command using an array of class name and method name
2 participants