From 9127401a66ba8b5e61f697d8415868f778782ca0 Mon Sep 17 00:00:00 2001 From: Sami Mazouz Date: Fri, 8 Nov 2024 10:01:27 +0100 Subject: [PATCH] fix: make argument required --- framework/core/src/Database/Exception/MigrationKeyMissing.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/src/Database/Exception/MigrationKeyMissing.php b/framework/core/src/Database/Exception/MigrationKeyMissing.php index 73e25c339c..343b9785af 100644 --- a/framework/core/src/Database/Exception/MigrationKeyMissing.php +++ b/framework/core/src/Database/Exception/MigrationKeyMissing.php @@ -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); }