diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 0d05fb20..9a6948e8 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -1,10 +1,5 @@ parameters: ignoreErrors: - - - message: "#^Method Ibexa\\\\Bundle\\\\FieldTypeRichText\\\\DependencyInjection\\\\Compiler\\\\RichTextHtml5ConverterPass\\:\\:process\\(\\) has no return type specified\\.$#" - count: 1 - path: src/bundle/DependencyInjection/Compiler/RichTextHtml5ConverterPass.php - - message: "#^Method Ibexa\\\\Bundle\\\\FieldTypeRichText\\\\DependencyInjection\\\\Compiler\\\\RichTextHtml5ConverterPass\\:\\:setConverterDefinitions\\(\\) has no return type specified\\.$#" count: 1 @@ -110,11 +105,6 @@ parameters: count: 1 path: src/bundle/DependencyInjection/IbexaFieldTypeRichTextExtension.php - - - message: "#^Method Ibexa\\\\Bundle\\\\FieldTypeRichText\\\\DependencyInjection\\\\IbexaFieldTypeRichTextExtension\\:\\:prepend\\(\\) has no return type specified\\.$#" - count: 1 - path: src/bundle/DependencyInjection/IbexaFieldTypeRichTextExtension.php - - message: "#^Method Ibexa\\\\Bundle\\\\FieldTypeRichText\\\\DependencyInjection\\\\IbexaFieldTypeRichTextExtension\\:\\:registerRichTextConfiguration\\(\\) has parameter \\$config with no value type specified in iterable type array\\.$#" count: 1 @@ -165,11 +155,6 @@ parameters: count: 2 path: src/bundle/DependencyInjection/IbexaFieldTypeRichTextExtension.php - - - message: "#^Method Ibexa\\\\Bundle\\\\FieldTypeRichText\\\\IbexaFieldTypeRichTextBundle\\:\\:build\\(\\) has no return type specified\\.$#" - count: 1 - path: src/bundle/IbexaFieldTypeRichTextBundle.php - - message: "#^Method Ibexa\\\\Bundle\\\\FieldTypeRichText\\\\IbexaFieldTypeRichTextBundle\\:\\:getCoreExtension\\(\\) should return Ibexa\\\\Bundle\\\\Core\\\\DependencyInjection\\\\IbexaCoreExtension but returns Symfony\\\\Component\\\\DependencyInjection\\\\Extension\\\\ExtensionInterface\\.$#" count: 1 diff --git a/src/lib/Validator/Constraints/RichTextValidator.php b/src/lib/Validator/Constraints/RichTextValidator.php index a63919f1..5422c1c7 100644 --- a/src/lib/Validator/Constraints/RichTextValidator.php +++ b/src/lib/Validator/Constraints/RichTextValidator.php @@ -32,7 +32,7 @@ public function __construct(InputHandlerInterface $inputHandler) /** * {@inheritdoc} */ - public function validate($value, Constraint $constraint): void + public function validate(mixed $value, Constraint $constraint): void { if (is_string($value)) { try {