forked from universal-ctags/ctags
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PHP: Test typeref field for class properties declared after use trait
This is currently failing pending a fix.
- Loading branch information
Showing
3 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
Units/parser-php.r/php-7-4-typed-props-with-use-trait.b/args.ctags
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--sort=no | ||
--fields=+{typeref} |
3 changes: 3 additions & 0 deletions
3
Units/parser-php.r/php-7-4-typed-props-with-use-trait.b/expected.tags
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SomeTrait input.php /^trait SomeTrait$/;" t | ||
User input.php /^class User$/;" c | ||
id input.php /^ public int $id;$/;" v class:User typeref:unknown:int |
12 changes: 12 additions & 0 deletions
12
Units/parser-php.r/php-7-4-typed-props-with-use-trait.b/input.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
trait SomeTrait | ||
{ | ||
} | ||
|
||
class User | ||
{ | ||
use SomeTrait; | ||
|
||
public int $id; | ||
} |