ConfigObject#get(): reduce code complexity
and save a few CPU cycles.
This commit is contained in:
parent
874af33d81
commit
2fcee6a073
|
@ -223,7 +223,7 @@ class ConfigObject extends ArrayDatasource implements Iterator, ArrayAccess
|
|||
return $this->data[$key];
|
||||
}
|
||||
|
||||
return $default !== null ? $default : null;
|
||||
return $default;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue