Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
[TypeInfo] Add type alias support#59804
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<?php | ||
/* | ||
* This file is part of the Symfony package. | ||
* | ||
* (c) Fabien Potencier <fabien@symfony.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
namespace Symfony\Component\TypeInfo\Tests\Fixtures; | ||
mtarld marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
/** | ||
* @phpstan-type CustomString = string | ||
* @phpstan-import-type CustomInt from DummyWithPhpDoc | ||
* @phpstan-import-type CustomInt from DummyWithPhpDoc as AliasedCustomInt | ||
* | ||
* @psalm-type PsalmCustomString = string | ||
* @psalm-import-type PsalmCustomInt from DummyWithPhpDoc | ||
* @psalm-import-type PsalmCustomInt from DummyWithPhpDoc as PsalmAliasedCustomInt | ||
*/ | ||
final class DummyWithTypeAliases | ||
{ | ||
/** | ||
* @var CustomString | ||
*/ | ||
public mixed $localAlias; | ||
/** | ||
* @var CustomInt | ||
*/ | ||
public mixed $externalAlias; | ||
/** | ||
* @var AliasedCustomInt | ||
*/ | ||
public mixed $aliasedExternalAlias; | ||
/** | ||
* @var PsalmCustomString | ||
*/ | ||
public mixed $psalmLocalAlias; | ||
/** | ||
* @var PsalmCustomInt | ||
*/ | ||
public mixed $psalmExternalAlias; | ||
/** | ||
* @var PsalmAliasedCustomInt | ||
*/ | ||
public mixed $psalmOtherAliasedExternalAlias; | ||
} | ||
/** | ||
* @phpstan-import-type Invalid from DummyWithTypeAliases | ||
nicolas-grekas marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
*/ | ||
final class DummyWithInvalidTypeAliasImport | ||
{ | ||
} |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.