Skip to content

Commit

Permalink
PHP: Test typeref field for class properties declared after use trait
Browse files Browse the repository at this point in the history
This is currently failing pending a fix.
  • Loading branch information
alquerci authored and b4n committed May 20, 2024
1 parent 8904e85 commit a864459
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--sort=no
--fields=+{typeref}
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 Units/parser-php.r/php-7-4-typed-props-with-use-trait.b/input.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

trait SomeTrait
{
}

class User
{
use SomeTrait;

public int $id;
}

0 comments on commit a864459

Please sign in to comment.