Skip to content

Commit 15925d8

Browse files
authored
Fix service typo (#5)
1 parent 8336f87 commit 15925d8

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/Contracts/Runnable.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ interface Runnable
66
{
77
/**
88
* Must run parent::run() to validate request
9-
*
10-
* @return void
119
*/
12-
public function run(): void;
10+
public function run(): mixed;
1311
}

src/Services/AbstractService.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ public function __construct(array|Request $request)
1616
: new Request($request);
1717
}
1818

19-
public function run(): void
19+
public function run(): mixed
2020
{
2121
$this->validate();
22+
23+
return null;
2224
}
2325

2426
protected function validations(): array

tests/Feature/Services/ServiceTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ protected function validations(): array
4444
];
4545
}
4646

47-
public function run(): void
47+
public function run(): mixed
4848
{
4949
parent::run();
5050

51-
// Do something
51+
return null;
5252
}
5353
}

0 commit comments

Comments
 (0)