The variable $type does not exist. Did you forget to declare it?
This check marks access to variables or properties that have not been declared yet. While PHP
has no explicit notion of declaring a variable, accessing it before a value is assigned
to it is most likely a bug.
Loading history...
24
}
25
}
26
27
/**
28
* Invoke callable decorator on entity.
29
*
30
* @param string $decorator
31
* @param array $properties
32
* @param \Percy\Entity\EntityInterface $entity
33
*
34
* @return void
35
*/
36
protected function invokeDecorators($decorator, array $properties, EntityInterface $entity)
37
{
38
$decorator = new $decorator;
39
40
if (! $decorator instanceof DecoratorInterface) {
41
throw new InvalidArgumentException(
42
sprintf('(%s) must be an instance of (Percy\Decorator\DecoratorInterface)', get_class($decorator))
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.