| 1 | <?php |
||
| 12 | class ExtensionDriver implements DriverInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var DriverInterface |
||
| 16 | */ |
||
| 17 | private $delegate; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var ConfigurationExtensionInterface[] |
||
| 21 | */ |
||
| 22 | private $extensions; |
||
| 23 | |||
| 24 | public function __construct(DriverInterface $delegate, array $extensions = []) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * {@inheritdoc} |
||
| 32 | */ |
||
| 33 | public function loadMetadataForClass(\ReflectionClass $class) |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @param ConfigurationExtensionInterface $extension |
||
| 60 | */ |
||
| 61 | public function registerExtension(ConfigurationExtensionInterface $extension) |
||
| 65 | } |
||
| 66 |
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: