@@ -114,12 +114,12 @@ public function testCollectCurrentViewMobileCanUseTablet(): void
114
114
$ this ->request ->expects (self ::any ())->method ('getBaseUrl ' )->willReturn ('/base-url ' );
115
115
$ this ->request ->expects (self ::any ())->method ('getPathInfo ' )->willReturn ('/path-info ' );
116
116
$ test = $ this ;
117
- $ this ->request ->expects (self ::any ())->method ('getQueryString ' )->willReturnCallback (function () use ($ test ) {
117
+ $ this ->request ->expects (self ::any ())->method ('getQueryString ' )->willReturnCallback (static function () use ($ test ) {
118
118
$ qs = Request::normalizeQueryString ($ test ->request ->server ->get ('QUERY_STRING ' ));
119
119
120
120
return '' === $ qs ? null : $ qs ;
121
121
});
122
- $ this ->request ->expects (self ::any ())->method ('getUri ' )->willReturnCallback (function () use ($ test ) {
122
+ $ this ->request ->expects (self ::any ())->method ('getUri ' )->willReturnCallback (static function () use ($ test ) {
123
123
if (null !== $ qs = $ test ->request ->getQueryString ()) {
124
124
$ qs = '? ' .$ qs ;
125
125
}
@@ -177,12 +177,12 @@ public function testCollectCurrentViewFullCanUseMobile(): void
177
177
$ this ->request ->expects (self ::any ())->method ('getBaseUrl ' )->willReturn ('/base-url ' );
178
178
$ this ->request ->expects (self ::any ())->method ('getPathInfo ' )->willReturn ('/path-info ' );
179
179
$ test = $ this ;
180
- $ this ->request ->expects (self ::any ())->method ('getQueryString ' )->willReturnCallback (function () use ($ test ) {
180
+ $ this ->request ->expects (self ::any ())->method ('getQueryString ' )->willReturnCallback (static function () use ($ test ) {
181
181
$ qs = Request::normalizeQueryString ($ test ->request ->server ->get ('QUERY_STRING ' ));
182
182
183
183
return '' === $ qs ? null : $ qs ;
184
184
});
185
- $ this ->request ->expects (self ::any ())->method ('getUri ' )->willReturnCallback (function () use ($ test ) {
185
+ $ this ->request ->expects (self ::any ())->method ('getUri ' )->willReturnCallback (static function () use ($ test ) {
186
186
if (null !== $ qs = $ test ->request ->getQueryString ()) {
187
187
$ qs = '? ' .$ qs ;
188
188
}
@@ -240,12 +240,12 @@ public function testCollectCurrentViewFullCantUseMobile(): void
240
240
$ this ->request ->expects (self ::any ())->method ('getBaseUrl ' )->willReturn ('/base-url ' );
241
241
$ this ->request ->expects (self ::any ())->method ('getPathInfo ' )->willReturn ('/path-info ' );
242
242
$ test = $ this ;
243
- $ this ->request ->expects (self ::any ())->method ('getQueryString ' )->willReturnCallback (function () use ($ test ) {
243
+ $ this ->request ->expects (self ::any ())->method ('getQueryString ' )->willReturnCallback (static function () use ($ test ) {
244
244
$ qs = Request::normalizeQueryString ($ test ->request ->server ->get ('QUERY_STRING ' ));
245
245
246
246
return '' === $ qs ? null : $ qs ;
247
247
});
248
- $ this ->request ->expects (self ::any ())->method ('getUri ' )->willReturnCallback (function () use ($ test ) {
248
+ $ this ->request ->expects (self ::any ())->method ('getUri ' )->willReturnCallback (static function () use ($ test ) {
249
249
if (null !== $ qs = $ test ->request ->getQueryString ()) {
250
250
$ qs = '? ' .$ qs ;
251
251
}
0 commit comments