1 | <?php |
||
5 | class SegmentedExporter extends MediaExporter |
||
6 | { |
||
7 | protected $filter; |
||
8 | |||
9 | protected $playlistPath; |
||
10 | |||
11 | protected $segmentLength = 10; |
||
12 | |||
13 | protected $saveMethod = 'saveStream'; |
||
14 | |||
15 | public function setPlaylistPath(string $playlistPath): MediaExporter |
||
21 | |||
22 | public function setSegmentLength(int $segmentLength): MediaExporter |
||
28 | |||
29 | public function getFilter(): SegmentedFilter |
||
40 | |||
41 | public function saveStream(string $playlistPath): MediaExporter |
||
56 | |||
57 | public function getSegmentFullPath(): string |
||
64 | |||
65 | public function getPlaylistPath(): string |
||
69 | |||
70 | public function getPlaylistName(): string |
||
74 | |||
75 | public function getPlaylistFilename(): string |
||
79 | |||
80 | public function getSegmentFilename(): string |
||
84 | |||
85 | protected function getFormattedFilename(string $suffix = ''): string |
||
93 | } |
||
94 |
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: