mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API CHANGE: Deprecated ClassInfo::is_subclass_of() in favour of is_subclass_of().
This commit is contained in:
parent
393893aa6d
commit
d187718a3f
8
core/ClassInfo.php
Executable file → Normal file
8
core/ClassInfo.php
Executable file → Normal file
@ -177,12 +177,10 @@ class ClassInfo {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if $subclass is a subclass of $parentClass.
|
||||
* Identical to the PHP built-in function, but faster.
|
||||
* @deprecated 3.0 Please use is_subclass_of.
|
||||
*/
|
||||
static function is_subclass_of($subclass, $parentClass) {
|
||||
global $_ALL_CLASSES;
|
||||
return isset($_ALL_CLASSES['parents'][$subclass][$parentClass]);
|
||||
public static function is_subclass_of($class, $parent) {
|
||||
return is_subclass_of($class, $parent);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user