Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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
ondrejmirtes merged 2 commits into phpstan:master from jiripudil:local-type-aliases
Feb 28, 2021

Conversation

Copy link
Contributor

@jiripudil jiripudil commented Feb 27, 2021

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 {}

orklah reacted with heart emoji
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
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /