Skip to content

Support for type alias tags#62

Merged
ondrejmirtes merged 2 commits intophpstan:masterfrom
jiripudil:local-type-aliases
Feb 28, 2021
Merged

Support for type alias tags#62
ondrejmirtes merged 2 commits intophpstan:masterfrom
jiripudil:local-type-aliases

Conversation

@jiripudil
Copy link
Copy Markdown
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
Copy Markdown
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