Skip to content

Commit

Permalink
Fix types (#1042)
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Dec 27, 2021
1 parent 541e202 commit 2ea32ca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Annotations/AbstractAnnotation.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ public function __debugInfo()

/**
* Customize the way json_encode() renders the annotations.
* @return mixed
*/
#[\ReturnTypeWillChange]
public function jsonSerialize()
Expand Down
4 changes: 3 additions & 1 deletion src/Annotations/Operation.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ abstract class Operation extends AbstractAnnotation
'Swagger\Annotations\ExternalDocumentation' => 'externalDocs'
];

/** @inheritdoc */
/**
* @return mixed
*/
#[\ReturnTypeWillChange]
public function jsonSerialize()
{
Expand Down
1 change: 1 addition & 0 deletions src/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ protected function __construct()
/**
* @param \Exception|string $entry
* @param int $type Error type
* @return void
*/
$this->log = function ($entry, $type) {
if ($entry instanceof Exception) {
Expand Down

0 comments on commit 2ea32ca

Please sign in to comment.