Skip to content

Commit f675dc6

Browse files
Update running.md
1 parent 808c621 commit f675dc6

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

docs/how-to-use/running.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ use DragonCode\LaravelActions\Action;
5353

5454
return new class extends Action
5555
{
56-
protected $before = false;
56+
protected bool $before = false;
5757

5858
public function __invoke(): void
5959
{
@@ -109,7 +109,7 @@ use DragonCode\LaravelActions\Action;
109109

110110
return new class extends Action
111111
{
112-
protected $once = false;
112+
protected bool $once = false;
113113

114114
public function __invoke(): void
115115
{
@@ -137,8 +137,7 @@ use DragonCode\LaravelActions\Action;
137137

138138
return new class extends Action
139139
{
140-
/** @var string|array|null */
141-
protected $environment = 'production';
140+
protected string|array|null $environment = 'production';
142141

143142
public function __invoke(): void
144143
{
@@ -154,8 +153,7 @@ use DragonCode\LaravelActions\Action;
154153

155154
return new class extends Action
156155
{
157-
/** @var string|array|null */
158-
protected $environment = ['testing', 'staging'];
156+
protected string|array|null $environment = ['testing', 'staging'];
159157

160158
public function __invoke(): void
161159
{
@@ -177,8 +175,7 @@ use DragonCode\LaravelActions\Action;
177175

178176
return new class extends Action
179177
{
180-
/** @var string|array|null */
181-
protected $exceptEnvironment = 'production';
178+
protected string|array|null $exceptEnvironment = 'production';
182179

183180
public function __invoke(): void
184181
{
@@ -194,8 +191,7 @@ use DragonCode\LaravelActions\Action;
194191

195192
return new class extends Action
196193
{
197-
/** @var string|array|null */
198-
protected $exceptEnvironment = ['testing', 'staging'];
194+
protected string|array|null $exceptEnvironment = ['testing', 'staging'];
199195

200196
public function __invoke(): void
201197
{
@@ -219,7 +215,7 @@ use DragonCode\LaravelActions\Action;
219215

220216
return new class extends Action
221217
{
222-
protected $transactions = true;
218+
protected bool $transactions = true;
223219

224220
protected $transactionAttempts = 3;
225221

0 commit comments

Comments
 (0)