Skip to content

Commit 53ca005

Browse files
committed
fixed command name and manually install swoole extension
Signed-off-by: bota <[email protected]>
1 parent 5c7b9e9 commit 53ca005

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

.laminas-ci.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
"--no-scripts"
44
],
55
"extensions": [
6-
"redis",
7-
"swoole"
6+
"redis"
7+
],
8+
"before_script": [
9+
"apt-get update && apt-get install -y php-dev php-pear libcurl4-openssl-dev libssl-dev",
10+
"pecl install swoole",
11+
"echo 'extension=swoole.so' > /etc/php/cli/conf.d/20-swoole.ini"
812
],
913
"ignore_php_platform_requirements": {
1014
}

src/Swoole/Command/GetFailedMessagesCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
)]
2929
class GetFailedMessagesCommand extends Command
3030
{
31-
protected static string $defaultName = 'failed';
31+
/** @var string $defaultName */
32+
protected static $defaultName = 'failed';
3233

3334
#[Inject()]
3435
public function __construct()

src/Swoole/Command/GetProcessedMessagesCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
)]
2929
class GetProcessedMessagesCommand extends Command
3030
{
31-
protected static string $defaultName = 'processed';
31+
/** @var string $defaultName */
32+
protected static $defaultName = 'processed';
3233

3334
#[Inject()]
3435
public function __construct()

src/Swoole/Command/GetQueuedMessagesCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
)]
2626
class GetQueuedMessagesCommand extends Command
2727
{
28-
protected static string $defaultName = 'inventory';
28+
/** @var string $defaultName */
29+
protected static $defaultName = 'inventory';
2930

3031
private Redis $redis;
3132

0 commit comments

Comments
 (0)