From b8f7cd7b041cc93c0634531beace0d23cbaa6259 Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Thu, 27 Nov 2014 00:59:07 +0100 Subject: [PATCH] zendframework/zf2#6785 - using `is_subclass_of()` instead of protected static method usage See bug https://bugs.php.net/bug.php?id=53727 See bug https://github.com/zendframework/zf2/pull/1807 Deprecating protected static polyfill method `isSubclassOf` --- src/AutoloaderFactory.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/AutoloaderFactory.php b/src/AutoloaderFactory.php index 5632ecf..a4a44d2 100644 --- a/src/AutoloaderFactory.php +++ b/src/AutoloaderFactory.php @@ -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) @@ -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