Skip to content
This repository has been archived by the owner on Jan 30, 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 660eb19 + 587b0dd + 13e8cbe + 7100033 + 9d78e4a commit 4daeba0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/AutoloaderFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,12 @@ protected static function getStandardAutoloader()
*/
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 4daeba0

Please sign in to comment.