-
-
Notifications
You must be signed in to change notification settings - Fork 737
Closed
rectorphp/rector-src
#1511Labels
Description
Bug Report
| Subject | Details |
|---|---|
| Rector version | last dev-master |
| Installed as | composer dependency |
Minimal PHP Code Causing Issue
See https://getrector.org/demo/1ec5c41a-339d-6a30-8f55-ab895f50da1e
<?php
namespace Test;
use Test\TestOther as TestOtherAlias;
use Test as TestFoo;
final class Test
{
/**
* @TestFoo\TestSmth
*/
private string $foo;
/**
* @TestFoo\TestOther
*/
private string $bar;
/**
* @TestOtherAlias
*/
private string $baz;
}
#[\Attribute(\Attribute::IS_REPEATABLE | \Attribute::TARGET_PROPERTY)]
final class TestSmth {
}
#[\Attribute(\Attribute::IS_REPEATABLE | \Attribute::TARGET_PROPERTY)]
final class TestOther {
}Responsible rules
AnnotationToAttributeRector
Expected Behavior
If class with attribute import as alias it should be also changed
#[TestOtherAlias]
private string $baz;