version_compare

Supported Versions: PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8
Compares two "PHP-standardized" version number strings
<?php version_compare(string $version1, string $version2, ?string $operator = null): int|bool
<?php     public function canSolve(Throwable $throwable): bool

    {

        if (version_compare(Application::VERSION, '6.0.0', '>=')) {

            if (! $throwable instanceof RouteNotFoundException) {

                return false;

            }
<?php             }

        }



        if (version_compare(Application::VERSION, '6.0.0', '<')) {

            if (! $throwable instanceof InvalidArgumentException && ! $throwable instanceof ViewException) {

                return false;

            }
<?php     public function it_can_suggest_bad_method_call_exceptions()

    {

        if (version_compare($this->app->version(), '5.6.3', '<')) {

            $this->markTestSkipped('Laravel version < 5.6.3 do not support bad method call solutions');

        }
<?php     public function it_can_propose_a_solution_for_bad_method_call_exceptions_on_collections()

    {

        if (version_compare($this->app->version(), '5.6.3', '<')) {

            $this->markTestSkipped('Laravel version < 5.6.3 do not support bad method call solutions');

        }
<?php     public function it_can_propose_a_solution_for_bad_method_call_exceptions_on_models()

    {

        if (version_compare($this->app->version(), '5.7', '<')) {

            $this->markTestSkipped('Laravel version < 5.7.0 does not provide the actual called class for model exceptions.');

        }
<?php     {

        parent::setUp();



        if (version_compare($this->app->version(), '8.43.0', '<')) {

            $this->markTestSkipped();

        }

    }
<?php     public function it_can_solve_the_exception()

    {

        if (version_compare($this->app->version(), '5.6.3', '<')) {

            $this->markTestSkipped('Laravel version < 5.6.3 do not support bad method call solutions');

        }
<?php     public function it_can_recommend_changing_the_rule($invalidRule, $recommendedRule)

    {

        if (version_compare($this->app->version(), '5.6.3', '<')) {

            $this->markTestSkipped('Laravel version < 5.6.3 do not support bad method call solutions');

        }