Skip to content

Commit

Permalink
Verify named arguments work in attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Sep 13, 2020
1 parent d9bff92 commit f0c0cf0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ private function type($source) {
*/
private function attributes() {
yield ['#[Service]', ['Service' => []]];
yield ['#[Test(version: 1)]', ['Test' => ['version' => new Literal('1', self::LINE)]]];
yield ['#[Service, Version(1)]', ['Service' => [], 'Version' => [new Literal('1', self::LINE)]]];
}

Expand Down

0 comments on commit f0c0cf0

Please sign in to comment.