chore: Implement AccountAclService tests.

Use scoped namespace for simple functions.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2022-11-25 23:40:27 +01:00
parent a4c654f44c
commit 796ecbc5fb
46 changed files with 1865 additions and 2533 deletions

View File

@@ -42,7 +42,7 @@ trait SerializedModel
* @return mixed|null
* @throws NoSuchPropertyException
*/
public function hydrate(?string $class = null, string $property = 'data')
public function hydrate(?string $class = null, string $property = 'data'): mixed
{
if (property_exists($this, $property)) {
if ($this->{$property} === null) {
@@ -58,4 +58,4 @@ trait SerializedModel
throw new NoSuchPropertyException($property);
}
}
}