| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3.0261 |
| Changes | 0 | ||
| 1 | <?php |
||
| 48 | 1 | public function dump() |
|
| 49 | { |
||
| 50 | 1 | if (null === $this->programDateTime) { |
|
| 51 | 1 | return; |
|
| 52 | } |
||
| 53 | |||
| 54 | 1 | if (version_compare(phpversion(), '7.0.0') >= 0) { |
|
| 55 | return sprintf('%s:%s', self::TAG_IDENTIFIER, $this->programDateTime->format('Y-m-d\TH:i:s.vP')); |
||
| 56 | } |
||
| 57 | |||
| 58 | 1 | $dateString = substr($this->programDateTime->format('Y-m-d\TH:i:s.u'), 0, -3); |
|
| 59 | |||
| 60 | 1 | return sprintf('%s:%s%s', self::TAG_IDENTIFIER, $dateString, $this->programDateTime->format('P')); |
|
| 61 | } |
||
| 62 | |||
| 71 |
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..