Skip to content

Commit

Permalink
fix: Identifier attribute constructor property promotion
Browse files Browse the repository at this point in the history
  • Loading branch information
Pixelshaped committed Jun 9, 2024
1 parent 40dce0c commit 80b77d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Attributes/Identifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_CLASS)]
final readonly class Identifier
{
public function __construct(?string $inboundPropertyName = null)
{
}
public function __construct(
public ?string $inboundPropertyName = null
) {}
}
6 changes: 3 additions & 3 deletions src/Attributes/InboundPropertyName.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#[Attribute(Attribute::TARGET_PROPERTY)]
final readonly class InboundPropertyName
{
public function __construct(public string $inboundPropertyName)
{
}
public function __construct(
public string $inboundPropertyName
) {}
}

0 comments on commit 80b77d1

Please sign in to comment.