Skip to content

Commit 342cb91

Browse files
committed
corrected all nullable phpdoc typehints
1 parent b6517b1 commit 342cb91

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/Exists.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class Exists implements BooleanType
4949
* Exists constructor.
5050
*
5151
* @param MatchClause $match The MATCH part of the EXISTS expression
52-
* @param ?WhereClause $where The optional WHERE part of the EXISTS expression
52+
* @param WhereClause|null $where The optional WHERE part of the EXISTS expression
5353
*/
5454
public function __construct(MatchClause $match, ?WhereClause $where = null)
5555
{

src/Patterns/Path.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,22 +69,22 @@ class Path implements PathType
6969
private array $types = [];
7070

7171
/**
72-
* @var ?Variable
72+
* @var Variable|null
7373
*/
7474
private ?Variable $variable;
7575

7676
/**
77-
* @var ?int The minimum number of `relationship->node` hops away to search
77+
* @var int|null The minimum number of `relationship->node` hops away to search
7878
*/
7979
private ?int $minHops;
8080

8181
/**
82-
* @var ?int The maximum number of `relationship->node` hops away to search
82+
* @var int|null The maximum number of `relationship->node` hops away to search
8383
*/
8484
private ?int $maxHops;
8585

8686
/**
87-
* @var ?int The exact number of `relationship->node` hops away to search
87+
* @var int|null The exact number of `relationship->node` hops away to search
8888
*/
8989
private ?int $exactHops;
9090

@@ -374,7 +374,7 @@ public function getDirection(): array
374374
/**
375375
* Returns the exact amount of hops configured.
376376
*
377-
* @return ?int
377+
* @return int|null
378378
*/
379379
public function getExactHops(): ?int
380380
{
@@ -384,7 +384,7 @@ public function getExactHops(): ?int
384384
/**
385385
* Returns the maximum amount of hops configured
386386
*
387-
* @return ?int
387+
* @return int|null
388388
*/
389389
public function getMaxHops(): ?int
390390
{
@@ -394,9 +394,9 @@ public function getMaxHops(): ?int
394394
/**
395395
* Returns the minimum amount of hops configured.
396396
*
397-
* @return ?int
397+
* @return int|null
398398
*/
399-
public function getMinHops(): int
399+
public function getMinHops(): ?int
400400
{
401401
return $this->minHops;
402402
}

src/Query.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public static function relationship(StructuralType $a, StructuralType $b, array
121121
/**
122122
* Creates a variable.
123123
*
124-
* @param ?string $variable The name of the variable; leave empty to automatically generate a variable name.
124+
* @param string|null $variable The name of the variable; leave empty to automatically generate a variable name.
125125
* @return Variable
126126
*/
127127
public static function variable(?string $variable = null): Variable

0 commit comments

Comments
 (0)