Skip to content

Support for type alias tags #62

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 2 commits into from
Feb 28, 2021

Conversation

jiripudil
Copy link
Contributor

This PR adds support for @psalm-type and @psalm-import-type as well as @phpstan- prefixed alternatives:

/**
 * @phpstan-type TypeAlias callable(string): bool
 */
class Foo {}

/**
 * @phpstan-import-type TypeAlias from Foo as ImportedAlias
 */
class Bar {}

@ondrejmirtes
Copy link
Member

This is perfect! Thank you.

@ondrejmirtes ondrejmirtes merged commit 2e17e4a into phpstan:master Feb 28, 2021
@jiripudil jiripudil deleted the local-type-aliases branch March 3, 2021 11:51
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.

2 participants