Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
25 | public static function cannotBeScalar( |
||
26 | $value, |
||
27 | string $key, |
||
28 | string $name |
||
29 | ): self { |
||
30 | return new self(sprintf( |
||
31 | 'Unexpected %s while transforming the json from key `%s` for in ' . |
||
32 | 'the property `%s`: expecting an array', |
||
33 | gettype($value), |
||
34 | $key, |
||
35 | $name |
||
36 | )); |
||
39 |