chore: Create AccountPresetService tests

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2022-11-28 20:42:48 +01:00
parent 42a77cc5ec
commit ab49a901ff
10 changed files with 405 additions and 409 deletions

View File

@@ -24,7 +24,6 @@
namespace SP\DataModel;
use SP\Core\Exceptions\NoSuchPropertyException;
use SP\Util\Util;
@@ -36,8 +35,8 @@ use SP\Util\Util;
trait SerializedModel
{
/**
* @param string|null $class
* @param string $property
* @param string|null $class
* @param string $property
*
* @return mixed|null
* @throws NoSuchPropertyException
@@ -53,6 +52,7 @@ trait SerializedModel
return Util::unserialize($class, $this->{$property});
}
/** @noinspection UnserializeExploitsInspection */
return unserialize($this->{$property});
}