mirror of
https://github.com/karatektus/pl_mail.git
synced 2026-10-25 10:04:18 +00:00
fix(security): narrow the relative-URL sanitiser's attribute list type
phpstan flagged the nullable return that never returns null. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4611242536
commit
d3eb835a47
1 file changed
+4
-1
@@ -33,7 +33,10 @@ final class RelativeUrlAttributeSanitizer implements AttributeSanitizerInterface
|
||||
return null;
|
||||
}
|
||||
|
||||
public function getSupportedAttributes(): ?array
|
||||
/**
|
||||
* @return list<string>
|
||||
*/
|
||||
public function getSupportedAttributes(): array
|
||||
{
|
||||
return ['src', 'href', 'background', 'lowsrc', 'poster', 'style'];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user