Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'weierophinney/hotfix/is-subclass-of-opt…
Browse files Browse the repository at this point in the history
…imization'
  • Loading branch information
akrabat committed Jul 13, 2012
5 parents 92b6722 + 1d54f79 + 1b64e7d + 1f50979 + 97b2e50 commit 7465e5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Di.php
Expand Up @@ -723,12 +723,12 @@ protected function getClass($instance)
*/
protected static function isSubclassOf($className, $type)
{
if (version_compare(PHP_VERSION, '5.3.7', '>=')) {
return is_subclass_of($className, $type);
}
if (is_subclass_of($className, $type)) {
return true;
}
if (version_compare(PHP_VERSION, '5.3.7', '>=')) {
return false;
}
if (!interface_exists($type)) {
return false;
}
Expand Down

0 comments on commit 7465e5d

Please sign in to comment.