| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | public function toString(): string |
||
| 46 | { |
||
| 47 | $result = []; |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @var ValueInterface $key |
||
| 51 | * @var ValueInterface $value |
||
| 52 | */ |
||
| 53 | foreach ($this->getValue() as $key => $value) { |
||
| 54 | $result[] = $key->toString() . ': ' . (string)$value; |
||
|
|
|||
| 55 | } |
||
| 56 | |||
| 57 | return \sprintf('{%s}', \implode(', ', $result)); |
||
| 58 | } |
||
| 59 | |||
| 70 |
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.