Skip to content

Commit 552bf40

Browse files
TomasVotrubajaapio
authored andcommitted
add strict_types
1 parent a3fe4d6 commit 552bf40

28 files changed

+31
-31
lines changed

src/FqsenResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22
/**
33
* This file is part of phpDocumentor.
44
*

src/Type.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22
/**
33
* This file is part of phpDocumentor.
44
*

src/TypeResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22
/**
33
* This file is part of phpDocumentor.
44
*

src/Types/Array_.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22
/**
33
* This file is part of phpDocumentor.
44
*

src/Types/Boolean.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22
/**
33
* This file is part of phpDocumentor.
44
*

src/Types/Callable_.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22
/**
33
* This file is part of phpDocumentor.
44
*

src/Types/Compound.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22
/**
33
* This file is part of phpDocumentor.
44
*

src/Types/Context.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22
/**
33
* This file is part of phpDocumentor.
44
*

src/Types/ContextFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22
/**
33
* This file is part of phpDocumentor.
44
*
@@ -47,7 +47,7 @@ public function createFromReflector(\Reflector $reflector)
4747
$fileName = $reflector->getFileName();
4848
$namespace = $reflector->getNamespaceName();
4949

50-
if (file_exists($fileName)) {
50+
if ($fileName && file_exists($fileName)) {
5151
return $this->createForNamespace($namespace, file_get_contents($fileName));
5252
}
5353

src/Types/Float_.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22
/**
33
* This file is part of phpDocumentor.
44
*

0 commit comments

Comments
 (0)