Skip to content

Commit 6182fab

Browse files
committed
Fix phpstan errors
1 parent 57cd030 commit 6182fab

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/phpDocumentor/Reflection/Php/Factory/Function_.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ protected function doCreate(
5656
new Location($object->getLine()),
5757
new Location($object->getEndLine()),
5858
(new Type())->fromPhpParser($object->getReturnType()),
59-
$object->byRef || false
59+
$object->byRef ?: false
6060
);
6161

6262
$file->addFunction($function);

src/phpDocumentor/Reflection/Php/Factory/Method.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ protected function doCreate(
6969
new Location($object->getLine()),
7070
new Location($object->getEndLine()),
7171
(new Type())->fromPhpParser($object->getReturnType()),
72-
$object->byRef || false
72+
$object->byRef ?: false
7373
);
7474
$methodContainer->addMethod($method);
7575

src/phpDocumentor/Reflection/Php/Trait_.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ final class Trait_ implements Element, MetaDataContainerInterface
4444
/** @var Location */
4545
private $location;
4646

47+
/** @var Location */
48+
private $endLocation;
49+
4750
/**
4851
* Initializes the all properties
4952
*/

0 commit comments

Comments
 (0)