1 | <?php |
||
23 | class Fragment extends AbstractComponent implements FragmentInterface |
||
24 | { |
||
25 | /** |
||
26 | * @inheritdoc |
||
27 | */ |
||
28 | protected static $reservedCharactersRegex = "\!\$&'\(\)\*\+,;\=\:\/@\?"; |
||
29 | |||
30 | /** |
||
31 | * Preserve the delimiter |
||
32 | * |
||
33 | * @var string |
||
34 | */ |
||
35 | protected $preserveDelimiter = false; |
||
36 | |||
37 | /** |
||
38 | * new instance |
||
39 | * |
||
40 | * @param string|null $data the component value |
||
41 | */ |
||
42 | 625 | public function __construct($data = null) |
|
49 | |||
50 | /** |
||
51 | * @inheritdoc |
||
52 | */ |
||
53 | 12 | public static function __set_state(array $properties) |
|
60 | |||
61 | /** |
||
62 | * @inheritdoc |
||
63 | */ |
||
64 | 2 | public function __debugInfo() |
|
68 | |||
69 | /** |
||
70 | * Returns the instance string representation |
||
71 | * with its optional URI delimiters |
||
72 | * |
||
73 | * @return string |
||
74 | */ |
||
75 | 629 | public function getUriComponent() |
|
84 | } |
||
85 |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.