Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: StyleCI Bot <bot@styleci.io>
- Loading branch information
1 parent
953bee1
commit 2b68018
Showing
8 changed files
with
133 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,11 +19,13 @@ class ChannelIncorrectlyConfigured extends InvalidArgumentException implements F | |
* | ||
* @param string $channel | ||
* @param mixed|object $definition | ||
* @param int $code | ||
* @param Throwable|null $previous | ||
*/ | ||
public function __construct(string $channel, $definition, int $code = 0, ?Throwable $previous = null) | ||
Check warning on line 25 in src/Exception/AdapterConfiguration/ChannelIncorrectlyConfigured.php GitHub Actions / mutation / PHP 8.0-ubuntu-latest
Check warning on line 25 in src/Exception/AdapterConfiguration/ChannelIncorrectlyConfigured.php GitHub Actions / mutation / PHP 8.0-ubuntu-latest
|
||
{ | ||
$adapterClass = AdapterInterface::class; | ||
$realType = is_object($definition) ? get_class($definition) : gettype($definition); | ||
$realType = get_debug_type($definition); | ||
$message = "Channel \"$channel\" is not properly configured: definition must return $adapterClass, $realType returned"; | ||
|
||
$this->channel = $channel; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Yiisoft\Yii\Queue\Tests\Unit\Support; | ||
|
||
use Yiisoft\Yii\Queue\Enum\JobStatus; | ||
|
||
class TestJobStatus extends JobStatus | ||
{ | ||
public static function withStatus(int $status): self | ||
{ | ||
return new self($status); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters