Skip to content

Add support for elastica 8, fixes #1917 #848

Add support for elastica 8, fixes #1917

Add support for elastica 8, fixes #1917 #848

Triggered via push November 9, 2024 13:16
Status Failure
Total duration 32s
Artifacts

phpstan.yml

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

Annotations

21 errors
PHPStan (latest): src/Monolog/Handler/ElasticsearchHandler.php#L1
Ignored error pattern #^Cannot access offset 'items' on array\|Elastic\\Elasticsearch\\Response\\Elasticsearch\.$# in path /home/runner/work/monolog/monolog/src/Monolog/Handler/ElasticsearchHandler.php was not matched in reported errors.
PHPStan (latest): src/Monolog/Handler/ElasticsearchHandler.php#L62
Property Monolog\Handler\ElasticsearchHandler::$client has unknown class Elasticsearch\Client as its type.
PHPStan (latest): src/Monolog/Handler/ElasticsearchHandler.php#L81
Parameter $client of method Monolog\Handler\ElasticsearchHandler::__construct() has invalid type Elasticsearch\Client.
PHPStan (latest): src/Monolog/Handler/ElasticsearchHandler.php#L81
Parameter $client of method Monolog\Handler\ElasticsearchHandler::__construct() has invalid type Elasticsearch\Client.
PHPStan (latest): src/Monolog/Handler/ElasticsearchHandler.php#L95
Access to constant VERSION on an unknown class Elasticsearch\Client.
PHPStan (latest): src/Monolog/Handler/ElasticsearchHandler.php#L181
Call to method bulk() on an unknown class Elasticsearch\Client.
PHPStan (latest): src/Monolog/Handler/ElasticsearchHandler.php#L212
Instantiated class Elasticsearch\Common\Exceptions\RuntimeException not found.
PHPStan (latest): src/Monolog/Handler/ElasticsearchHandler.php#L212
Method Monolog\Handler\ElasticsearchHandler::createExceptionFromResponses() should return Throwable but returns Elasticsearch\Common\Exceptions\RuntimeException.
PHPStan (latest): src/Monolog/Handler/ElasticsearchHandler.php#L228
Instantiated class Elasticsearch\Common\Exceptions\RuntimeException not found.
PHPStan (latest): src/Monolog/Handler/ElasticsearchHandler.php#L228
Method Monolog\Handler\ElasticsearchHandler::createExceptionFromError() should return Throwable but returns Elasticsearch\Common\Exceptions\RuntimeException.
PHPStan (8.1)
The job was canceled because "latest" failed.
PHPStan (8.1): src/Monolog/Handler/ElasticsearchHandler.php#L1
Ignored error pattern #^Cannot access offset 'items' on array\|Elastic\\Elasticsearch\\Response\\Elasticsearch\.$# in path /home/runner/work/monolog/monolog/src/Monolog/Handler/ElasticsearchHandler.php was not matched in reported errors.
PHPStan (8.1): src/Monolog/Handler/ElasticsearchHandler.php#L62
Property Monolog\Handler\ElasticsearchHandler::$client has unknown class Elasticsearch\Client as its type.
PHPStan (8.1): src/Monolog/Handler/ElasticsearchHandler.php#L81
Parameter $client of method Monolog\Handler\ElasticsearchHandler::__construct() has invalid type Elasticsearch\Client.
PHPStan (8.1): src/Monolog/Handler/ElasticsearchHandler.php#L81
Parameter $client of method Monolog\Handler\ElasticsearchHandler::__construct() has invalid type Elasticsearch\Client.
PHPStan (8.1): src/Monolog/Handler/ElasticsearchHandler.php#L95
Access to constant VERSION on an unknown class Elasticsearch\Client.
PHPStan (8.1): src/Monolog/Handler/ElasticsearchHandler.php#L181
Call to method bulk() on an unknown class Elasticsearch\Client.
PHPStan (8.1): src/Monolog/Handler/ElasticsearchHandler.php#L212
Instantiated class Elasticsearch\Common\Exceptions\RuntimeException not found.
PHPStan (8.1): src/Monolog/Handler/ElasticsearchHandler.php#L212
Method Monolog\Handler\ElasticsearchHandler::createExceptionFromResponses() should return Throwable but returns Elasticsearch\Common\Exceptions\RuntimeException.
PHPStan (8.1): src/Monolog/Handler/ElasticsearchHandler.php#L228
Instantiated class Elasticsearch\Common\Exceptions\RuntimeException not found.
PHPStan (8.1): src/Monolog/Handler/ElasticsearchHandler.php#L228
Method Monolog\Handler\ElasticsearchHandler::createExceptionFromError() should return Throwable but returns Elasticsearch\Common\Exceptions\RuntimeException.