You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parameter #1 $converter of class Orisai\ObjectMapper\Printers\ErrorVisualPrinter constructor expects Orisai\ObjectMapper\Printers\TypeToPrimitiveConverter<array>,
Orisai\ObjectMapper\Printers\TypeToArrayConverter given.
💡 Template type T on class Orisai\ObjectMapper\Printers\TypeToPrimitiveConverter is not covariant.
Expected Behavior
No error
Addition information
No response
The text was updated successfully, but these errors were encountered:
Hello,
I am currently on latest v1.x-dev (which shall be soon released as 0.2.0) and on phpstan/phpstan:^2 and I get no error.
Please make sure your dependencies are up-to-date and, if you still get an error, re-open the issue.
I see, the error starts to occur on level 9 (I am using 8)
I am not really sure how to solve the error and since it's just analysis error it will probably stay here for the foreseeable future (until I get back to re-working the printers)
Library version
v1.x-dev
Description
If I use TypeToArrayConverter instead of TypeToStringConverter I get a PHPStan error.
Steps to reproduce
Actual Behavior
Expected Behavior
No error
Addition information
No response
The text was updated successfully, but these errors were encountered: