diff --git a/src/Handler/ScriptHandler.php b/src/Handler/ScriptHandler.php index 7d8c379..056ee76 100644 --- a/src/Handler/ScriptHandler.php +++ b/src/Handler/ScriptHandler.php @@ -96,6 +96,10 @@ public function register(Asset $asset): bool $translation = $asset->translation(); if ($translation['domain'] !== '') { + /** + * The $path is allowed to be "null"- or a "string"-value. + * @psalm-suppress PossiblyNullArgument + */ wp_set_script_translations($handle, $translation['domain'], $translation['path']); }