mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-03 15:14:08 +01:00
chore: Implement AccountAclService tests.
Use scoped namespace for simple functions. Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user