mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-01 14:04:30 +02:00
Use str_contains and similar instead of strpos
This commit is contained in:
parent
508de10191
commit
1dbf36b86b
16 changed files with 18 additions and 19 deletions
|
@ -96,7 +96,7 @@ final class PasswordChangeNeededSubscriber implements EventSubscriberInterface
|
|||
|
||||
/* Dont redirect tree endpoints, as this would cause trouble and creates multiple flash
|
||||
warnigs for one page reload */
|
||||
if (false !== strpos($request->getUri(), '/tree/')) {
|
||||
if (str_contains($request->getUri(), '/tree/')) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue