File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed
Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 44
55use Nyholm \Psr7 \Factory \Psr17Factory ;
66use PHPUnit \Framework \Attributes \CoversClass ;
7+ use PHPUnit \Framework \Attributes \RunClassInSeparateProcess ;
78use PHPUnit \Framework \TestCase ;
89use Spiral \Goridge \Frame ;
910use Spiral \RoadRunner \Http \GlobalState ;
1415
1516#[CoversClass(PSR7Worker::class)]
1617#[CoversClass(GlobalState::class)]
18+ #[RunClassInSeparateProcess]
1719final class PSR7WorkerTest extends TestCase
1820{
1921 /***
You can’t perform that action at this time.
0 commit comments