Skip to content

Commit e74f472

Browse files
authored
Merge pull request #33 from wollanup/develop
fix using $this in closure was not expected $this value
2 parents a803c4b + 070aaf7 commit e74f472

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Service/Router/Route.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public function bindToRouter(RouterInterface $router)
114114
$response,
115115
$next,
116116
$route->getNameOfInjectedParam(),
117-
$this->hasToUseRequest()
117+
$route->hasToUseRequest()
118118
);
119119

120120
return $response;
@@ -130,7 +130,7 @@ public function bindToRouter(RouterInterface $router)
130130
$response,
131131
$next,
132132
$route->getNameOfInjectedParam(),
133-
$this->hasToUseRequest()
133+
$route->hasToUseRequest()
134134
);
135135

136136
return $response;

0 commit comments

Comments
 (0)