diff --git a/src/Core/src/Internal/Factory.php b/src/Core/src/Internal/Factory.php index 5aa79f9a6..de56bbe53 100644 --- a/src/Core/src/Internal/Factory.php +++ b/src/Core/src/Internal/Factory.php @@ -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; } diff --git a/src/Models/src/Reflection/ReflectionEntity.php b/src/Models/src/Reflection/ReflectionEntity.php index 0e0c13f59..2cb23e167 100644 --- a/src/Models/src/Reflection/ReflectionEntity.php +++ b/src/Models/src/Reflection/ReflectionEntity.php @@ -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; } diff --git a/src/Queue/src/QueueableDetector.php b/src/Queue/src/QueueableDetector.php index 7e2a51ca2..52a3b60ae 100644 --- a/src/Queue/src/QueueableDetector.php +++ b/src/Queue/src/QueueableDetector.php @@ -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; } diff --git a/src/Reactor/src/Aggregator.php b/src/Reactor/src/Aggregator.php index 331a5441c..be5f672b4 100644 --- a/src/Reactor/src/Aggregator.php +++ b/src/Reactor/src/Aggregator.php @@ -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; diff --git a/src/Tokenizer/src/EnumLocator.php b/src/Tokenizer/src/EnumLocator.php index d43620028..cae344c07 100644 --- a/src/Tokenizer/src/EnumLocator.php +++ b/src/Tokenizer/src/EnumLocator.php @@ -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(); }