1 | <?php |
||
23 | class ShortUrlPropertyAnnotator implements PropertyAnnotator { |
||
24 | |||
25 | /** |
||
26 | * @var AppFactory |
||
27 | */ |
||
28 | private $appFactory; |
||
29 | |||
30 | /** |
||
31 | * @since 2.0 |
||
32 | * |
||
33 | * @param AppFactory $appFactory |
||
34 | */ |
||
35 | public function __construct( AppFactory $appFactory ) { |
||
38 | |||
39 | /** |
||
40 | * @since 2.0 |
||
41 | * |
||
42 | * {@inheritDoc} |
||
43 | */ |
||
44 | public function isAnnotatorFor( DIProperty $property ) { |
||
47 | |||
48 | /** |
||
49 | * @since 2.0 |
||
50 | * |
||
51 | * {@inheritDoc} |
||
52 | */ |
||
53 | public function addAnnotation( DIProperty $property, SemanticData $semanticData ) { |
||
70 | |||
71 | protected function getUrlPrefix() { |
||
81 | |||
82 | protected function hasShortUrlUtils() { |
||
85 | |||
86 | } |
||
87 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: