Skip to content

Commit f867dfe

Browse files
committed
Add defaults for return by reference
1 parent 1711e01 commit f867dfe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/phpDocumentor/Reflection/Php/Function_.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function __construct(
5656
?DocBlock $docBlock = null,
5757
?Location $location = null,
5858
?Type $returnType = null,
59-
bool $hasReturnByReference = null
59+
bool $hasReturnByReference = false
6060
) {
6161
if ($location === null) {
6262
$location = new Location(-1);

src/phpDocumentor/Reflection/Php/Method.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function __construct(
7272
bool $final = false,
7373
?Location $location = null,
7474
?Type $returnType = null,
75-
bool $hasReturnByReference = null
75+
bool $hasReturnByReference = false
7676
) {
7777
$this->fqsen = $fqsen;
7878
$this->visibility = $visibility;

0 commit comments

Comments
 (0)