bug #29873 [Debug] remove return type hint for PHP 5 compatibility (xabbuh)

This PR was merged into the 3.4 branch.

Discussion
----------

[Debug] remove return type hint for PHP 5 compatibility

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

Commits
-------

1f31471ffe remove return type hint for PHP 5 compatibility
This commit is contained in:
Fabien Potencier 2019-01-14 09:59:05 +01:00
commit 057890d41e
1 changed files with 4 additions and 1 deletions

View File

@ -124,7 +124,10 @@ class DebugClassLoader
}
}
public function findFile($class): ?string
/**
* @return string|null
*/
public function findFile($class)
{
return $this->isFinder ? $this->classLoader[0]->findFile($class) ?: null : null;
}