diff --git a/src/Elements/Element.php b/src/Elements/Element.php index d8efa55..2f593ed 100644 --- a/src/Elements/Element.php +++ b/src/Elements/Element.php @@ -251,7 +251,7 @@ public function when($value = null, callable $callback = null, callable $default ? $value($this) : $value; - if (version_compare(App::version(), '8.46.0', '>=')) { + if (version_compare(App::version(), '9.0.0', '>=')) { if (func_num_args() === 0) { return new HigherOrderWhenProxy($this); } @@ -276,7 +276,7 @@ public function unless($value = null, callable $callback = null, callable $defau ? $value($this) : $value; - if (version_compare(App::version(), '8.46.0', '>=')) { + if (version_compare(App::version(), '9.0.0', '>=')) { if (func_num_args() === 0) { return (new HigherOrderWhenProxy($this))->negateConditionOnCapture(); } diff --git a/tests/Unit/ConditionableTest.php b/tests/Unit/ConditionableTest.php index 2afef7c..42f029f 100644 --- a/tests/Unit/ConditionableTest.php +++ b/tests/Unit/ConditionableTest.php @@ -45,8 +45,8 @@ public function test_when_with_proxy() protected function requiresHigherOrderProxies() { - if (version_compare($this->app->version(), '8.46.0', '<')) { - $this->markTestSkipped('Requires Laravel 8.46 or higher.'); + if (version_compare($this->app->version(), '9.0.0', '<')) { + $this->markTestSkipped('Requires Laravel 9 or higher.'); } } }