diff --git a/.github/actions/setup-php/action.yml b/.github/actions/setup-php/action.yml index 3b98cee..253fd0b 100644 --- a/.github/actions/setup-php/action.yml +++ b/.github/actions/setup-php/action.yml @@ -7,7 +7,7 @@ inputs: required: false type: string description: the php version to use, defaults to 8.3 - default: '8.3' + default: '8.4' runs: using: composite @@ -26,7 +26,7 @@ runs: run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: cache php dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ steps.composercache.outputs.dir }} key: ${{ runner.os }}-composer-${{ inputs.php-version }}-${{ hashFiles('**/composer.json') }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 33665a9..5ad91a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,17 +8,17 @@ on: jobs: test: name: test - runs-on: "ubuntu-20.04" + runs-on: "ubuntu-24.04" strategy: matrix: include: - - php-version: 8.2 - php-version: 8.3 + - php-version: 8.4 steps: - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: start localstack run: ./bin/dev/up - name: PHP diff --git a/bin/dev/down b/bin/dev/down index b155a66..feebb12 100755 --- a/bin/dev/down +++ b/bin/dev/down @@ -2,4 +2,4 @@ pushd "$(git rev-parse --show-toplevel)" -exec docker-compose down +exec docker compose down diff --git a/bin/dev/up b/bin/dev/up index 4a7b0d5..c8e09d4 100755 --- a/bin/dev/up +++ b/bin/dev/up @@ -4,4 +4,4 @@ pushd "$(git rev-parse --show-toplevel)" rm -f var/localstack/ready -exec docker-compose up -d +exec docker compose up -d diff --git a/composer.json b/composer.json index 6331c82..4204a6e 100644 --- a/composer.json +++ b/composer.json @@ -7,14 +7,14 @@ { "name": "Christopher Davis", "email": "chris@pmg.com" } ], "require": { - "php": "^8.2", - "pmg/queue": "^6.0", + "php": "^8.3", + "pmg/queue": "^6.2", "psr/log": "^1.0 || ^2.0 || ^3.0", "aws/aws-sdk-php": "^3.0" }, "require-dev": { - "phpunit/phpunit": "^9.5", - "symfony/phpunit-bridge": "^6.4" + "phpunit/phpunit": "^9.6.23", + "symfony/phpunit-bridge": "^6.4.16" }, "autoload": { "psr-4": { diff --git a/src/MetricsDriver.php b/src/MetricsDriver.php index a853238..c406362 100644 --- a/src/MetricsDriver.php +++ b/src/MetricsDriver.php @@ -48,7 +48,7 @@ public function __construct( Driver $wrapped, CloudWatchClient $cloudwatch, $metricsNamespace=null, - LoggerInterface $logger=null + ?LoggerInterface $logger=null ) { $this->wrapped = $wrapped; $this->cloudwatch = $cloudwatch;