| 1 | <?php |
||
| 5 | class SecureLine implements LineInterface |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var Line |
||
| 9 | */ |
||
| 10 | protected $line; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $key; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param \JsonSerializable $line |
||
| 19 | * @param array $options |
||
| 20 | */ |
||
| 21 | 2 | public function __construct(\JsonSerializable $line, array $options) |
|
| 26 | |||
| 27 | /** |
||
| 28 | * @return string |
||
| 29 | */ |
||
| 30 | public function __toString() |
||
| 39 | |||
| 40 | protected static function sign($line, $key) |
||
| 44 | |||
| 45 | protected static function validate($signature, $line, $key) |
||
| 49 | |||
| 50 | 4 | public static function fromLine($line, array $lineOptions) |
|
| 58 | } |
||
| 59 |
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..