1 | <?php |
||
13 | final class OptimalEncodedHeaderValue |
||
14 | { |
||
15 | /** |
||
16 | * |
||
17 | */ |
||
18 | private const FOLDING = "\r\n "; |
||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $value; |
||
23 | /** |
||
24 | * @var array |
||
25 | */ |
||
26 | private $phrase = false; |
||
27 | |||
28 | /** |
||
29 | * OptimalEncodedHeaderValue constructor. |
||
30 | * @param string $value |
||
31 | */ |
||
32 | 95 | public function __construct(string $value) |
|
36 | |||
37 | /** |
||
38 | * @return string |
||
39 | */ |
||
40 | 95 | public function __toString(): string |
|
62 | |||
63 | /** |
||
64 | * @param string $value |
||
65 | * @return OptimalEncodedHeaderValue |
||
66 | */ |
||
67 | 28 | public static function forPhrase(string $value): self |
|
74 | } |
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..