Skip to content

Feat: support RR[>=2023.3] streamed responses #1256

Feat: support RR[>=2023.3] streamed responses

Feat: support RR[>=2023.3] streamed responses #1256

Triggered via pull request December 8, 2023 17:57
Status Failure
Total duration 1m 24s
Artifacts

ci.yaml

on: pull_request
Coding style
27s
Coding style
Matrix: static-analysis
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

43 errors and 2 warnings
Static analysis (PHP 8.2) (stable dependencies): src/Helpers/StreamedJsonResponseHelper.php#L72
Parameter #2 $string of function explode expects string, string|false given.
Static analysis (PHP 8.2) (stable dependencies): src/Http/Response/StreamedResponse.php#L29
Creating callable from Generator but it's not a callable.
Static analysis (PHP 8.2) (stable dependencies): src/Http/Response/StreamedResponse.php#L40
Method Baldinof\RoadRunnerBundle\Http\Response\StreamedResponse::getCallback() should return Generator|null but returns Closure.
Static analysis (PHP 8.2) (stable dependencies): src/RoadRunnerBridge/HttpFoundationWorker.php#L61
Parameter #2 $body of method Spiral\RoadRunner\Http\HttpWorkerInterface::respond() expects Generator<mixed, bool|float|int|string|Stringable, mixed, bool|float|int|string|Stringable|null>|string, Generator|null given.
Static analysis (PHP 8.2) (stable dependencies): src/RoadRunnerBridge/HttpFoundationWorker.php#L219
Parameter #1 $stream of function fseek expects resource, resource|false given.
Static analysis (PHP 8.2) (stable dependencies): src/RoadRunnerBridge/HttpFoundationWorker.php#L223
Parameter #1 $stream of function feof expects resource, resource|false given.
Static analysis (PHP 8.2) (stable dependencies): src/RoadRunnerBridge/HttpFoundationWorker.php#L226
Parameter #1 $stream of function fread expects resource, resource|false given.
Static analysis (PHP 8.2) (stable dependencies): src/RoadRunnerBridge/HttpFoundationWorker.php#L244
Parameter #1 $stream of function fclose expects resource, resource|false given.
Static analysis (PHP 8.2) (stable dependencies)
Process completed with exit code 1.
Static analysis (PHP 8.1) (stable dependencies): src/Helpers/StreamedJsonResponseHelper.php#L72
Parameter #2 $string of function explode expects string, string|false given.
Static analysis (PHP 8.1) (stable dependencies): src/Http/Response/StreamedResponse.php#L29
Creating callable from Generator but it's not a callable.
Static analysis (PHP 8.1) (stable dependencies): src/Http/Response/StreamedResponse.php#L40
Method Baldinof\RoadRunnerBundle\Http\Response\StreamedResponse::getCallback() should return Generator|null but returns Closure.
Static analysis (PHP 8.1) (stable dependencies): src/RoadRunnerBridge/HttpFoundationWorker.php#L61
Parameter #2 $body of method Spiral\RoadRunner\Http\HttpWorkerInterface::respond() expects Generator<mixed, bool|float|int|string|Stringable, mixed, bool|float|int|string|Stringable|null>|string, Generator|null given.
Static analysis (PHP 8.1) (stable dependencies): src/RoadRunnerBridge/HttpFoundationWorker.php#L219
Parameter #1 $stream of function fseek expects resource, resource|false given.
Static analysis (PHP 8.1) (stable dependencies): src/RoadRunnerBridge/HttpFoundationWorker.php#L223
Parameter #1 $stream of function feof expects resource, resource|false given.
Static analysis (PHP 8.1) (stable dependencies): src/RoadRunnerBridge/HttpFoundationWorker.php#L226
Parameter #1 $stream of function fread expects resource, resource|false given.
Static analysis (PHP 8.1) (stable dependencies): src/RoadRunnerBridge/HttpFoundationWorker.php#L244
Parameter #1 $stream of function fclose expects resource, resource|false given.
Static analysis (PHP 8.1) (stable dependencies)
Process completed with exit code 1.
Coding style
Process completed with exit code 8.
Static analysis (PHP 8.2) (lowest dependencies): src/Helpers/StreamedJsonResponseHelper.php#L13
Parameter $response of method Baldinof\RoadRunnerBundle\Helpers\StreamedJsonResponseHelper::toGenerator() has invalid type Symfony\Component\HttpFoundation\StreamedJsonResponse.
Static analysis (PHP 8.2) (lowest dependencies): src/Helpers/StreamedJsonResponseHelper.php#L72
Parameter #2 $string of function explode expects string, string|false given.
Static analysis (PHP 8.2) (lowest dependencies): src/Helpers/StreamedJsonResponseHelper.php#L126
Parameter $binaryFileResponse of anonymous function has invalid type Symfony\Component\HttpFoundation\StreamedJsonResponse.
Static analysis (PHP 8.2) (lowest dependencies): src/Helpers/StreamedJsonResponseHelper.php#L127
Access to property $data on an unknown class Symfony\Component\HttpFoundation\StreamedJsonResponse.
Static analysis (PHP 8.2) (lowest dependencies): src/Helpers/StreamedJsonResponseHelper.php#L128
Access to property $encodingOptions on an unknown class Symfony\Component\HttpFoundation\StreamedJsonResponse.
Static analysis (PHP 8.2) (lowest dependencies): src/Helpers/StreamedJsonResponseHelper.php#L129
Class Symfony\Component\HttpFoundation\StreamedJsonResponse not found.
Static analysis (PHP 8.1) (lowest dependencies): src/Helpers/StreamedJsonResponseHelper.php#L13
Parameter $response of method Baldinof\RoadRunnerBundle\Helpers\StreamedJsonResponseHelper::toGenerator() has invalid type Symfony\Component\HttpFoundation\StreamedJsonResponse.
Static analysis (PHP 8.1) (lowest dependencies): src/Helpers/StreamedJsonResponseHelper.php#L72
Parameter #2 $string of function explode expects string, string|false given.
Static analysis (PHP 8.2) (lowest dependencies): src/Http/Response/StreamedResponse.php#L29
Creating callable from Generator but it's not a callable.
Static analysis (PHP 8.1) (lowest dependencies): src/Helpers/StreamedJsonResponseHelper.php#L126
Parameter $binaryFileResponse of anonymous function has invalid type Symfony\Component\HttpFoundation\StreamedJsonResponse.
Static analysis (PHP 8.2) (lowest dependencies): src/Http/Response/StreamedResponse.php#L40
Method Baldinof\RoadRunnerBundle\Http\Response\StreamedResponse::getCallback() should return Generator|null but returns Closure.
Static analysis (PHP 8.1) (lowest dependencies): src/Helpers/StreamedJsonResponseHelper.php#L127
Access to property $data on an unknown class Symfony\Component\HttpFoundation\StreamedJsonResponse.
Static analysis (PHP 8.2) (lowest dependencies): src/Http/Response/StreamedResponse.php#L53
Method Symfony\Component\HttpFoundation\Response::sendHeaders() invoked with 1 parameter, 0 required.
Static analysis (PHP 8.1) (lowest dependencies): src/Helpers/StreamedJsonResponseHelper.php#L128
Access to property $encodingOptions on an unknown class Symfony\Component\HttpFoundation\StreamedJsonResponse.
Static analysis (PHP 8.2) (lowest dependencies): src/Integration/Doctrine/DoctrineORMMiddleware.php#L78
Class Symfony\Component\VarExporter\LazyObjectInterface not found.
Static analysis (PHP 8.1) (lowest dependencies): src/Helpers/StreamedJsonResponseHelper.php#L129
Class Symfony\Component\HttpFoundation\StreamedJsonResponse not found.
Static analysis (PHP 8.1) (lowest dependencies): src/Http/Response/StreamedResponse.php#L29
Creating callable from Generator but it's not a callable.
Static analysis (PHP 8.1) (lowest dependencies): src/Http/Response/StreamedResponse.php#L40
Method Baldinof\RoadRunnerBundle\Http\Response\StreamedResponse::getCallback() should return Generator|null but returns Closure.
Static analysis (PHP 8.1) (lowest dependencies): src/Http/Response/StreamedResponse.php#L53
Method Symfony\Component\HttpFoundation\Response::sendHeaders() invoked with 1 parameter, 0 required.
Static analysis (PHP 8.1) (lowest dependencies): src/Integration/Doctrine/DoctrineORMMiddleware.php#L78
Class Symfony\Component\VarExporter\LazyObjectInterface not found.
PHPUnit (PHP 8.2) (stable dependencies)
Process completed with exit code 2.
PHPUnit (PHP 8.1) (stable dependencies)
Process completed with exit code 2.
PHPUnit (PHP 8.1) (lowest dependencies)
Process completed with exit code 2.
PHPUnit (PHP 8.2) (lowest dependencies)
Process completed with exit code 2.
Coding style
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Coding style
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/