Skip to content

Commit

Permalink
fix exception
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik committed Nov 18, 2024
1 parent 305d64f commit 136b584
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public function getName(): string
public function getSolution(): ?string
{
$queueClass = Queue::class;
$queueProviderInterface = QueueProviderInterface::class;

Check failure on line 23 in src/Exception/AdapterConfiguration/AdapterNotConfiguredException.php

View workflow job for this annotation

GitHub Actions / psalm / PHP 8.1-ubuntu-latest

UndefinedClass

src/Exception/AdapterConfiguration/AdapterNotConfiguredException.php:23:35: UndefinedClass: Class, interface or enum named Yiisoft\Queue\Exception\AdapterConfiguration\QueueProviderInterface does not exist (see https://psalm.dev/019)

Check failure on line 23 in src/Exception/AdapterConfiguration/AdapterNotConfiguredException.php

View workflow job for this annotation

GitHub Actions / psalm / PHP 8.3-ubuntu-latest

UndefinedClass

src/Exception/AdapterConfiguration/AdapterNotConfiguredException.php:23:35: UndefinedClass: Class, interface or enum named Yiisoft\Queue\Exception\AdapterConfiguration\QueueProviderInterface does not exist (see https://psalm.dev/019)

return <<<SOLUTION
Adapter property must be set in the Queue object before you can use it.
Expand All @@ -30,6 +31,7 @@ public function getSolution(): ?string
References:
- $queueClass::\$adapter
- $queueClass::withAdapter()
- $queueProviderInterface
SOLUTION;
}
}

0 comments on commit 136b584

Please sign in to comment.