We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | public static function renderStatic( |
||
| 32 | array $arguments, |
||
| 33 | \Closure $renderChildrenClosure, |
||
| 34 | RenderingContextInterface $renderingContext |
||
| 35 | ) { |
||
| 36 | $subject = $arguments['subject']; |
||
| 37 | if (null === $subject) { |
||
| 38 | $subject = $renderChildrenClosure(); |
||
| 39 | } |
||
| 40 | |||
| 41 | return \is_array($subject); |
||
|
|
|||
| 42 | } |
||
| 44 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: