Feat: Upgrading Lunar to 1.5

This commit is contained in:
2026-08-31 13:16:13 +03:00
parent 661e8b9a96
commit d873cb4931
42 changed files with 229 additions and 173 deletions
+4 -2
View File
@@ -2,6 +2,8 @@
namespace Modules\Core\Option;
use RuntimeException;
use Exception;
use EmptyIterator;
/**
@@ -24,7 +26,7 @@ final class None extends Option
public function get()
{
throw new \RuntimeException("None has no value.");
throw new RuntimeException("None has no value.");
}
public function getOrCall($callable)
@@ -37,7 +39,7 @@ final class None extends Option
return $default;
}
public function getOrThrow(\Exception $ex)
public function getOrThrow(Exception $ex)
{
throw $ex;
}