| 1 | <?php |
||
| 8 | class Rules |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * $storage. |
||
| 12 | * |
||
| 13 | * @var \Recca0120\Twzipcode\Contracts\Storage |
||
| 14 | */ |
||
| 15 | protected $storage; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * __construct. |
||
| 19 | * |
||
| 20 | * @param \Recca0120\Twzipcode\Contracts\Storage $storage |
||
| 21 | */ |
||
| 22 | 9 | public function __construct(Storage $storage = null) |
|
| 26 | |||
| 27 | /** |
||
| 28 | * match. |
||
| 29 | * |
||
| 30 | * @param string $address |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | 7 | public function match($address) |
|
| 48 | } |
||
| 49 |
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.