We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 34-36 (lines=3) @@ | ||
| 31 | foreach ($configs as $parentName => &$config) { |
|
| 32 | if (!empty($config[self::HEIRS_KEY])) { |
|
| 33 | // allows shorthand configuration `heirs: QueryFooDecorator` is equivalent to `heirs: [QueryFooDecorator]` |
|
| 34 | if (!is_array($config[self::HEIRS_KEY])) { |
|
| 35 | $config[self::HEIRS_KEY] = [$config[self::HEIRS_KEY]]; |
|
| 36 | } |
|
| 37 | foreach ($config[self::HEIRS_KEY] as $heirs) { |
|
| 38 | if (!isset($configs[$heirs])) { |
|
| 39 | throw new \InvalidArgumentException(sprintf( |
|
| @@ 104-106 (lines=3) @@ | ||
| 101 | ||
| 102 | // flatten |
|
| 103 | $config = $configs[$name]; |
|
| 104 | if (empty($config[self::INHERITS_KEY]) || !is_array($config[self::INHERITS_KEY])) { |
|
| 105 | return []; |
|
| 106 | } |
|
| 107 | $typesTreated[$name] = true; |
|
| 108 | $flattenInheritsTypes = []; |
|
| 109 | foreach ($config[self::INHERITS_KEY] as $typeToInherit) { |
|