mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-10 04:59:30 +00:00
Fixed phpstan issues
This commit is contained in:
parent
07db1554c7
commit
1bfea3c48a
6 changed files with 22 additions and 2 deletions
|
|
@ -34,9 +34,14 @@ use function is_array;
|
|||
*/
|
||||
final class InheritanceSecurityPolicy implements SecurityPolicyInterface
|
||||
{
|
||||
/**
|
||||
* @var array<string, string[]>
|
||||
*/
|
||||
private array $allowedMethods;
|
||||
|
||||
public function __construct(private array $allowedTags = [], private array $allowedFilters = [], array $allowedMethods = [], private array $allowedProperties = [], private array $allowedFunctions = [])
|
||||
public function __construct(private array $allowedTags = [], private array $allowedFilters = [], array $allowedMethods = [],
|
||||
/** @var array<string, string|string[]> */
|
||||
private array $allowedProperties = [], private array $allowedFunctions = [])
|
||||
{
|
||||
$this->setAllowedMethods($allowedMethods);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue