1 | <?php |
||
7 | class MediaExporter |
||
8 | { |
||
9 | protected $media; |
||
10 | |||
11 | protected $disk; |
||
12 | |||
13 | protected $frameMustBeAccurate = false; |
||
14 | |||
15 | protected $format; |
||
16 | |||
17 | public function __construct(Media $media) |
||
22 | |||
23 | protected function getFormat(): FormatInterface |
||
27 | |||
28 | public function inFormat(FormatInterface $format): self |
||
34 | |||
35 | protected function getDisk(): Disk |
||
39 | |||
40 | public function toDisk(string $diskName): self |
||
46 | |||
47 | public function accurate(): self |
||
53 | |||
54 | public function unaccurate(): self |
||
60 | |||
61 | public function getAccuracy(): bool |
||
65 | |||
66 | public function save(string $path): Media |
||
82 | |||
83 | private function moveSavedFileToRemoteDisk($localSourcePath, File $fileOnRemoteDisk): bool |
||
89 | |||
90 | private function getDestinationPathForSaving(File $file): string |
||
100 | |||
101 | private function saveFrame(string $fullPath): self |
||
107 | |||
108 | private function saveAudioOrVideo(string $fullPath): self |
||
114 | } |
||
115 |
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: