Skip to content

Commit bbde57f

Browse files
committed
Update dazet/type-utils
1 parent ab661ef commit bbde57f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"license": "MIT",
66
"require": {
77
"php": "^7.4 || ^8.0",
8-
"dazet/type-utils": "^0.1.0"
8+
"dazet/type-utils": "^0.2"
99
},
1010
"require-dev": {
1111
"phpunit/phpunit": "^8.1",

src/SafeAccessorTrait.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ private function arrayCastFiltered(string $key, callable $filter, callable $cast
274274
$value = [$value];
275275
}
276276

277+
$value = array_filter($value, fn($value) => $value !== null);
277278
$value = array_filter($value, $filter);
278279
$value = array_map($caster, $value);
279280

0 commit comments

Comments
 (0)