diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index cd54d4dd4..f6add1638 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,12 +11,12 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php: [ "8.0", "8.1", "8.2", "8.3" ] + php: [ "7.4", "8.0", "8.1", "8.2", "8.3", "8.4", "8.5" ] extensions: [""] tools: [""] composerflags: [""] include: - - php: "8.0" + - php: "7.4" extensions: "protobuf,grpc" tools: "pecl" - php: "8.3" diff --git a/composer.json b/composer.json index 2806aeb22..5dc2c9c3d 100644 --- a/composer.json +++ b/composer.json @@ -6,15 +6,15 @@ "homepage": "https://github.com/googleapis/gax-php", "license": "BSD-3-Clause", "require": { - "php": "^8.0", + "php": "^7.4||^8.0", "google/auth": "^1.34.0", - "google/grpc-gcp": "^0.4", + "google/grpc-gcp": "^0.3.0", "grpc/grpc": "^1.13", "google/protobuf": "^v3.25.3||^4.26.1", "guzzlehttp/promises": "^2.0", "guzzlehttp/psr7": "^2.0", "google/common-protos": "^4.4", - "google/longrunning": "~0.4", + "google/longrunning": "^0.4", "ramsey/uuid": "^4.0" }, "require-dev": { @@ -44,5 +44,10 @@ "test": "./vendor/bin/phpunit", "cs-lint": "vendor/bin/phpcs --standard=./ruleset.xml", "cs-fix": "vendor/bin/phpcbf --standard=./ruleset.xml" + }, + "config": { + "audit": { + "block-insecure": false + } } } diff --git a/src/Serializer.php b/src/Serializer.php index 1c39ced47..5bb49d032 100644 --- a/src/Serializer.php +++ b/src/Serializer.php @@ -90,7 +90,7 @@ public function __construct( $messageTypeTransformers = [], $decodeFieldTransformers = [], $decodeMessageTypeTransformers = [], - $customEncoders = [], + $customEncoders = [] ) { $this->fieldTransformers = $fieldTransformers; $this->messageTypeTransformers = $messageTypeTransformers; diff --git a/tests/Tests/Unit/testdata/src/CustomOperationClient.php b/tests/Tests/Unit/testdata/src/CustomOperationClient.php index 75b412bc1..943b907e8 100644 --- a/tests/Tests/Unit/testdata/src/CustomOperationClient.php +++ b/tests/Tests/Unit/testdata/src/CustomOperationClient.php @@ -27,7 +27,7 @@ abstract class BaseOperationRequest public string $arg2; public string $arg3; - public static function build(string $name, string $arg2, string $arg3): static + public static function build(string $name, string $arg2, string $arg3) { $request = new static(); $request->name = $name;