We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 34-40 (lines=7) @@ | ||
| 31 | $config['hiers'] = [$config['hiers']]; |
|
| 32 | } |
|
| 33 | foreach ($config['hiers'] as $hier) { |
|
| 34 | if (!isset($configs[$hier])) { |
|
| 35 | throw new \InvalidArgumentException(sprintf( |
|
| 36 | 'Type %s child of %s not found.', |
|
| 37 | json_encode($hier), |
|
| 38 | json_encode($parentName) |
|
| 39 | )); |
|
| 40 | } |
|
| 41 | ||
| 42 | if (!isset($configs[$hier]['extends'])) { |
|
| 43 | $configs[$hier]['extends'] = []; |
|
| @@ 118-124 (lines=7) @@ | ||
| 115 | ||
| 116 | private static function checkTypeExists($name, array $configs, $child) |
|
| 117 | { |
|
| 118 | if (!isset($configs[$name])) { |
|
| 119 | throw new \InvalidArgumentException(sprintf( |
|
| 120 | 'Type %s extends by %s not found.', |
|
| 121 | json_encode($name), |
|
| 122 | json_encode($child) |
|
| 123 | )); |
|
| 124 | } |
|
| 125 | } |
|
| 126 | ||
| 127 | private static function checkCircularReferenceExtendsTypes($name, array $typesTreated) |
|