Skip to content
Open
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
2 changes: 1 addition & 1 deletion SwaggerGen/Parser/Php/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ private function inherit(Entity\ParserClass $Class)
* @throws Exception
* @throws Exception
*/
private function expand(array $Statements, ParserClass $Self = null)
private function expand(array $Statements, ?ParserClass $Self = null)
{
$output = [];

Expand Down
2 changes: 1 addition & 1 deletion SwaggerGen/Swagger/AbstractObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ abstract class AbstractObject
*/
private $extensions = array();

public function __construct(AbstractObject $parent = null)
public function __construct(?AbstractObject $parent = null)
{
$this->parent = $parent;
}
Expand Down
2 changes: 1 addition & 1 deletion SwaggerGen/Swagger/Operation.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function getConsumes(): array
/**
* @param string $summary
*/
public function __construct(AbstractObject $parent, $summary = null, Tag $tag = null)
public function __construct(AbstractObject $parent, $summary = null, ?Tag $tag = null)
{
parent::__construct($parent);
$this->summary = $summary;
Expand Down
2 changes: 1 addition & 1 deletion SwaggerGen/Swagger/Path.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Path extends AbstractObject
*/
private $tag;

public function __construct(AbstractObject $parent, Tag $Tag = null)
public function __construct(AbstractObject $parent, ?Tag $Tag = null)
{
parent::__construct($parent);
$this->tag = $Tag;
Expand Down