Fix registering a command with a class and method name pair on PHP 8. by TimothyBJacobs · Pull Request #5476 · wp-cli/wp-cli
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters