Skip to content

Commit 2882222

Browse files
authored
Merge pull request #12 from volodymyr-hordiienko/patch-1
Fixes #11. Allow attributes to target properties
2 parents c93b44e + 26eafef commit 2882222

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/Attributes/ConvertArray.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
* @psalm-api
1313
*/
14-
#[Attribute(Attribute::TARGET_PARAMETER)]
14+
#[Attribute(Attribute::TARGET_PARAMETER | Attribute::TARGET_PROPERTY)]
1515
final class ConvertArray
1616
{
1717
/**

src/Attributes/EmptyToNull.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
* @psalm-api
1212
*/
13-
#[Attribute(Attribute::TARGET_PARAMETER)]
13+
#[Attribute(Attribute::TARGET_PARAMETER | Attribute::TARGET_PROPERTY)]
1414
final class EmptyToNull
1515
{
1616
}

src/Attributes/FieldAlias.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/**
1010
* @psalm-api
1111
*/
12-
#[Attribute(Attribute::TARGET_PARAMETER)]
12+
#[Attribute(Attribute::TARGET_PARAMETER | Attribute::TARGET_PROPERTY)]
1313
final class FieldAlias
1414
{
1515
/**

src/Attributes/NotTransform.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
* @psalm-api
1313
*/
14-
#[Attribute(Attribute::TARGET_PARAMETER)]
14+
#[Attribute(Attribute::TARGET_PARAMETER | Attribute::TARGET_PROPERTY)]
1515
final class NotTransform
1616
{
1717
}

src/Attributes/WritingStyle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
* @psalm-api
1313
*/
14-
#[Attribute(Attribute::TARGET_PARAMETER)]
14+
#[Attribute(Attribute::TARGET_PARAMETER | Attribute::TARGET_PROPERTY)]
1515
final class WritingStyle
1616
{
1717
/** Check all possible styles */

0 commit comments

Comments
 (0)