Skip to content

Commit d12668c

Browse files
DerManoManngithub-actions[bot]
authored andcommitted
BACKPORT-CONFLICT
1 parent 488e0fc commit d12668c

83 files changed

Lines changed: 449 additions & 674 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.php-cs-fixer.dist.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@
6767
'fully_qualified_strict_types' => true,
6868
'global_namespace_import' => ['import_classes' => false, 'import_constants' => null, 'import_functions' => null],
6969

70+
'attribute_empty_parentheses' => [
71+
'use_parentheses' => false,
72+
],
7073
'nullable_type_declaration_for_default_null_value' => true,
7174

7275
'no_empty_phpdoc' => true,

docs/examples/specs/api/attributes/Colour.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/**
1212
* A Colour.
1313
*/
14-
#[OAT\Schema()]
14+
#[OAT\Schema]
1515
enum Colour
1616
{
1717
case GREEN;

docs/examples/specs/api/attributes/NameTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/**
1212
* A Name.
1313
*/
14-
#[OAT\Schema()]
14+
#[OAT\Schema]
1515
trait NameTrait
1616
{
1717
#[OAT\Property(description: 'The name.')]

docs/examples/specs/api/attributes/Product.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class Product implements ProductInterface
3030
public $id;
3131

3232
public function __construct(
33-
#[OAT\Property()]
33+
#[OAT\Property]
3434
public int $quantity,
3535
#[OAT\Property(default: null, example: null)]
3636
public ?string $brand,

docs/examples/specs/api/mixed/Colour.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/**
1212
* A Colour.
1313
*/
14-
#[OAT\Schema()]
14+
#[OAT\Schema]
1515
enum Colour
1616
{
1717
case GREEN;

docs/examples/specs/api/mixed/NameTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
/**
1212
* A Name.
1313
*/
14-
#[OAT\Schema()]
14+
#[OAT\Schema]
1515
trait NameTrait
1616
{
1717
/**
1818
* The name.
1919
*/
20-
#[OAT\Property()]
20+
#[OAT\Property]
2121
public $name;
2222
}

docs/examples/specs/polymorphism/attributes/Fl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ final class Fl extends AbstractResponsible
1515
{
1616
public const TYPE = 'fl';
1717

18-
#[OAT\Property()]
18+
#[OAT\Property]
1919
public ?string $property3;
2020
}

docs/examples/specs/polymorphism/attributes/Request.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88

99
use OpenApi\Attributes as OAT;
1010

11-
#[OAT\Schema()]
11+
#[OAT\Schema]
1212
final class Request
1313
{
1414
protected const TYPE = 'employee';
1515

16-
#[OAT\Property()]
16+
#[OAT\Property]
1717
public AbstractResponsible $payload;
1818
}

docs/examples/specs/using-links/attributes/PullRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class PullRequest
3636
public $author;
3737

3838
public function __construct(
39-
#[OAT\Property()]
39+
#[OAT\Property]
4040
public State $state
4141
) {
4242
}

docs/examples/specs/using-links/attributes/RepositoriesController.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,13 @@ public function getRepository()
7777
]
7878
#[OAT\Link(link: 'RepositoryPullRequests', operationId: 'getPullRequestsByRepository', parameters: ['username' => '$response.body#/owner/username', 'slug' => '$response.body#/slug'])]
7979
public function getPullRequestsByRepository(
80-
#[OAT\PathParameter()]
80+
#[OAT\PathParameter]
8181
string $username,
82-
#[OAT\PathParameter()]
82+
#[OAT\PathParameter]
8383
string $slug,
84-
#[OAT\PathParameter()]
84+
#[OAT\PathParameter]
8585
State $state,
86-
#[OAT\QueryParameter()]
86+
#[OAT\QueryParameter]
8787
?string $label
8888
) {
8989
}

0 commit comments

Comments
 (0)