From 567a66b77a430866536d53c2542440fd08824381 Mon Sep 17 00:00:00 2001 From: Alexander Wulf Date: Sat, 19 Feb 2022 21:56:40 +0100 Subject: [PATCH] Test updated --- .../Generator/DocBlock/AsJobGenerator.php | 4 +- ...ender_the_output_so_it_matches_the___1.txt | 146 ++++++++++++++++++ 2 files changed, 148 insertions(+), 2 deletions(-) create mode 100644 tests/__snapshots__/IdeHelperOutputTest__it_can_render_the_output_so_it_matches_the___1.txt diff --git a/src/Service/Generator/DocBlock/AsJobGenerator.php b/src/Service/Generator/DocBlock/AsJobGenerator.php index 485dd61..cc5e7dd 100644 --- a/src/Service/Generator/DocBlock/AsJobGenerator.php +++ b/src/Service/Generator/DocBlock/AsJobGenerator.php @@ -39,11 +39,11 @@ public function generate(ActionInfo $info): array new Method('makeUniqueJob', $args, $this->resolveType(UniqueJobDecorator::class), true), new Method('dispatch', $args, $this->resolveType(PendingDispatch::class), true), new Method('dispatchIf', - collect($args)->prepend(['name' => 'boolean', 'type' => Boolean::class])->toArray(), + collect($args)->prepend(['name' => 'boolean', 'type' => 'bool'])->toArray(), $this->resolveAsUnionType(PendingDispatch::class, Fluent::class), true), new Method('dispatchUnless', - collect($args)->prepend(['name' => 'boolean', 'type' => Boolean::class])->toArray(), + collect($args)->prepend(['name' => 'boolean', 'type' => 'bool'])->toArray(), $this->resolveAsUnionType(PendingDispatch::class, Fluent::class), true), new Method('dispatchSync', $args, null, true), diff --git a/tests/__snapshots__/IdeHelperOutputTest__it_can_render_the_output_so_it_matches_the___1.txt b/tests/__snapshots__/IdeHelperOutputTest__it_can_render_the_output_so_it_matches_the___1.txt new file mode 100644 index 0000000..b64c713 --- /dev/null +++ b/tests/__snapshots__/IdeHelperOutputTest__it_can_render_the_output_so_it_matches_the___1.txt @@ -0,0 +1,146 @@ +