@@ -80,7 +80,7 @@ function (ServerRequestInterface $request) use ($responseFactory) {
80
80
81
81
return $ response ;
82
82
}
83
- ))-> pathOptions ( ['requirements ' => ['name ' => '[a-z]+ ' ]]);
83
+ ), [], ['requirements ' => ['name ' => '[a-z]+ ' ]]);
84
84
85
85
$ app = new Application ([
86
86
new ExceptionMiddleware ($ responseFactory , true ),
@@ -113,7 +113,7 @@ function (ServerRequestInterface $request) use ($responseFactory) {
113
113
114
114
return $ response ;
115
115
}
116
- ))-> pathOptions ( ['requirements ' => ['name ' => '[a-z]+ ' ]]);
116
+ ), [], ['requirements ' => ['name ' => '[a-z]+ ' ]]);
117
117
118
118
$ app = new Application ([
119
119
new ExceptionMiddleware ($ responseFactory , true ),
@@ -149,7 +149,7 @@ function (ServerRequestInterface $request) use ($responseFactory) {
149
149
150
150
return $ response ;
151
151
}
152
- ))-> pathOptions ( ['requirements ' => ['name ' => '[a-z]+ ' ]]);
152
+ ), [], ['requirements ' => ['name ' => '[a-z]+ ' ]]);
153
153
154
154
$ app = new Application ([
155
155
new ExceptionMiddleware ($ responseFactory , true ),
@@ -181,7 +181,7 @@ public function testException(
181
181
function (): void {
182
182
throw new \RuntimeException ('Something went wrong ' );
183
183
}
184
- ))-> pathOptions ( ['requirements ' => ['name ' => '[a-z]+ ' ]]);
184
+ ), [], ['requirements ' => ['name ' => '[a-z]+ ' ]]);
185
185
186
186
$ app = new Application ([
187
187
new ExceptionMiddleware ($ responseFactory , true ),
@@ -217,7 +217,7 @@ public function testExceptionWithoutExceptionMiddleware(
217
217
function (): void {
218
218
throw new \RuntimeException ('Something went wrong ' );
219
219
}
220
- ))-> pathOptions ( ['requirements ' => ['name ' => '[a-z]+ ' ]]);
220
+ ), [], ['requirements ' => ['name ' => '[a-z]+ ' ]]);
221
221
222
222
$ app = new Application ([
223
223
new RouterMiddleware (new Router ([$ route ]), $ responseFactory ),
@@ -235,7 +235,7 @@ public function testGeneratePath(): void
235
235
{
236
236
$ route = Route::get ('/hello/{name} ' , 'hello ' , new CallbackRequestHandler (
237
237
function (): void {}
238
- ))-> pathOptions ( ['requirements ' => ['name ' => '[a-z]+ ' ]]);
238
+ ), [], ['requirements ' => ['name ' => '[a-z]+ ' ]]);
239
239
240
240
$ router = new Router ([$ route ]);
241
241
0 commit comments