Skip to content

Commit 5869bd6

Browse files
Replace get_debug_type() with get_php_type()
1 parent f00c115 commit 5869bd6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

library/Notifications/Model/Behavior/SourceAggregator.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
use ipl\Sql\Expression;
2020
use ipl\Stdlib\Filter;
2121

22+
use function ipl\Stdlib\get_php_type;
23+
2224
/**
2325
* Aggregate all sources an object is linked to into the column `sources`
2426
*
@@ -46,7 +48,7 @@ public function fromDb($value, $key, $context): array
4648

4749
if (! is_string($value)) {
4850
throw new InvalidArgumentException(
49-
sprintf('Expected JSON array or null for %s, got %s', $key, get_debug_type($value))
51+
sprintf('Expected JSON array or null for %s, got %s', $key, get_php_type($value))
5052
);
5153
}
5254

0 commit comments

Comments
 (0)