[Validator] Updated ContraintViolationList ArrayAccess setter to check equivalence to null instead of using is_null
This commit is contained in:
parent
77ae8b5898
commit
1adbb763cb
@ -97,7 +97,7 @@ EOF;
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
if (is_null($offset)) {
|
||||
if (null === $offset) {
|
||||
$this->violations[] = $value;
|
||||
} else {
|
||||
$this->violations[$offset] = $value;
|
||||
|
Reference in New Issue
Block a user