Skip to content

Commit a6f430f

Browse files
authored
Merge pull request vyuldashev#580 from vyuldashev/fix/pint-nullable-type-declarations
Fix bottlenecks for tests
2 parents 03e1051 + a7de79e commit a6f430f

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"php": "^8.0",
1313
"ext-json": "*",
1414
"illuminate/queue": "^9.0|^10.0",
15-
"php-amqplib/php-amqplib": "^v3.5.2"
15+
"php-amqplib/php-amqplib": "^v3.6"
1616
},
1717
"require-dev": {
1818
"phpunit/phpunit": "^9.3",

pint.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"preset": "laravel",
3+
"rules": {
4+
"nullable_type_declaration_for_default_null_value": {
5+
"use_nullable_type_declaration": false
6+
}
7+
}
8+
}

src/Queue/Connection/ConnectionFactory.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ protected static function createStreamConnection($connection, AMQPConnectionConf
126126
'keepalive' => $config->isKeepalive(),
127127
'heartbeat' => $config->getHeartbeat(),
128128
],
129-
$config->getNetworkProtocol(),
130129
$config
131130
);
132131
}

tests/Feature/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function testPushAfterCommit(): void
110110
$this->assertSame(0, Queue::size());
111111
$this->assertNull(Queue::pop());
112112

113-
$transaction->commit('FakeDBConnection');
113+
$transaction->commit('FakeDBConnection', 1, 0);
114114

115115
sleep(1);
116116

0 commit comments

Comments
 (0)