| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 9 | public function __construct(array $config, ClassInfo $classInfo) |
||
| 10 | { |
||
| 11 | $message = "Yaml file contains properties that doesn't exists on a target class {$classInfo->getClassName()}:"; |
||
| 12 | foreach (array_keys($config) as $fieldName) { |
||
| 13 | $message .= "\n- $fieldName"; |
||
| 14 | } |
||
| 15 | $message .= "\nTo prevent this behaviour use #[IgnoreUnknown] on a target class"; |
||
| 16 | parent::__construct($message); |
||
| 17 | } |
||
| 19 |