Conditions | 3 |
Paths | 4 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
32 | public function __construct(string $propertyName, string $className = null, bool $list = false) |
||
33 | { |
||
34 | $this->_isList = $list; |
||
35 | $this->_propertyName = $propertyName; |
||
36 | $this->_className = (($className && class_exists($className)) ? $className : null); |
||
|
|||
37 | } |
||
38 | |||
72 |
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
string
values, the empty string''
is a special case, in particular the following results might be unexpected: