Fixed exception in Flex::getDirectories() if the first parameter is set

This commit is contained in:
Matias Griese
2019-05-02 16:37:35 +03:00
parent d9ddab8239
commit c6d94885e0
2 changed files with 2 additions and 1 deletions

View File

@@ -15,6 +15,7 @@
* Fix for `avatar_url` provided by 3rd party providers
* Fixed non standard `lang` code lengths in `Utils` and `Session` detection
* Fixed saving a new object in Flex `SimpleStorage`
* Fixed exception in `Flex::getDirectories()` if the first parameter is set
# v1.6.8
## 04/23/2019

View File

@@ -91,7 +91,7 @@ class Flex implements \Countable
// Return the directories in the given order.
$directories = [];
foreach ($types as $type) {
$directories = $this->types[$type] ?? null;
$directories[$type] = $this->types[$type] ?? null;
}
return $keepMissing ? $directories : array_filter($directories);