Skip to content

Commit b813b5e

Browse files
improved null check (limosa-io#82)
1 parent 55a3291 commit b813b5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Attribute/Complex.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ protected function doRead(&$object, $attributes = [])
3434
$result = [];
3535
foreach ($this->subAttributes as $attribute) {
3636
if(($r = $attribute->read($object, $attributes)) != null){
37-
if(config('scim.omit_null_values') && $r->value == null){
37+
if(config('scim.omit_null_values') && $r->value === null){
3838
continue;
3939
}
4040
$result[$attribute->name] = $r->value;

0 commit comments

Comments
 (0)