Skip to content

Commit

Permalink
using app helper so TypeTransformer always gets the latest container
Browse files Browse the repository at this point in the history
  • Loading branch information
romalytvynenko committed May 20, 2024
1 parent 9151288 commit c4ebd96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ScrambleServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c4ebd96

Please sign in to comment.