1 | <?php |
||
13 | class MediaService extends AbstractService implements ServiceInterface |
||
14 | { |
||
15 | /** |
||
16 | * @param MediaDynamicUrlMessage $message |
||
17 | * |
||
18 | * @return string |
||
19 | */ |
||
20 | public function getMediaDynamicUrl(MediaDynamicUrlMessage $message): string |
||
33 | |||
34 | /** |
||
35 | * @param MediaUploadMessage $message |
||
36 | * |
||
37 | * @return Media[] |
||
38 | */ |
||
39 | public function uploadMedias(MediaUploadMessage $message): array |
||
54 | } |
||
55 |
If a method or function can return multiple different values and unless you are sure that you only can receive a single value in this context, we recommend to add an additional type check:
If this a common case that PHP Analyzer should handle natively, please let us know by opening an issue.