| 1 | <?php  | 
            ||
| 9 | final class UrlEncodedTypeDecoder implements TypeDecoderInterface  | 
            ||
| 10 | { | 
            ||
| 11 | /**  | 
            ||
| 12 | * @return string  | 
            ||
| 13 | */  | 
            ||
| 14 | 2 | public function getContentType(): string  | 
            |
| 18 | |||
| 19 | /**  | 
            ||
| 20 | * @param string $data  | 
            ||
| 21 | *  | 
            ||
| 22 | * @return array  | 
            ||
| 23 | *  | 
            ||
| 24 | * @throws DeserializerRuntimeException  | 
            ||
| 25 | */  | 
            ||
| 26 | 3 | public function decode(string $data): array  | 
            |
| 37 | |||
| 38 | /**  | 
            ||
| 39 | * @param array $rawData  | 
            ||
| 40 | *  | 
            ||
| 41 | * @return array  | 
            ||
| 42 | */  | 
            ||
| 43 | 2 | private function fixValues(array $rawData): array  | 
            |
| 58 | |||
| 59 | /**  | 
            ||
| 60 | * @param string $value  | 
            ||
| 61 | *  | 
            ||
| 62 | * @return mixed  | 
            ||
| 63 | */  | 
            ||
| 64 | 2 | private function fixValue(string $value)  | 
            |
| 80 | }  | 
            ||
| 81 | 
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.