mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 02:38:50 +02:00
Fixed more PHPstan warnings.
This commit is contained in:
parent
775a223ab2
commit
61bd0bd15c
4 changed files with 4 additions and 2 deletions
|
@ -74,7 +74,7 @@ class UrlOrBuiltinValidator extends UrlValidator
|
|||
//After the %PLACEHOLDER% comes a slash, so we can check if we have a placholder via explode
|
||||
$tmp = explode('/', $value);
|
||||
//Builtins must have a %PLACEHOLDER% construction
|
||||
if (!empty($tmp) && \in_array($tmp[0], $constraint->allowed_placeholders, false)) {
|
||||
if (\in_array($tmp[0], $constraint->allowed_placeholders, false)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue