unknown PHP 8 compatibility issue

commented out as hotfix
if (!is_callable($callable, false))...
This commit is contained in:
Xenomporio 2022-05-16 14:11:35 +02:00
parent 43c1ae3d62
commit 5b95c48cbe

View File

@ -21,9 +21,16 @@ final class FactoryMethodDefinition
public function __construct($callable, $shared = true)
{
if (!is_callable($callable, false)) {
/*
xenomporio
unknown compatibility issue
commented out as hotfix
throw new InvalidArgumentException(sprintf(
'Definition can\'t be created. "%s::%s" is not callable.', $callable[0], $callable[1]
));
*/
}
$this->callable = $callable;