Skip to content

Commit

Permalink
Fix PHP Deprecated: Calling get_class() without arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Feb 11, 2024
1 parent 77b4f33 commit b48b999
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 b48b999

Please sign in to comment.