-
-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1018 from spiral/bugfix/instantiator
[spiral/tokenizer] Add `namedArguments` parameter to the TargetAttribute
- Loading branch information
Showing
4 changed files
with
52 additions
and
4 deletions.
There are no files selected for viewing
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
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
12 changes: 12 additions & 0 deletions
12
src/Tokenizer/tests/Classes/Targets/ClassWithAttributeWithArgsOnClass.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 | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Spiral\Tests\Tokenizer\Classes\Targets; | ||
|
||
use Spiral\Tests\Tokenizer\Fixtures\Attributes\WithTargetClassWithArgs; | ||
|
||
#[WithTargetClassWithArgs('foo', 'bar')] | ||
class ClassWithAttributeWithArgsOnClass | ||
{ | ||
} |
15 changes: 15 additions & 0 deletions
15
src/Tokenizer/tests/Fixtures/Attributes/WithTargetClassWithArgs.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,15 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Spiral\Tests\Tokenizer\Fixtures\Attributes; | ||
|
||
#[\Attribute(\Attribute::TARGET_CLASS)] | ||
final class WithTargetClassWithArgs | ||
{ | ||
public function __construct( | ||
private string $foo, | ||
private string $bar, | ||
) { | ||
} | ||
} |