Skip to content

Commit 9df772d

Browse files
authored
Merge pull request #55 from tipsyphp/php-warnings
update static call
2 parents 0bdfca7 + 032d82a commit 9df772d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/Resource.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,6 @@ public function table($table = null) {
460460
}
461461

462462
public function __o($args) {
463-
//return call_user_func_array([self, '__o_static'], func_get_args());
464463
$classname = get_called_class();
465464

466465
foreach (func_get_args() as $arg) {
@@ -508,7 +507,7 @@ public static function __o_static() {
508507
}
509508

510509
public static function __q_static() {
511-
return call_user_func_array([self, '__query_static'], func_get_args());
510+
return forward_static_call_array('__query_static', func_get_args());
512511
}
513512

514513
public static function __query_static() {

0 commit comments

Comments
 (0)