Skip to content

Commit

Permalink
parameter defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
romalytvynenko committed Jan 18, 2025
1 parent 3bb6781 commit ed15b12
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Support/Generator/Parameter.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ class Parameter
public string $name;

/**
* Possible values are "query", "header", "path", "cookie", or `null` when should be default.
* Possible values are "query", "header", "path", or "cookie".
*
* @var "query"|"header"|"path"|"cookie"|null.
* @var "query"|"header"|"path"|"cookie".
*/
public ?string $in = null;
public string $in;

public bool $required = false;

Expand All @@ -41,7 +41,7 @@ class Parameter

public ?Schema $schema = null;

public function __construct(string $name, ?string $in = null)
public function __construct(string $name, string $in)
{
$this->name = $name;
$this->in = $in;
Expand Down

0 comments on commit ed15b12

Please sign in to comment.