Skip to content

Commit 0e5bf31

Browse files
committed
docs: add @psalm-suppress
1 parent e2eb9bf commit 0e5bf31

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

system/Entity/Entity.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@ protected function castAs($value, string $attribute, string $method = 'get')
454454
$type = $type === 'json-array' ? 'json[array]' : $type;
455455

456456
if (! in_array($method, ['get', 'set', 'toDatabase', 'fromDatabase'], true)) {
457+
/** @psalm-suppress NoValue */
457458
throw CastException::forInvalidMethod($method);
458459
}
459460

0 commit comments

Comments
 (0)