Skip to content

Commit

Permalink
Let's ignore the argument.type error from PHPStan.
Browse files Browse the repository at this point in the history
  • Loading branch information
icecoldPHP committed Feb 9, 2025
1 parent 9ebfa14 commit 8ae9d1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions database/seeders/DatabaseSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,13 @@ public function run(): void
'completed_at' => now()->subHours(12),
]);

/** @phpstan-ignore-next-line argument.type */
tap(Schedule::create([
'name' => 'Documentation Maintenance',
'message' => 'We will be conducting maintenance on our documentation servers. You may experience degraded performance during this time.',
'scheduled_at' => now()->addHours(24),
'completed_at' => null,
/** @phpstan-ignore-next-line argument.type */
]), function (Schedule $schedule) use ($user) {
$update = new Update([
'message' => <<<'EOF'
Expand Down
2 changes: 2 additions & 0 deletions src/Actions/Schedule/CreateSchedule.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class CreateSchedule
*/
public function handle(CreateScheduleRequestData $data): Schedule
{

/** @phpstan-ignore-next-line argument.type */
return tap(Schedule::create($data->except('components')->toArray()), function (Schedule $schedule) use ($data) {
if (! $data->components) {
return;
Expand Down

0 comments on commit 8ae9d1b

Please sign in to comment.