This commit is contained in:
2020-12-17 14:09:14 +08:00
parent 672a719dbd
commit 36c1d0502a
151 changed files with 1937 additions and 2848 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ namespace HttpServer\Route;
class Any
{
private $nodes = [];
private array $nodes = [];
/**
* Any constructor.
@@ -29,7 +29,7 @@ class Any
* @param $arguments
* @return $this
*/
public function __call($name, $arguments)
public function __call($name, $arguments): static
{
foreach ($this->nodes as $node) {
$node->{$name}(...$arguments);