Exclude reporting the unused getDataModelValue() method

This commit is contained in:
Jacob Tobiasz 2024-03-29 14:50:51 +01:00
parent 5d9158d44c
commit ea30efbd6e
No known key found for this signature in database
GPG key ID: 3F84290201B006E0
2 changed files with 2 additions and 1 deletions

View file

@ -47,3 +47,4 @@ parameters:
- '/Method Sylius\\Component\\(\w+)\\Model\\(\w+)\:\:getId\(\) has no return type specified./'
- '/Method [a-zA-z\\]+Filter\:\:filterProperty\(\) has parameter \$value with no type specified./'
- '/Method [a-zA-z\\]+Persister\:\:(persist|remove|supports)\(\) has parameter \$data with no type specified./'
- '/Method Sylius\\Bundle\\AdminBundle\\TwigComponent\\[a-zA-Z\\]+\:\:getDataModelValue\(\) is unused./'

View file

@ -180,7 +180,7 @@ class FormComponent
return serialize($value);
}
private function getDataModelValue(): ?string
private function getDataModelValue(): string
{
return 'norender|*';
}