Skip to content

Commit 3ececb8

Browse files
committed
Fixed pslam & tests
1 parent 6ac9a9c commit 3ececb8

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

src/GlobalState.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ final class GlobalState
1515
/**
1616
* Sets ip-address, request-time and other values.
1717
*
18-
* @return non-empty-array<array-key|string, mixed|string>
18+
* @return non-empty-array<array-key|string, mixed|string>
1919
*/
2020
public static function populateServer(Request $request): array
2121
{
22+
/** @var non-empty-array<array-key|string, mixed|string>|null $originalServer */
2223
static $originalServer = null;
2324

2425
if ($originalServer == null) {

src/PSR7Worker.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ public function getHttpWorker(): HttpWorker
5858
}
5959

6060
/**
61+
* @psalm-suppress DeprecatedMethod
62+
*
6163
* @throws \JsonException
6264
*/
6365
public function waitRequest(): ?ServerRequestInterface

tests/Unit/PSR7WorkerTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Nyholm\Psr7\Factory\Psr17Factory;
66
use PHPUnit\Framework\Attributes\CoversClass;
7+
use PHPUnit\Framework\Attributes\RunClassInSeparateProcess;
78
use PHPUnit\Framework\TestCase;
89
use Spiral\Goridge\Frame;
910
use Spiral\RoadRunner\Http\GlobalState;
@@ -14,6 +15,7 @@
1415

1516
#[CoversClass(PSR7Worker::class)]
1617
#[CoversClass(GlobalState::class)]
18+
#[RunClassInSeparateProcess]
1719
final class PSR7WorkerTest extends TestCase
1820
{
1921
/***

0 commit comments

Comments
 (0)