Conversation

janedbal

I believe it would be much better to work out of the box even with custom types.

Generating custom descriptors is painful and ensuring descriptors exist is disabled by default (reportUnknownTypes).

@@ -2188,4 +2195,18 @@ private function simpleFloatify(Type $type): Type
});
}

private function autodetectDbalTypePhpValue(DbalType $dbalType): Type
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basically the same thing as ReflectionDescriptor does. So the deafult behaviour could be the same as registering ReflectionDescriptor for all registered types.

Sign up for free to join this conversation on . Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

@janedbal