1 | <?php |
||
23 | class DrawPanel extends AbstractPanel implements |
||
24 | PanelInterface, |
||
25 | PanelInitInterface |
||
26 | { |
||
27 | /** |
||
28 | * Profiler bar panel id |
||
29 | */ |
||
30 | const ID = 'WebinoDraw:draw'; |
||
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | */ |
||
35 | protected $dir = __DIR__; |
||
36 | |||
37 | /** |
||
38 | * @var DrawProfiler |
||
39 | */ |
||
40 | private $profiler; |
||
41 | |||
42 | /** |
||
43 | * @var string |
||
44 | */ |
||
45 | protected $title = 'WebinoDraw profiler'; |
||
46 | |||
47 | /** |
||
48 | * @var string |
||
49 | */ |
||
50 | protected $content = ''; |
||
51 | |||
52 | /** |
||
53 | * @param ServiceManager $services |
||
54 | */ |
||
55 | public function init(ServiceManager $services) |
||
59 | |||
60 | /** |
||
61 | * @return DrawProfiler |
||
62 | * @throws Exception\LogicException |
||
63 | */ |
||
64 | protected function getProfiler() |
||
71 | |||
72 | /** |
||
73 | * @param object|DrawProfiler $profiler |
||
74 | * @return self |
||
75 | */ |
||
76 | public function setProfiler(DrawProfiler $profiler) |
||
81 | |||
82 | public function dump($var) |
||
89 | |||
90 | /** |
||
91 | * {@inheritdoc} |
||
92 | */ |
||
93 | public function getTab() |
||
101 | |||
102 | /** |
||
103 | * {@inheritdoc} |
||
104 | */ |
||
105 | public function getPanel() |
||
109 | } |
||
110 |
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: