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

Commit

Permalink
zendframework/zendframework#6785 - using is_subclass_of() instead o…
Browse files Browse the repository at this point in the history
…f protected static method usage

See bug https://bugs.php.net/bug.php?id=53727
See bug zendframework/zendframework#1807

Deprecating protected static polyfill method `isSubclassOf`
  • Loading branch information
Ocramius committed Nov 26, 2014
1 parent c923c5a commit b8f7cd7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/AutoloaderFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public static function factory($options = null)
);
}

if (!static::isSubclassOf($class, 'Zend\Loader\SplAutoloader')) {
if (!is_subclass_of($class, 'Zend\Loader\SplAutoloader')) {
require_once 'Exception/InvalidArgumentException.php';
throw new Exception\InvalidArgumentException(
sprintf('Autoloader class %s must implement Zend\\Loader\\SplAutoloader', $class)
Expand Down Expand Up @@ -198,6 +198,8 @@ protected static function getStandardAutoloader()
* @see https://bugs.php.net/bug.php?id=53727
* @see https://github.com/zendframework/zf2/pull/1807
*
* @deprecated since zf 2.3 requires PHP >= 5.3.23
*
* @param string $className
* @param string $type
* @return bool
Expand Down

0 comments on commit b8f7cd7

Please sign in to comment.