| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | protected function doExecute(AssertionContext $context) |
||
| 45 | { |
||
| 46 | $nameId = $this->nameIdProvider->getNameID($context); |
||
| 47 | if ($nameId) { |
||
| 48 | if (null == $context->getAssertion()->getSubject()) { |
||
| 49 | $context->getAssertion()->setSubject(new Subject()); |
||
| 50 | } |
||
| 51 | $context->getAssertion()->getSubject()->setNameID($nameId); |
||
| 52 | } |
||
| 53 | } |
||
| 54 | } |
||
| 55 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..