1 | <?php |
||
5 | class FrameExporter extends MediaExporter |
||
6 | { |
||
7 | protected $mustBeAccurate = false; |
||
8 | |||
9 | protected $saveMethod = 'saveFrame'; |
||
10 | |||
11 | public function accurate(): MediaExporter |
||
17 | |||
18 | public function unaccurate(): MediaExporter |
||
24 | |||
25 | public function getAccuracy(): bool |
||
29 | |||
30 | private function saveFrame(string $fullPath): MediaExporter |
||
36 | } |
||
37 |
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: