Skip to content

Commit

Permalink
Remove ignores and fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
m1k3lm committed Oct 9, 2024
1 parent baf412a commit 82fa929
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
11 changes: 6 additions & 5 deletions src/Infrastructure/AutoTest/AutoTestLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
);
}

/**
Expand Down
9 changes: 4 additions & 5 deletions src/Infrastructure/Serializer/Serializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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);
Expand Down

0 comments on commit 82fa929

Please sign in to comment.