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
Fatal error: Uncaught TypeError: CuyZ\Valinor\Type\Parser\GenericCheckerParser::parse(): Argument #1 ($raw) must be of type string, null given, called in vendor/cuyz/valinor/src/Definition/Repository/Reflection/TypeResolver/ClassParentTypeResolver.php on line 47 and defined in vendor/cuyz/valinor/src/Type/Parser/GenericCheckerParser.php:30
However in my application it fails differently:
Attempt to read property "name" on false {"exception":"[object] (ErrorException(code: 0): Attempt to read property \"name\" on false at vendor/cuyz/valinor/src/Definition/Repository/Reflection/TypeResolver/ClassParentTypeResolver.php:39)
I was unable to get a minimal case for this error mode in a minimal way but showing it here in case it's helpful.
From a little debugging (on the second error) I ended up in ReflectionClassDefinitionRepository@typeResolver where there is a while loop looping while $type->className() !== $target->name however these are for me something like SomeEnum and \SomeEnum respectively (notice the leading \) which seemed odd to me. I did quadruple check it was not a type on my side 👀
Maybe I am doing something wrong or incorrect here, but from my perspective something is not right 😅 I have been trying to dig around but it's a pretty complex codebase so I was unable to devise some fix or better understanding at this time.
The text was updated successfully, but these errors were encountered:
Hey there, I am trying to parse a array of integers to a array of integer backed enums like so:
In this test I get:
However in my application it fails differently:
I was unable to get a minimal case for this error mode in a minimal way but showing it here in case it's helpful.
From a little debugging (on the second error) I ended up in
ReflectionClassDefinitionRepository@typeResolver
where there is a while loop looping while$type->className() !== $target->name
however these are for me something likeSomeEnum
and\SomeEnum
respectively (notice the leading\
) which seemed odd to me. I did quadruple check it was not a type on my side 👀Maybe I am doing something wrong or incorrect here, but from my perspective something is not right 😅 I have been trying to dig around but it's a pretty complex codebase so I was unable to devise some fix or better understanding at this time.
The text was updated successfully, but these errors were encountered: