Skip to content

Commit

Permalink
Revert psalm-suppress
Browse files Browse the repository at this point in the history
  • Loading branch information
msmakouz committed Dec 5, 2023
1 parent c3e3e3a commit 6dd4a77
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Core/src/Internal/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ private function isSingleton(Ctx $ctx): bool
return true;
}

/** @psalm-suppress RedundantCondition https://github.com/vimeo/psalm/issues/9489 */
if ($ctx->reflection->implementsInterface(SingletonInterface::class)) {
return true;
}
Expand Down
1 change: 1 addition & 0 deletions src/Models/src/Reflection/ReflectionEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ public function getProperty(string $property, bool $merge = false): mixed
}
}

/** @psalm-suppress TypeDoesNotContainType https://github.com/vimeo/psalm/issues/9489 */
if (!$this->reflection->isSubclassOf(SchematicEntity::class)) {
return $value;
}
Expand Down
1 change: 1 addition & 0 deletions src/Queue/src/QueueableDetector.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public function isQueueable($object): bool
{
$reflection = new \ReflectionClass($object);

/** @psalm-suppress RedundantCondition https://github.com/vimeo/psalm/issues/9489 */
if ($reflection->implementsInterface(QueueableInterface::class)) {
return true;
}
Expand Down
1 change: 1 addition & 0 deletions src/Reactor/src/Aggregator.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public function add(AggregableInterface $element): self

$allowed = false;
foreach ($this->allowed as $class) {
/** @psalm-suppress RedundantCondition https://github.com/vimeo/psalm/issues/9489 */
if ($reflector->isSubclassOf($class) || $element::class === $class) {
$allowed = true;
break;
Expand Down
1 change: 1 addition & 0 deletions src/Tokenizer/src/EnumLocator.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ protected function isTargeted(\ReflectionEnum $enum, \ReflectionClass $target =

if (!$target->isTrait()) {
//Target is interface or class
/** @psalm-suppress RedundantCondition https://github.com/vimeo/psalm/issues/9489 */
return $enum->isSubclassOf($target) || $enum->getName() === $target->getName();
}

Expand Down

0 comments on commit 6dd4a77

Please sign in to comment.