diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ed4a783..a620506 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,7 +26,6 @@ jobs: - name: 📦 Composer Update run: composer update --with-all-dependencies --prefer-dist --no-progress --no-interaction ${{ matrix.prefer_lowest }} - name: 🧹 PHPCS - if: matrix.php != '8.5' run: ./bin/phpcs --report=checkstyle -q | ./bin/cs2pr - name: 🧹 PHPStan run: ./bin/phpstan --error-format=github analyse diff --git a/composer.json b/composer.json index cda1b4c..d876f1c 100644 --- a/composer.json +++ b/composer.json @@ -22,12 +22,14 @@ }, "require-dev": { "dealerdirect/phpcodesniffer-composer-installer": "^1.2", + "drupal/coder": "^9.0.0", "guzzlehttp/psr7": "^2.9", "http-interop/http-factory-guzzle": "^1.2.1", "php-http/mock-client": "^1.6.1", "phpstan/phpstan": "^2.1.50", "phpunit/phpunit": "^11.5.55", - "previousnext/coding-standard": "^1.1.1", + "previousnext/coding-standard": "^1.2", + "slevomat/coding-standard": "^8.28.0", "staabm/annotate-pull-request-from-checkstyle": "^1.8.6" }, "autoload": { diff --git a/src/Forecast/Serializer/ForecastNormalizer.php b/src/Forecast/Serializer/ForecastNormalizer.php index 4ffa966..f9f7d8c 100644 --- a/src/Forecast/Serializer/ForecastNormalizer.php +++ b/src/Forecast/Serializer/ForecastNormalizer.php @@ -38,7 +38,7 @@ public function denormalize(mixed $data, string $type, ?string $format = NULL, a throw new \RuntimeException('The serializer must implement the DenormalizerInterface.'); } - $forecast = (new Forecast) + $forecast = (new Forecast()) ->setIssueTime($this->serializer->denormalize($data['amoc']['issue-time-utc'], \DateTimeImmutable::class)); if ($this->isAssoc($data['forecast']['area'])) {