Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions src/Annotations/AbstractAnnotation.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,7 @@ public function __debugInfo()
return $properties;
}

/**
* @return mixed
*/
#[\ReturnTypeWillChange]
public function jsonSerialize()
public function jsonSerialize(): \stdClass
{
$data = new \stdClass();

Expand Down
6 changes: 1 addition & 5 deletions src/Annotations/Encoding.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,7 @@ class Encoding extends AbstractAnnotation
'contentType' => 'string',
];

/**
* @inheritdoc
*/
#[\ReturnTypeWillChange]
public function jsonSerialize()
public function jsonSerialize(): \stdClass
{
$data = parent::jsonSerialize();

Expand Down
6 changes: 1 addition & 5 deletions src/Annotations/Flow.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,7 @@ class Flow extends AbstractAnnotation
Attachable::class => ['attachables'],
];

/**
* @inheritdoc
*/
#[\ReturnTypeWillChange]
public function jsonSerialize()
public function jsonSerialize(): \stdClass
{
if ($this->scopes === []) {
$this->scopes = new \stdClass();
Expand Down
6 changes: 1 addition & 5 deletions src/Annotations/License.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,7 @@ class License extends AbstractAnnotation
Attachable::class => ['attachables'],
];

/**
* @inheritdoc
*/
#[\ReturnTypeWillChange]
public function jsonSerialize()
public function jsonSerialize(): \stdClass
{
$data = parent::jsonSerialize();

Expand Down
6 changes: 1 addition & 5 deletions src/Annotations/OpenApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,7 @@ private static function resolveRef(string $ref, string $resolved, $container, ar
throw new OpenApiException('$ref "' . $unresolved . '" not found');
}

/**
* @inheritdoc
*/
#[\ReturnTypeWillChange]
public function jsonSerialize()
public function jsonSerialize(): \stdClass
{
$data = parent::jsonSerialize();

Expand Down
6 changes: 1 addition & 5 deletions src/Annotations/Operation.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,7 @@ abstract class Operation extends AbstractAnnotation
Attachable::class => ['attachables'],
];

/**
* @inheritdoc
*/
#[\ReturnTypeWillChange]
public function jsonSerialize()
public function jsonSerialize(): \stdClass
{
$data = parent::jsonSerialize();

Expand Down
6 changes: 1 addition & 5 deletions src/Annotations/Property.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,7 @@ class Property extends Schema
Attachable::class => ['attachables'],
];

/**
* @inheritdoc
*/
#[\ReturnTypeWillChange]
public function jsonSerialize()
public function jsonSerialize(): \stdClass
{
$data = parent::jsonSerialize();

Expand Down
6 changes: 1 addition & 5 deletions src/Annotations/RequestBody.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,7 @@ class RequestBody extends AbstractAnnotation
Attachable::class => ['attachables'],
];

/**
* @inheritdoc
*/
#[\ReturnTypeWillChange]
public function jsonSerialize()
public function jsonSerialize(): \stdClass
{
$data = parent::jsonSerialize();

Expand Down
6 changes: 1 addition & 5 deletions src/Annotations/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -508,11 +508,7 @@ public function isNullable(): bool
return !Generator::isDefault($this->nullable) && $this->nullable;
}

/**
* @inheritdoc
*/
#[\ReturnTypeWillChange]
public function jsonSerialize()
public function jsonSerialize(): \stdClass
{
$data = parent::jsonSerialize();

Expand Down