Issues (35)

src/Resolvers/IpAddressResolver.php (1 issue)

1
<?php
2
3
namespace OwenIt\Auditing\Resolvers;
4
5
use Illuminate\Support\Facades\Request;
6
7
class IpAddressResolver implements \OwenIt\Auditing\Contracts\IpAddressResolver
8
{
9
    /**
10
     * {@inheritdoc}
11
     */
12 52
    public static function resolve(): string
13
    {
14 52
        return Request::ip();
0 ignored issues
show
Bug Best Practice introduced by
The expression return Illuminate\Support\Facades\Request::ip() could return the type null which is incompatible with the type-hinted return string. Consider adding an additional type-check to rule them out.
Loading history...
15
    }
16
}
17