Introduce a draft for a generic reusable HTTP client builder #246
Annotations
34 errors and 6 warnings
|
PHP 8.3 @ ubuntu-latest with --prefer-lowest
Process completed with exit code 1.
|
|
PossiblyInvalidArgument:
src/Client/ClientBuilder.php#L139
src/Client/ClientBuilder.php:139: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)
|
|
MixedArgumentTypeCoercion:
src/Client/ClientBuilder.php#L79
src/Client/ClientBuilder.php:79:150: MixedArgumentTypeCoercion: Argument 3 of Http\Client\Common\Plugin::handleRequest expects callable(Psr\Http\Message\RequestInterface):Http\Promise\Promise, but parent type callable provided (see https://psalm.dev/194)
|
|
MixedArgumentTypeCoercion:
src/Client/ClientBuilder.php#L79
src/Client/ClientBuilder.php:79:143: MixedArgumentTypeCoercion: Argument 2 of Http\Client\Common\Plugin::handleRequest expects callable(Psr\Http\Message\RequestInterface):Http\Promise\Promise, but parent type callable provided (see https://psalm.dev/194)
|
|
InvalidArgument:
src/Client/ClientBuilder.php#L65
src/Client/ClientBuilder.php:65: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#L48
src/Client/ClientBuilder.php:48:34: MixedAssignment: Unable to determine the type that $middleware is being assigned to (see https://psalm.dev/032)
|
|
MixedPropertyTypeCoercion:
src/Client/ClientBuilder.php#L46
src/Client/ClientBuilder.php:46: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#L39
src/Client/ClientBuilder.php:39:13: MissingTemplateParam: SplPriorityQueue has missing template params, expecting 2 (see https://psalm.dev/182)
|
|
PHP 8.3 @ ubuntu-latest with
Process completed with exit code 1.
|
|
PossiblyInvalidArgument:
src/Client/ClientBuilder.php#L139
src/Client/ClientBuilder.php:139: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)
|
|
MixedArgumentTypeCoercion:
src/Client/ClientBuilder.php#L79
src/Client/ClientBuilder.php:79:150: MixedArgumentTypeCoercion: Argument 3 of Http\Client\Common\Plugin::handleRequest expects callable(Psr\Http\Message\RequestInterface):Http\Promise\Promise, but parent type callable provided (see https://psalm.dev/194)
|
|
MixedArgumentTypeCoercion:
src/Client/ClientBuilder.php#L79
src/Client/ClientBuilder.php:79:143: MixedArgumentTypeCoercion: Argument 2 of Http\Client\Common\Plugin::handleRequest expects callable(Psr\Http\Message\RequestInterface):Http\Promise\Promise, but parent type callable provided (see https://psalm.dev/194)
|
|
InvalidArgument:
src/Client/ClientBuilder.php#L65
src/Client/ClientBuilder.php:65: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#L48
src/Client/ClientBuilder.php:48:34: MixedAssignment: Unable to determine the type that $middleware is being assigned to (see https://psalm.dev/032)
|
|
MixedPropertyTypeCoercion:
src/Client/ClientBuilder.php#L46
src/Client/ClientBuilder.php:46: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#L39
src/Client/ClientBuilder.php:39: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#L139
src/Client/ClientBuilder.php:139: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)
|
|
MixedArgumentTypeCoercion:
src/Client/ClientBuilder.php#L79
src/Client/ClientBuilder.php:79:150: MixedArgumentTypeCoercion: Argument 3 of Http\Client\Common\Plugin::handleRequest expects callable(Psr\Http\Message\RequestInterface):Http\Promise\Promise, but parent type callable provided (see https://psalm.dev/194)
|
|
MixedArgumentTypeCoercion:
src/Client/ClientBuilder.php#L79
src/Client/ClientBuilder.php:79:143: MixedArgumentTypeCoercion: Argument 2 of Http\Client\Common\Plugin::handleRequest expects callable(Psr\Http\Message\RequestInterface):Http\Promise\Promise, but parent type callable provided (see https://psalm.dev/194)
|
|
InvalidArgument:
src/Client/ClientBuilder.php#L65
src/Client/ClientBuilder.php:65: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#L48
src/Client/ClientBuilder.php:48:34: MixedAssignment: Unable to determine the type that $middleware is being assigned to (see https://psalm.dev/032)
|
|
MixedPropertyTypeCoercion:
src/Client/ClientBuilder.php#L46
src/Client/ClientBuilder.php:46: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#L39
src/Client/ClientBuilder.php:39: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.5 @ ubuntu-latest with --prefer-lowest
Process completed with exit code 1.
|
|
PHP 8.4 @ ubuntu-latest with --prefer-lowest
Process completed with exit code 1.
|
|
PossiblyInvalidArgument:
src/Client/ClientBuilder.php#L139
src/Client/ClientBuilder.php:139: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)
|
|
MixedArgumentTypeCoercion:
src/Client/ClientBuilder.php#L79
src/Client/ClientBuilder.php:79:150: MixedArgumentTypeCoercion: Argument 3 of Http\Client\Common\Plugin::handleRequest expects callable(Psr\Http\Message\RequestInterface):Http\Promise\Promise, but parent type callable provided (see https://psalm.dev/194)
|
|
MixedArgumentTypeCoercion:
src/Client/ClientBuilder.php#L79
src/Client/ClientBuilder.php:79:143: MixedArgumentTypeCoercion: Argument 2 of Http\Client\Common\Plugin::handleRequest expects callable(Psr\Http\Message\RequestInterface):Http\Promise\Promise, but parent type callable provided (see https://psalm.dev/194)
|
|
InvalidArgument:
src/Client/ClientBuilder.php#L65
src/Client/ClientBuilder.php:65: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#L48
src/Client/ClientBuilder.php:48:34: MixedAssignment: Unable to determine the type that $middleware is being assigned to (see https://psalm.dev/032)
|
|
MixedPropertyTypeCoercion:
src/Client/ClientBuilder.php#L46
src/Client/ClientBuilder.php:46: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#L39
src/Client/ClientBuilder.php:39:13: MissingTemplateParam: SplPriorityQueue has missing template params, expecting 2 (see https://psalm.dev/182)
|
|
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.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.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.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/
|
|
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/
|