Skip to content

Commit

Permalink
Merge pull request #5 from ray-di/NamedArgumentConstructorAnnotation
Browse files Browse the repository at this point in the history
Replace deprecated NamedArgumentConstructorAnnotation
  • Loading branch information
koriym committed Mar 2, 2021
2 parents 03acca6 + 479042e commit 141c3cc
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -13,7 +13,7 @@
"ext-json": "*",
"ext-pdo": "*",
"aura/sql": "^3.0",
"doctrine/annotations": "^1.11",
"doctrine/annotations": "^1.12",
"guzzlehttp/guzzle": "^6.3 || ^7.2",
"pagerfanta/pagerfanta": "^1.1",
"ray/aop": "^2.10.4",
Expand Down
5 changes: 3 additions & 2 deletions src/Annotation/DbQuery.php
Expand Up @@ -5,14 +5,15 @@
namespace Ray\MediaQuery\Annotation;

use Attribute;
use Doctrine\Common\Annotations\NamedArgumentConstructorAnnotation;
use Doctrine\Common\Annotations\Annotation\NamedArgumentConstructor;

/**
* @Annotation
* @Target("METHOD")
* @NamedArgumentConstructor
*/
#[Attribute(Attribute::TARGET_METHOD)]
final class DbQuery implements NamedArgumentConstructorAnnotation
final class DbQuery
{
/** @var string */
public $id;
Expand Down
5 changes: 3 additions & 2 deletions src/Annotation/Pager.php
Expand Up @@ -5,14 +5,15 @@
namespace Ray\MediaQuery\Annotation;

use Attribute;
use Doctrine\Common\Annotations\NamedArgumentConstructorAnnotation;
use Doctrine\Common\Annotations\Annotation\NamedArgumentConstructor;

/**
* @Annotation
* @Target("METHOD")
* @NamedArgumentConstructor
*/
#[Attribute(Attribute::TARGET_METHOD)]
final class Pager implements NamedArgumentConstructorAnnotation
final class Pager
{
/** @var int */
public $perPage;
Expand Down
5 changes: 3 additions & 2 deletions src/Annotation/WebQuery.php
Expand Up @@ -5,14 +5,15 @@
namespace Ray\MediaQuery\Annotation;

use Attribute;
use Doctrine\Common\Annotations\NamedArgumentConstructorAnnotation;
use Doctrine\Common\Annotations\Annotation\NamedArgumentConstructor;

/**
* @Annotation
* @Target("METHOD")
* @NamedArgumentConstructor
*/
#[Attribute(Attribute::TARGET_METHOD)]
final class WebQuery implements NamedArgumentConstructorAnnotation
final class WebQuery
{
/** @var string */
public $method;
Expand Down

0 comments on commit 141c3cc

Please sign in to comment.