Skip to content

[TypeInfo] Add extra type alias support #61480

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

Merged
merged 1 commit into from
Aug 22, 2025

Conversation

mtarld
Copy link
Contributor

@mtarld mtarld commented Aug 21, 2025

Q A
Branch? 7.4
Bug fix? no
New feature? yes
Deprecations? no
Issues Fix #61302
License MIT

Add support for custom extra type aliases.

When using Symfony as a framework, they can be defined as follows:

framework:
    type_info:
        aliases:
            CustomAlias: int

@carsonbot carsonbot added this to the 7.4 milestone Aug 21, 2025
@mtarld mtarld force-pushed the feat/type-info-custom-type-aliases branch from e6a8bf5 to 90d6e1e Compare August 21, 2025 07:44
@mtarld mtarld force-pushed the feat/type-info-custom-type-aliases branch from 90d6e1e to 2be7e06 Compare August 21, 2025 10:29
@fabpot
Copy link
Member

fabpot commented Aug 22, 2025

Thank you @mtarld.

@fabpot fabpot merged commit 32b347f into symfony:7.4 Aug 22, 2025
11 of 12 checks passed
@mtarld mtarld deleted the feat/type-info-custom-type-aliases branch August 22, 2025 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[PropertyInfo] PhpStanExtractor does not support phpstan.neon-defined aliases
5 participants