Skip to content

Commit

Permalink
IBX-8570: Fixed phpstan issues that showed up after upgrade to symfony 6
Browse files Browse the repository at this point in the history
  • Loading branch information
ViniTou committed Dec 6, 2024
1 parent ddff1ad commit 7865e2e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
15 changes: 0 additions & 15 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Validator/Constraints/RichTextValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7865e2e

Please sign in to comment.