Skip to content

Commit a4c23ce

Browse files
committed
[iv3] improve exception message
1 parent d8bd91e commit a4c23ce

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Utilities/ImageAsset.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ public function applyFilter(string $filter, array $properties = []): self
207207
if (!is_a($filter, FilterInterface::class, allow_string: true)) {
208208
throw new InvalidArgumentException(
209209
sprintf(
210-
'Argument $filter of type `%s` does not implement `%s`.',
210+
'Argument $filter (`%s`) of type `%s` does not implement `%s`.',
211+
\Cake\Core\h($filter),
211212
get_debug_type($filter),
212213
FilterInterface::class,
213214
),

0 commit comments

Comments
 (0)