From c4ebd96b866f6d356b4c90913a8ead8da6050a08 Mon Sep 17 00:00:00 2001 From: Roman Lytvynenko Date: Mon, 20 May 2024 15:45:23 +0300 Subject: [PATCH] using app helper so TypeTransformer always gets the latest container --- src/ScrambleServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ScrambleServiceProvider.php b/src/ScrambleServiceProvider.php index e99fb81a..dc8a73d1 100644 --- a/src/ScrambleServiceProvider.php +++ b/src/ScrambleServiceProvider.php @@ -130,7 +130,7 @@ public function configurePackage(Package $package): void )); return new TypeTransformer( - $this->app->make(Infer::class), + app()->make(Infer::class), new Components, array_merge($typesToSchemaExtensions, [ EnumToSchema::class,