| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 42 | public function simplificationProvider() { |
||
| 43 | return array( |
||
| 44 | array( |
||
| 45 | new UnionNode(array( |
||
| 46 | new ResourceListNode(array(new StringResourceNode('foo'))) |
||
| 47 | )), |
||
| 48 | new UnionNode(array( |
||
| 49 | new FirstNode(new ResourceListNode(array(new StringResourceNode('foo')))) |
||
| 50 | )) |
||
| 51 | ), |
||
| 52 | array( |
||
| 53 | new IntersectionNode(array( |
||
| 54 | new ResourceListNode(array(new StringResourceNode('foo'))) |
||
| 55 | )), |
||
| 56 | new IntersectionNode(array( |
||
| 57 | new FirstNode(new ResourceListNode(array(new StringResourceNode('foo')))) |
||
| 58 | )) |
||
| 59 | ) |
||
| 60 | ); |
||
| 61 | } |
||
| 62 | } |
||
| 63 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: