Skip to content

Commit

Permalink
bug #29873 [Debug] remove return type hint for PHP 5 compatibility (x…
Browse files Browse the repository at this point in the history
…abbuh)

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
-------

1f31471 remove return type hint for PHP 5 compatibility
  • Loading branch information
fabpot committed Jan 14, 2019
2 parents 3ea4901 + 1f31471 commit 057890d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Symfony/Component/Debug/DebugClassLoader.php
Expand Up @@ -124,7 +124,10 @@ public static function disable()
}
}

public function findFile($class): ?string
/**
* @return string|null
*/
public function findFile($class)
{
return $this->isFinder ? $this->classLoader[0]->findFile($class) ?: null : null;
}
Expand Down

0 comments on commit 057890d

Please sign in to comment.