Backpack\CRUD\app\Librar...neratorInterface::class of type string is incompatible with the type boolean expected by parameter $autoload of class_implements().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
38
if (! class_implements($fileGeneratorClass, /** @scrutinizer ignore-type */ FileNameGeneratorInterface::class)) {
Loading history...
39
throw new \Exception("The file name generator class [{$fileGeneratorClass}] must implement the [".FileNameGeneratorInterface::class.'] interface.');
40
}
41
42
$this->fileNameGenerator = new $fileGeneratorClass();
The expression return is_callable($this...this) : $this->fileName also could return the type Closure which is incompatible with the documented return type string.