Skip to content

Commit

Permalink
Merge pull request #12 from volodymyr-hordiienko/patch-1
Browse files Browse the repository at this point in the history
Fixes #11. Allow attributes to target properties
  • Loading branch information
yzen-dev authored Nov 14, 2023
2 parents c93b44e + 26eafef commit 2882222
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Attributes/ConvertArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
* @psalm-api
*/
#[Attribute(Attribute::TARGET_PARAMETER)]
#[Attribute(Attribute::TARGET_PARAMETER | Attribute::TARGET_PROPERTY)]
final class ConvertArray
{
/**
Expand Down
2 changes: 1 addition & 1 deletion src/Attributes/EmptyToNull.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* @psalm-api
*/
#[Attribute(Attribute::TARGET_PARAMETER)]
#[Attribute(Attribute::TARGET_PARAMETER | Attribute::TARGET_PROPERTY)]
final class EmptyToNull
{
}
2 changes: 1 addition & 1 deletion src/Attributes/FieldAlias.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* @psalm-api
*/
#[Attribute(Attribute::TARGET_PARAMETER)]
#[Attribute(Attribute::TARGET_PARAMETER | Attribute::TARGET_PROPERTY)]
final class FieldAlias
{
/**
Expand Down
2 changes: 1 addition & 1 deletion src/Attributes/NotTransform.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
* @psalm-api
*/
#[Attribute(Attribute::TARGET_PARAMETER)]
#[Attribute(Attribute::TARGET_PARAMETER | Attribute::TARGET_PROPERTY)]
final class NotTransform
{
}
2 changes: 1 addition & 1 deletion src/Attributes/WritingStyle.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
* @psalm-api
*/
#[Attribute(Attribute::TARGET_PARAMETER)]
#[Attribute(Attribute::TARGET_PARAMETER | Attribute::TARGET_PROPERTY)]
final class WritingStyle
{
/** Check all possible styles */
Expand Down

0 comments on commit 2882222

Please sign in to comment.