From 1663643b15be267bf439687c31203e8d77465bf5 Mon Sep 17 00:00:00 2001 From: Yonel Ceruto Date: Tue, 26 Nov 2024 20:46:33 -0500 Subject: [PATCH] Adding PHP 8.3 and 8.4 to the CI --- .github/workflows/ci.yml | 11 ++++++++--- tests/DependencyInjection/MoneyExtensionTest.php | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2443671..cae9d74 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: extensions: bcmath, gmp, intl, dom, mbstring - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Download dependencies run: composer update --prefer-stable --prefer-dist --no-interaction --no-progress --no-suggest --prefer-lowest --classmap-authoritative @@ -38,6 +38,8 @@ jobs: php: - 8.1 - 8.2 + - 8.3 + - 8.4 steps: - name: Set up PHP @@ -48,7 +50,10 @@ jobs: ini-values: zend.assertions=1 - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 + + - name: Remove psalm + run: composer remove vimeo/psalm --dev - name: Validate composer.json and composer.lock run: composer validate --strict @@ -74,7 +79,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up PHP uses: shivammathur/setup-php@v2 diff --git a/tests/DependencyInjection/MoneyExtensionTest.php b/tests/DependencyInjection/MoneyExtensionTest.php index ccce4cc..67004ee 100644 --- a/tests/DependencyInjection/MoneyExtensionTest.php +++ b/tests/DependencyInjection/MoneyExtensionTest.php @@ -159,7 +159,7 @@ public function testMoneyDoctrineMapping(): void * @param array $publicServices * @param array> $configs */ - private function createContainer(array $publicServices = [], array $configs = [[]], \Closure $callback = null): ContainerInterface + private function createContainer(array $publicServices = [], array $configs = [[]], ?\Closure $callback = null): ContainerInterface { $parameters = [ 'kernel.debug' => true,