| Conditions | 4 |
| Paths | 5 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | protected function shouldIgnore($request) |
||
| 22 | { |
||
| 23 | $this->except = $this->except ?? config('laravellocalization.urlsIgnored', []); |
||
|
|
|||
| 24 | foreach ($this->except as $except) { |
||
| 25 | if ($except !== '/') { |
||
| 26 | $except = trim($except, '/'); |
||
| 27 | } |
||
| 28 | |||
| 29 | if ($request->is($except)) { |
||
| 30 | return true; |
||
| 31 | } |
||
| 32 | } |
||
| 33 | |||
| 34 | return false; |
||
| 35 | } |
||
| 36 | } |
||
| 37 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..