Skip to content

Commit 2ad76a7

Browse files
committed
Fixed PHP 8.2 tests
1 parent 69c2c36 commit 2ad76a7

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

.ci/packer_cache.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22

33
source /usr/local/bin/bash_standard_lib.sh
44

5-
DOCKER_IMAGES="php:8.0-cli
5+
DOCKER_IMAGES="php:8.2-cli
6+
php:8.1-cli
7+
php:8.0-cli
68
php:7.4-cli
7-
php:7.3-cli
8-
php:7.2-cli
9-
php:7.1-cli
109
"
1110

1211
for di in ${DOCKER_IMAGES}

.ci/run-repository.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ script_path=$(dirname $(realpath -s $0))
99
source $script_path/functions/imports.sh
1010
set -euo pipefail
1111

12-
PHP_VERSION=${PHP_VERSION-8.0-cli}
12+
PHP_VERSION=${PHP_VERSION-8.2-cli}
1313
ELASTICSEARCH_URL=${ELASTICSEARCH_URL-"$elasticsearch_url"}
1414
elasticsearch_container=${elasticsearch_container-}
1515

util/template/test/unit-test-oss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ declare(strict_types = 1);
1717
namespace :namespace;
1818

1919
use PHPUnit\Framework\TestCase;
20+
use Elastic\Elasticsearch\ClientInterface;
2021
use Elastic\Elasticsearch\Exception\ClientResponseException;
2122
use Elastic\Elasticsearch\Tests\Utility;
2223
use stdClass;
@@ -31,6 +32,8 @@ use stdClass;
3132
*/
3233
class :test-name extends TestCase
3334
{
35+
protected ClientInterface $client;
36+
3437
protected function setUp(): void
3538
{
3639
$this->client = Utility::getClient();

util/template/test/unit-test-xpack

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ use stdClass;
3030
*/
3131
class :test-name extends TestCase
3232
{
33+
protected ClientInterface $client;
34+
3335
protected function setUp(): void
3436
{
3537
$this->client = Utility::getClient();

0 commit comments

Comments
 (0)