1 | <?php |
||
23 | abstract class AbstractBootstrapEvent extends Event { |
||
24 | |||
25 | /** |
||
26 | * Event name. |
||
27 | * |
||
28 | * @var string |
||
29 | */ |
||
30 | private $eventName; |
||
31 | |||
32 | /** |
||
33 | * Constructor. |
||
34 | * |
||
35 | * @param string $eventName The event name. |
||
36 | */ |
||
37 | protected function __construct($eventName) { |
||
40 | |||
41 | /** |
||
42 | * Get the event name. |
||
43 | * |
||
44 | * @return string Returns the event name. |
||
45 | */ |
||
46 | public function getEventName() { |
||
49 | |||
50 | /** |
||
51 | * Set the event name. |
||
52 | * |
||
53 | * @param type $eventName The event name. |
||
54 | * @return AbstractBootstrapEvent Returns this Bootstrap event. |
||
55 | */ |
||
56 | protected function setEventName($eventName) { |
||
60 | |||
61 | } |
||
62 |
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: