We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3780b4 commit f4a30cbCopy full SHA for f4a30cb
tests/RedisTest.php
@@ -6102,9 +6102,15 @@ public function testInvalidAuthArgs() {
6102
6103
foreach ($arr_args as $arr_arg) {
6104
try {
6105
- @call_user_func_array([$obj_new, 'auth'], $arr_arg);
+ if (is_array($arr_arg)) {
6106
+ @call_user_func_array([$obj_new, 'auth'], $arr_arg);
6107
+ } else {
6108
+ call_user_func([$obj_new, 'auth']);
6109
+ }
6110
} catch (Exception $ex) {
6111
unset($ex); /* Suppress intellisense warning */
6112
+ } catch (ArgumentCountError $ex) {
6113
+ unset($ex); /* Suppress intellisense warning */
6114
}
6115
6116
0 commit comments