Fix MonitoringMetric.php wrong property types #462
Annotations
20 errors
|
PHPStan:
src/HttpClient/AsyncBuilder.php#L18
Property DigitalOceanV2\HttpClient\AsyncBuilder::$httpAsyncClient has no type specified.
|
|
PHPStan:
src/HttpClient/AsyncBuilder.php#L16
Class DigitalOceanV2\HttpClient\AsyncBuilder extends final class DigitalOceanV2\HttpClient\Builder.
|
|
PHPStan:
src/AsyncClient.php#L42
Access to undefined constant DigitalOceanV2\AsyncClient::USER_AGENT.
|
|
PHPStan:
src/AsyncClient.php#L39
Parameter #1 $baseUri of class DigitalOceanV2\HttpClient\AsyncBuilder constructor expects string|null, mixed given.
|
|
PHPStan:
src/AsyncClient.php#L39
Access to undefined constant DigitalOceanV2\AsyncClient::BASE_URL.
|
|
PHPStan:
src/AsyncClient.php#L30
Parameter #1 $baseUri of class DigitalOceanV2\HttpClient\AsyncBuilder constructor expects string|null, mixed given.
|
|
PHPStan:
src/AsyncClient.php#L27
Only booleans are allowed in an if condition, string|null given.
|
|
PHPStan:
src/AsyncClient.php#L23
Only booleans are allowed in an if condition, string|null given.
|
|
PHPStan:
src/AsyncClient.php#L21
Access to undefined constant DigitalOceanV2\AsyncClient::USER_AGENT.
|
|
PHPStan:
src/AsyncClient.php#L18
Access to undefined constant DigitalOceanV2\AsyncClient::BASE_URL.
|
|
ImplementedParamTypeMismatch:
src/HttpClient/AsyncBuilder.php#L26
src/HttpClient/AsyncBuilder.php:26:17: ImplementedParamTypeMismatch: Argument 1 of DigitalOceanV2\HttpClient\AsyncBuilder::__construct has wrong type 'null|string', expecting 'Psr\Http\Client\ClientInterface|null' as defined by DigitalOceanV2\HttpClient\Builder::__construct (see https://psalm.dev/199)
|
|
ConstructorSignatureMismatch:
src/HttpClient/AsyncBuilder.php#L26
src/HttpClient/AsyncBuilder.php:26:17: ConstructorSignatureMismatch: Argument 1 of DigitalOceanV2\HttpClient\AsyncBuilder::__construct has wrong type 'null|string', expecting 'Psr\Http\Client\ClientInterface|null' as defined by DigitalOceanV2\HttpClient\Builder::__construct (see https://psalm.dev/231)
|
|
ParamNameMismatch:
src/HttpClient/AsyncBuilder.php#L26
src/HttpClient/AsyncBuilder.php:26:17: ParamNameMismatch: Argument 1 of DigitalOceanV2\HttpClient\AsyncBuilder::__construct has wrong name $baseUri, expecting $httpClient as defined by DigitalOceanV2\HttpClient\Builder::__construct (see https://psalm.dev/230)
|
|
MethodSignatureMismatch:
src/HttpClient/AsyncBuilder.php#L25
src/HttpClient/AsyncBuilder.php:25:5: MethodSignatureMismatch: Method DigitalOceanV2\HttpClient\AsyncBuilder::__construct has fewer parameters than parent method DigitalOceanV2\HttpClient\Builder::__construct (see https://psalm.dev/042)
|
|
MethodSignatureMismatch:
src/HttpClient/AsyncBuilder.php#L25
src/HttpClient/AsyncBuilder.php:25:5: MethodSignatureMismatch: Method DigitalOceanV2\HttpClient\Builder::__construct is declared final and cannot be overridden (see https://psalm.dev/042)
|
|
InvalidExtendClass:
src/HttpClient/AsyncBuilder.php#L16
src/HttpClient/AsyncBuilder.php:16:34: InvalidExtendClass: Class DigitalOceanV2\HttpClient\AsyncBuilder may not inherit from final class DigitalOceanV2\HttpClient\Builder (see https://psalm.dev/232)
|
|
UndefinedConstant:
src/AsyncClient.php#L42
src/AsyncClient.php:42:33: UndefinedConstant: Constant DigitalOceanV2\AsyncClient::USER_AGENT is not defined (see https://psalm.dev/020)
|
|
UndefinedConstant:
src/AsyncClient.php#L39
src/AsyncClient.php:39:13: UndefinedConstant: Constant DigitalOceanV2\AsyncClient::BASE_URL is not defined (see https://psalm.dev/020)
|
|
UndefinedConstant:
src/AsyncClient.php#L21
src/AsyncClient.php:21:29: UndefinedConstant: Constant DigitalOceanV2\AsyncClient::USER_AGENT is not defined (see https://psalm.dev/020)
|
|
UndefinedConstant:
src/AsyncClient.php#L18
src/AsyncClient.php:18:20: UndefinedConstant: Constant DigitalOceanV2\AsyncClient::BASE_URL is not defined (see https://psalm.dev/020)
|