Skip to content

Commit

Permalink
Merge pull request #135 from alecpl/dev/get-class-fix
Browse files Browse the repository at this point in the history
Fix PHP Deprecated: Calling get_class() without arguments
  • Loading branch information
ashnazg committed Mar 9, 2024
2 parents 30769e5 + 718320e commit 23a81cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PEAR.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public function __call($method, $arguments)
);
}
return call_user_func_array(
array(get_class(), '_' . $method),
array(__CLASS__, '_' . $method),
array_merge(array($this), $arguments)
);
}
Expand All @@ -232,7 +232,7 @@ public static function __callStatic($method, $arguments)
);
}
return call_user_func_array(
array(get_class(), '_' . $method),
array(__CLASS__, '_' . $method),
array_merge(array(null), $arguments)
);
}
Expand Down

0 comments on commit 23a81cd

Please sign in to comment.