diff --git a/src/Infrastructure/AutoTest/AutoTestLogger.php b/src/Infrastructure/AutoTest/AutoTestLogger.php index e0ad6c7..712a4c9 100644 --- a/src/Infrastructure/AutoTest/AutoTestLogger.php +++ b/src/Infrastructure/AutoTest/AutoTestLogger.php @@ -44,11 +44,12 @@ public function logMessage(LogData $data): void */ public function getLogs() { - /** - * @noinspection PhpIncompatibleReturnTypeInspection - */ - // @phpstan-ignore-next-line - return RepositoryRegistry::getRepository(LogData::CLASS_NAME)->select(); + return array_filter( + RepositoryRegistry::getRepository(LogData::CLASS_NAME)->select(), + function ($log) { + return $log instanceof LogData; + } + ); } /** diff --git a/src/Infrastructure/Serializer/Serializer.php b/src/Infrastructure/Serializer/Serializer.php index ca6da3a..bd421d7 100644 --- a/src/Infrastructure/Serializer/Serializer.php +++ b/src/Infrastructure/Serializer/Serializer.php @@ -27,11 +27,11 @@ abstract class Serializer */ public static function serialize($data) { + /** - * @var Serializer $instace + * @var Serializer $instance */ - // @phpstan-ignore-next-line - $instance = ServiceRegister::getService(self::CLASS_NAME); + $instance = ServiceRegister::getService(Serializer::CLASS_NAME); return $instance->doSerialize($data); } @@ -46,9 +46,8 @@ public static function serialize($data) public static function unserialize($serialized) { /** - * @var Serializer $instace + * @var Serializer $instance */ - // @phpstan-ignore-next-line $instance = ServiceRegister::getService(self::CLASS_NAME); return $instance->doUnserialize($serialized);