Skip to content

Introduce a draft for a generic reusable HTTP client builder #94

Introduce a draft for a generic reusable HTTP client builder

Introduce a draft for a generic reusable HTTP client builder #94

Triggered via push December 1, 2025 17:29
Status Failure
Total duration 33s
Artifacts

grumphp.yaml

on: push
Matrix: run
Fit to window
Zoom out
Zoom in

Annotations

30 errors and 6 warnings
PHP 8.3 @ ubuntu-latest with
Process completed with exit code 1.
PossiblyInvalidArgument: src/Client/ClientBuilder.php#L142
src/Client/ClientBuilder.php:142:62: PossiblyInvalidArgument: Argument 2 of Phpro\HttpTools\Client\Configurator\PluginsConfigurator::configure expects iterable<mixed, Http\Client\Common\Plugin>, but possibly different type list<mixed> provided (see https://psalm.dev/092)
MixedArgument: src/Client/ClientBuilder.php#L85
src/Client/ClientBuilder.php:85:13: MixedArgument: Argument 1 of Phpro\HttpTools\Client\ClientBuilder::addPlugin cannot be mixed, expecting Http\Client\Common\Plugin (see https://psalm.dev/030)
InvalidArgument: src/Client/ClientBuilder.php#L71
src/Client/ClientBuilder.php:71:41: InvalidArgument: Argument 2 of SplPriorityQueue::insert expects Http\Client\Common\Plugin, but int provided (see https://psalm.dev/004)
MixedAssignment: src/Client/ClientBuilder.php#L44
src/Client/ClientBuilder.php:44:34: MixedAssignment: Unable to determine the type that $middleware is being assigned to (see https://psalm.dev/032)
MixedPropertyTypeCoercion: src/Client/ClientBuilder.php#L42
src/Client/ClientBuilder.php:42:26: MixedPropertyTypeCoercion: $this->plugins expects 'SplPriorityQueue<Http\Client\Common\Plugin>', parent type `SplPriorityQueue<mixed, mixed>` provided (see https://psalm.dev/196)
MissingTemplateParam: src/Client/ClientBuilder.php#L35
src/Client/ClientBuilder.php:35:13: MissingTemplateParam: SplPriorityQueue has missing template params, expecting 2 (see https://psalm.dev/182)
PHP 8.4 @ ubuntu-latest with
Process completed with exit code 1.
PossiblyInvalidArgument: src/Client/ClientBuilder.php#L142
src/Client/ClientBuilder.php:142:62: PossiblyInvalidArgument: Argument 2 of Phpro\HttpTools\Client\Configurator\PluginsConfigurator::configure expects iterable<mixed, Http\Client\Common\Plugin>, but possibly different type list<mixed> provided (see https://psalm.dev/092)
MixedArgument: src/Client/ClientBuilder.php#L85
src/Client/ClientBuilder.php:85:13: MixedArgument: Argument 1 of Phpro\HttpTools\Client\ClientBuilder::addPlugin cannot be mixed, expecting Http\Client\Common\Plugin (see https://psalm.dev/030)
InvalidArgument: src/Client/ClientBuilder.php#L71
src/Client/ClientBuilder.php:71:41: InvalidArgument: Argument 2 of SplPriorityQueue::insert expects Http\Client\Common\Plugin, but int provided (see https://psalm.dev/004)
MixedAssignment: src/Client/ClientBuilder.php#L44
src/Client/ClientBuilder.php:44:34: MixedAssignment: Unable to determine the type that $middleware is being assigned to (see https://psalm.dev/032)
MixedPropertyTypeCoercion: src/Client/ClientBuilder.php#L42
src/Client/ClientBuilder.php:42:26: MixedPropertyTypeCoercion: $this->plugins expects 'SplPriorityQueue<Http\Client\Common\Plugin>', parent type `SplPriorityQueue<mixed, mixed>` provided (see https://psalm.dev/196)
MissingTemplateParam: src/Client/ClientBuilder.php#L35
src/Client/ClientBuilder.php:35:13: MissingTemplateParam: SplPriorityQueue has missing template params, expecting 2 (see https://psalm.dev/182)
PHP 8.4 @ ubuntu-latest with --prefer-lowest
Process completed with exit code 1.
PossiblyInvalidArgument: src/Client/ClientBuilder.php#L142
src/Client/ClientBuilder.php:142:62: PossiblyInvalidArgument: Argument 2 of Phpro\HttpTools\Client\Configurator\PluginsConfigurator::configure expects iterable<mixed, Http\Client\Common\Plugin>, but possibly different type list<mixed> provided (see https://psalm.dev/092)
MixedArgument: src/Client/ClientBuilder.php#L85
src/Client/ClientBuilder.php:85:13: MixedArgument: Argument 1 of Phpro\HttpTools\Client\ClientBuilder::addPlugin cannot be mixed, expecting Http\Client\Common\Plugin (see https://psalm.dev/030)
InvalidArgument: src/Client/ClientBuilder.php#L71
src/Client/ClientBuilder.php:71:41: InvalidArgument: Argument 2 of SplPriorityQueue::insert expects Http\Client\Common\Plugin, but int provided (see https://psalm.dev/004)
MixedAssignment: src/Client/ClientBuilder.php#L44
src/Client/ClientBuilder.php:44:34: MixedAssignment: Unable to determine the type that $middleware is being assigned to (see https://psalm.dev/032)
MixedPropertyTypeCoercion: src/Client/ClientBuilder.php#L42
src/Client/ClientBuilder.php:42:26: MixedPropertyTypeCoercion: $this->plugins expects 'SplPriorityQueue<Http\Client\Common\Plugin>', parent type `SplPriorityQueue<mixed, mixed>` provided (see https://psalm.dev/196)
MissingTemplateParam: src/Client/ClientBuilder.php#L35
src/Client/ClientBuilder.php:35:13: MissingTemplateParam: SplPriorityQueue has missing template params, expecting 2 (see https://psalm.dev/182)
PHP 8.5 @ ubuntu-latest with
Process completed with exit code 1.
PHP 8.3 @ ubuntu-latest with --prefer-lowest
Process completed with exit code 1.
PossiblyInvalidArgument: src/Client/ClientBuilder.php#L142
src/Client/ClientBuilder.php:142:62: PossiblyInvalidArgument: Argument 2 of Phpro\HttpTools\Client\Configurator\PluginsConfigurator::configure expects iterable<mixed, Http\Client\Common\Plugin>, but possibly different type list<mixed> provided (see https://psalm.dev/092)
MixedArgument: src/Client/ClientBuilder.php#L85
src/Client/ClientBuilder.php:85:13: MixedArgument: Argument 1 of Phpro\HttpTools\Client\ClientBuilder::addPlugin cannot be mixed, expecting Http\Client\Common\Plugin (see https://psalm.dev/030)
InvalidArgument: src/Client/ClientBuilder.php#L71
src/Client/ClientBuilder.php:71:41: InvalidArgument: Argument 2 of SplPriorityQueue::insert expects Http\Client\Common\Plugin, but int provided (see https://psalm.dev/004)
MixedAssignment: src/Client/ClientBuilder.php#L44
src/Client/ClientBuilder.php:44:34: MixedAssignment: Unable to determine the type that $middleware is being assigned to (see https://psalm.dev/032)
MixedPropertyTypeCoercion: src/Client/ClientBuilder.php#L42
src/Client/ClientBuilder.php:42:26: MixedPropertyTypeCoercion: $this->plugins expects 'SplPriorityQueue<Http\Client\Common\Plugin>', parent type `SplPriorityQueue<mixed, mixed>` provided (see https://psalm.dev/196)
MissingTemplateParam: src/Client/ClientBuilder.php#L35
src/Client/ClientBuilder.php:35:13: MissingTemplateParam: SplPriorityQueue has missing template params, expecting 2 (see https://psalm.dev/182)
PHP 8.5 @ ubuntu-latest with --prefer-lowest
Process completed with exit code 1.
PHP 8.3 @ ubuntu-latest with
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/
PHP 8.4 @ ubuntu-latest with
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/
PHP 8.4 @ ubuntu-latest with --prefer-lowest
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/
PHP 8.5 @ ubuntu-latest with
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/
PHP 8.3 @ ubuntu-latest with --prefer-lowest
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/
PHP 8.5 @ ubuntu-latest with --prefer-lowest
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/