mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 10:49:00 +02:00
Fixed some more phpstan issues
This commit is contained in:
parent
2f46fbfc7a
commit
e8771ea118
77 changed files with 192 additions and 109 deletions
|
@ -57,7 +57,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 (in_array($tmp[0], $constraint->allowed_placeholders, false)) {
|
||||
if (in_array($tmp[0], $constraint->allowed_placeholders, true)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -30,8 +30,6 @@ use Symfony\Component\Validator\ConstraintValidator;
|
|||
|
||||
class ValidPermissionValidator extends ConstraintValidator
|
||||
{
|
||||
protected array $perm_structure;
|
||||
|
||||
public function __construct(protected PermissionManager $resolver)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue