Fix registering a command with a class and method name pair on PHP 8. by TimothyBJacobs · Pull Request #5476 · wp-cli/wp-cli

@TimothyBJacobs

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

schlessera

@schlessera

schlessera