Skip to content

Commit

Permalink
fix: make argument required
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 committed Nov 8, 2024
1 parent 68fd0bd commit 9127401
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function __construct(protected string $direction, ?string $file = null)
parent::__construct("Migration file $fileNameWithSpace should contain an array with up/down (looking for $direction)");
}

public function withFile(?string $file = null): self
public function withFile(string $file): self
{
return new self($this->direction, $file);
}
Expand Down

0 comments on commit 9127401

Please sign in to comment.