Skip to content

Commit 81869f0

Browse files
committed
Upgrade container:0.4
1 parent 02e60a5 commit 81869f0

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"license": "MIT",
55
"require": {
66
"php": ">=8.0.2",
7-
"gacela-project/container": "^0.3"
7+
"gacela-project/container": "^0.4"
88
},
99
"require-dev": {
1010
"ext-mbstring": "*",

src/Router/Entities/Route.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public function run(Bindings $bindings): string|Stringable
3535

3636
if (!is_object($this->controller)) {
3737
$creator = new Container($bindings->getAllBindings());
38+
/** @var object $controller */
3839
$controller = $creator->get($this->controller);
3940
$response = $controller->{$this->action}(...$params);
4041
} else {

src/Router/Router.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ private static function handleException(Handlers $handlers, Exception $exception
5858
return $handler($exception);
5959
}
6060

61+
/** @var mixed $instance */
6162
$instance = Container::create($handler);
6263

6364
if (is_callable($instance)) {

0 commit comments

Comments
 (0)