diff --git a/src/Annotations/AbstractAnnotation.php b/src/Annotations/AbstractAnnotation.php index 23297b907..ec5ffa36f 100644 --- a/src/Annotations/AbstractAnnotation.php +++ b/src/Annotations/AbstractAnnotation.php @@ -237,6 +237,7 @@ public function __debugInfo() /** * Customize the way json_encode() renders the annotations. + * @return mixed */ #[\ReturnTypeWillChange] public function jsonSerialize() diff --git a/src/Annotations/Operation.php b/src/Annotations/Operation.php index eb02c12de..5878625c9 100644 --- a/src/Annotations/Operation.php +++ b/src/Annotations/Operation.php @@ -141,7 +141,9 @@ abstract class Operation extends AbstractAnnotation 'Swagger\Annotations\ExternalDocumentation' => 'externalDocs' ]; - /** @inheritdoc */ + /** + * @return mixed + */ #[\ReturnTypeWillChange] public function jsonSerialize() { diff --git a/src/Logger.php b/src/Logger.php index c19d35066..0ec849ea8 100644 --- a/src/Logger.php +++ b/src/Logger.php @@ -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) {