Skip to content

Commit dc2c844

Browse files
Optimized the parameters of method __call() to make them more standardized. (#7637)
Co-authored-by: 李铭昕 <[email protected]>
1 parent 491674a commit dc2c844

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Functions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ function str($string = null)
2222
{
2323
if (func_num_args() === 0) {
2424
return new class implements \Stringable {
25-
public function __call($method, $parameters)
25+
public function __call(string $name, array $arguments): mixed
2626
{
27-
return Str::$method(...$parameters);
27+
return Str::$name(...$arguments);
2828
}
2929

3030
public function __toString(): string

0 commit comments

Comments
 (0)