Issues (3)

src/Helpers/Version.php (1 issue)

1
<?php
2
3
namespace Helldar\LaravelActions\Helpers;
4
5
use Illuminate\Foundation\Application;
6
use Illuminate\Support\Str;
7
8
class Version
9
{
10 1
    public function is6x(): bool
11
    {
12 1
        return $this->major() === 6;
13
    }
14
15 1
    protected function major(): int
16
    {
17 1
        return Str::before(Application::VERSION, '.');
0 ignored issues
show
Bug Best Practice introduced by
The expression return Illuminate\Suppor...lication::VERSION, '.') returns the type string which is incompatible with the type-hinted return integer.
Loading history...
18
    }
19
}
20