| 1 | <?php |
||
| 6 | class SubmitShippingResponse extends Response |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @param string $extension |
||
| 10 | * @param string $prefix |
||
| 11 | * @param string|null $dir |
||
| 12 | * @return \SplFileObject[] |
||
| 13 | * @throws InvalidBase64Exception |
||
| 14 | */ |
||
| 15 | public function saveLabels(string $extension, string $prefix = 'label-', string $dir = null) : array |
||
| 39 | |||
| 40 | protected function getFile(string $extension, string $prefix, string $dir) : \SplFileObject |
||
| 48 | } |
||
| 49 |
In PHP, under loose comparison (like
==, or!=, orswitchconditions), values of different types might be equal.For
stringvalues, the empty string''is a special case, in particular the following results might be unexpected: