Skip to content

Commit

Permalink
Merge pull request #383 from JohnVillalovos/jlvillal/get_class
Browse files Browse the repository at this point in the history
chore: fix calling `get_class()` without arguments
  • Loading branch information
effgarces authored Jul 9, 2024
2 parents 51f05a7 + 12876bb commit 1090310
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/external/pear/PEAR.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,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 Expand Up @@ -663,7 +663,7 @@ public function __call($method, $arguments)
);
}
return call_user_func_array(
array(get_class(), '_' . $method),
array(__CLASS__, '_' . $method),
array_merge(array($this), $arguments)
);
}
Expand Down

0 comments on commit 1090310

Please sign in to comment.