File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 17
17
require __DIR__ .'/../vendor/autoload.php ' ;
18
18
19
19
use ApiPlatform \Playground \Kernel ;
20
+ use RuntimeException ;
20
21
21
22
if (!($ guide = $ _SERVER ['APP_GUIDE ' ] ?? $ _ENV ['APP_GUIDE ' ] ?? null )) {
22
- throw new \ RuntimeException ('No guide. ' );
23
+ throw new RuntimeException ('No guide. ' );
23
24
}
24
25
25
26
$ app = function (array $ context ) use ($ guide ) {
Original file line number Diff line number Diff line change 12
12
declare (strict_types=1 );
13
13
14
14
$ deprecatedClassesWithAliases = [
15
- \ ApiPlatform \HttpCache \EventListener \AddHeadersListener::class => \ApiPlatform \Symfony \EventListener \AddHeadersListener::class,
16
- \ ApiPlatform \HttpCache \EventListener \AddTagsListener::class => \ApiPlatform \Symfony \EventListener \AddTagsListener::class,
15
+ ApiPlatform \HttpCache \EventListener \AddHeadersListener::class => \ApiPlatform \Symfony \EventListener \AddHeadersListener::class,
16
+ ApiPlatform \HttpCache \EventListener \AddTagsListener::class => \ApiPlatform \Symfony \EventListener \AddTagsListener::class,
17
17
];
18
18
19
19
spl_autoload_register (function ($ className ) use ($ deprecatedClassesWithAliases ): void {
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ public function testRedirectToOperation(): void
67
67
$ iriConverter = $ this ->prophesize (IriConverterInterface::class);
68
68
$ iriConverter
69
69
->getIriFromResource (Argument::cetera ())
70
- ->will (static function (array $ args ): ? string {
70
+ ->will (static function (array $ args ): string {
71
71
return ($ args [2 ] ?? null )?->getUriTemplate() ?? '/default ' ;
72
72
});
73
73
You can’t perform that action at this time.
0 commit comments