mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
allow nulls
This commit is contained in:
@@ -12,21 +12,16 @@ class Projects extends Base
|
||||
];
|
||||
|
||||
/**
|
||||
* Expression constructor
|
||||
*
|
||||
* @param array|null $allowedAttributes
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function __construct()
|
||||
public function __construct(array $allowedAttributes = null)
|
||||
{
|
||||
parent::__construct('projects', $this->getAllowedAttributes());
|
||||
parent::__construct('projects', $allowedAttributes ?? static::ALLOWED_ATTRIBUTES);
|
||||
}
|
||||
|
||||
public function isSelectQueryAllowed(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function getAllowedAttributes(): array
|
||||
{
|
||||
return self::ALLOWED_ATTRIBUTES;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user