Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BUG removed use of deprecated method

  • Loading branch information...
commit 5c5a50687851015c01c76f7795e8b4e0f12aa7e6 1 parent ae52be5
Nik Rolls authored wilr committed
Showing with 2 additions and 1 deletion.
  1. +2 −1  filesystem/File.php
View
3  filesystem/File.php
@@ -920,8 +920,9 @@ static function get_class_for_file_extension($ext) {
*/
static function set_class_for_file_extension($exts, $class) {
if(!is_array($exts)) $exts = array($exts);
+
foreach($exts as $ext) {
- if(ClassInfo::is_subclass_of($ext, 'File')) {
+ if(is_subclass_of($ext, 'File')) {
throw new InvalidArgumentException(
sprintf('Class "%s" (for extension "%s") is not a valid subclass of File', $class, $ext)
);
Please sign in to comment.
Something went wrong with that request. Please try again.