-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Capture all exceptions and throw them (#4)
- Loading branch information
1 parent
d6a9ca0
commit 222a50b
Showing
3 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace VictorFalcon\LaravelTask\Tests\stub; | ||
|
||
use VictorFalcon\LaravelTask\Task; | ||
use VictorFalcon\LaravelTask\Taskable; | ||
|
||
class WrongValidationTask extends Task | ||
{ | ||
use Taskable; | ||
|
||
public function rules(): array | ||
{ | ||
return [ | ||
'name' => 'invalida_validation_rule', | ||
]; | ||
} | ||
|
||
public function handle(): array | ||
{ | ||
return $this->data ?? []; | ||
} | ||
} |