Skip to content

Commit

Permalink
hook param as well
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Oct 15, 2022
1 parent 1663e78 commit e530d50
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ use Doctrine\ORM\Mapping\JoinColumns;
final class DoctrineNestedJoinColumnsPromotedProperty
{
public function __construct(
#[JoinColumn(name: "entity_id", referencedColumnName: "id")]
#[JoinColumn(name: "entity_type", referencedColumnName: "entity_type")]
#[JoinColumn(name: 'entity_id', referencedColumnName: 'id')]
#[JoinColumn(name: 'entity_type', referencedColumnName: 'entity_type')]
protected $page,
) {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use PhpParser\Node;
use PhpParser\Node\AttributeGroup;
use PhpParser\Node\Param;
use PhpParser\Node\Stmt\Class_;
use PhpParser\Node\Stmt\Property;
use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTagNode;
Expand Down Expand Up @@ -100,11 +101,11 @@ class SomeEntity
*/
public function getNodeTypes(): array
{
return [Property::class, Class_::class];
return [Property::class, Class_::class, Param::class];
}

/**
* @param Property|Class_ $node
* @param Property|Class_|Param $node
*/
public function refactor(Node $node): ?Node
{
Expand Down

0 comments on commit e530d50

Please sign in to comment.