We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
__call()
1 parent b95d54a commit fbe4ab6Copy full SHA for fbe4ab6
src/Http/TestResponse.php
@@ -53,18 +53,14 @@ public function __construct(protected ResponseInterface $response)
53
54
/**
55
* Handle dynamic calls into macros or pass missing methods to the base response.
56
- *
57
- * @param string $method
58
- * @param array $args
59
- * @return mixed
60
*/
61
- public function __call($method, $args)
+ public function __call(string $name, array $arguments): mixed
62
{
63
- if (static::hasMacro($method)) {
64
- return $this->macroCall($method, $args);
+ if (static::hasMacro($name)) {
+ return $this->macroCall($name, $arguments);
65
}
66
67
- return $this->response->{$method}(...$args);
+ return $this->response->{$name}(...$arguments);
68
69
70
0 commit comments