Conditions | 4 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
69 | private function validateFormatters(array $valueFormatters): void |
||
70 | { |
||
71 | foreach ($valueFormatters as $formatter) { |
||
72 | if (!$formatter instanceof ValueFormatter) { |
||
73 | throw new InvalidArgumentException(sprintf( |
||
74 | 'Expected property formatter to be an instance of' |
||
75 | . ' FSi\Bundle\AdminBundle\Display\Property\ValueFormatter,' |
||
76 | . ' got "%s" instead', |
||
77 | is_object($formatter) ? get_class($formatter) : gettype($formatter) |
||
78 | )); |
||
83 |