Due to PHP Bug #53727, is_subclass_of might return inconsistent results on some PHP versions if \mav3rick177\RapidPagina...bstractProcessor::class can be an interface. If so, you could instead use ReflectionClass::implementsInterface.
Loading history...
73
1
throw new InvalidArgumentException('Processor must be an instanceof ' . AbstractProcessor::class);
74
}
75
return is_string($processor) ? new $processor() : $processor;