ConfigObject#get(): reduce code complexity

and save a few CPU cycles.
This commit is contained in:
Alexander Aleksandrovič Klimov 2022-02-08 13:30:33 +01:00 committed by Johannes Meyer
parent 874af33d81
commit 2fcee6a073
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,7 @@ class ConfigObject extends ArrayDatasource implements Iterator, ArrayAccess
return $this->data[$key];
}
return $default !== null ? $default : null;
return $default;
}
/**