Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc: reorganize type resolver services #519

Merged
merged 1 commit into from
Apr 7, 2024

Conversation

romm
Copy link
Member

@romm romm commented Apr 7, 2024

This is a major refactor of the classes used to resolve types from all places: @var, @param, @return, @extends, @template, @phpstan-type, @phpstan-import-type.

The goal was to remove remaining usages of regex to resolve the types, and to move all parsing logic in dedicated classes instead of god classes like the (now deleted) ReflectionTypeResolver and DocParser services.

This is a major refactor of the classes used to resolve types from all
places: `@var`, `@param`, `@return`, `@extends`, `@template`,
`@phpstan-type`, `@phpstan-import-type`.

The goal was to remove remaining usages of regex to resolve the types,
and to move all parsing logic in dedicated classes instead of god
classes like the (now deleted) `ReflectionTypeResolver` and `DocParser`
services.
@romm romm merged commit 86fb7b6 into CuyZ:master Apr 7, 2024
11 checks passed
@romm romm deleted the misc/refactor-type-resolvers branch April 7, 2024 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant