Skip to content

Commit e7c2a58

Browse files
authored
Merge pull request #320 from devmaslov/missing-php8-attributes
Missing PHP 8 Attributes for some annotations
2 parents c617743 + b811d6e commit e7c2a58

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/Annotations/HideParameter.php

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace TheCodingMachine\GraphQLite\Annotations;
66

7+
use Attribute;
78
use BadMethodCallException;
89

910
use function ltrim;
@@ -18,6 +19,7 @@
1819
* @Attribute("for", type = "string")
1920
* })
2021
*/
22+
#[Attribute(Attribute::TARGET_PARAMETER)]
2123
class HideParameter implements ParameterAnnotationInterface
2224
{
2325
/** @var string */

src/Annotations/InjectUser.php

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace TheCodingMachine\GraphQLite\Annotations;
66

7+
use Attribute;
78
use BadMethodCallException;
89

910
use function ltrim;
@@ -18,6 +19,7 @@
1819
* @Attribute("for", type = "string")
1920
* })
2021
*/
22+
#[Attribute(Attribute::TARGET_PARAMETER)]
2123
class InjectUser implements ParameterAnnotationInterface
2224
{
2325
/** @var string */

src/Annotations/UseInputType.php

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace TheCodingMachine\GraphQLite\Annotations;
66

7+
use Attribute;
78
use BadMethodCallException;
89

910
use function is_string;
@@ -19,6 +20,7 @@
1920
* @Attribute("inputType", type = "string"),
2021
* })
2122
*/
23+
#[Attribute(Attribute::TARGET_PARAMETER)]
2224
class UseInputType implements ParameterAnnotationInterface
2325
{
2426
/** @var string|null */

0 commit comments

Comments
 (0)