Skip to content

Commit

Permalink
Format class namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
jsanahuja committed May 14, 2021
1 parent 4ced297 commit f2d08c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sowe/websocketio",
"description": "SocketIO implementation using RFC6455-compliant websockets only. Built on top of Swoole Websocket Server.",
"version": "1.0.2",
"version": "1.0.3",
"type": "library",
"license": "MIT",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions src/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ public function __construct(callable $callable)
$reflection = new \ReflectionFunction($callable);
}
} elseif (!is_array($callable)) {
$reflection = new ReflectionMethod($callable, '__invoke');
$reflection = new \ReflectionMethod($callable, '__invoke');
} else {
$reflection = new ReflectionMethod(...$callable);
$reflection = new \ReflectionMethod(...$callable);
}

$this->requiredArguments = $reflection->getNumberOfRequiredParameters();
Expand Down

0 comments on commit f2d08c1

Please sign in to comment.