diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b5c6de0..3e3e8b3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,6 +51,10 @@ jobs: - "7.4" - "8.0" - "8.1" + - "8.2" + - "8.3" + - "8.4" + - "8.5" steps: - name: "Checkout" @@ -62,13 +66,6 @@ jobs: php-version: "${{ matrix.php-version }}" coverage: "pcov" - - name: "Cache dependencies installed with composer" - uses: "actions/cache@v2" - with: - path: "~/.composer/cache" - key: "php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.json') }}" - restore-keys: "php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-" - - name: "Install dependencies with composer" run: "./tools/composer update --no-ansi --no-interaction --no-progress" diff --git a/ChangeLog.md b/ChangeLog.md index 32ab705..c86771b 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -44,6 +44,22 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](htt * This component is no longer supported on PHP 7.0, PHP 7.1, and PHP 7.2 +## [3.1.7] - 2025-09-22 + +### Changed + +* Suppress `not representable as an int, cast occurred` warning triggered on PHP 8.5 + +## [3.1.6] - 2024-03-02 + +### Changed + +* Do not use implicitly nullable parameters + +### Removed + +* This component is no longer supported on PHP 7.0 and PHP 7.1 + ## [3.1.5] - 2022-09-14 ### Fixed @@ -79,6 +95,8 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](htt [4.0.2]: https://github.com/sebastianbergmann/exporter/compare/4.0.1...4.0.2 [4.0.1]: https://github.com/sebastianbergmann/exporter/compare/4.0.0...4.0.1 [4.0.0]: https://github.com/sebastianbergmann/exporter/compare/3.1.2...4.0.0 +[3.1.7]: https://github.com/sebastianbergmann/exporter/compare/3.1.6...3.1.7 +[3.1.6]: https://github.com/sebastianbergmann/exporter/compare/3.1.5...3.1.6 [3.1.5]: https://github.com/sebastianbergmann/exporter/compare/3.1.4...3.1.5 [3.1.4]: https://github.com/sebastianbergmann/exporter/compare/3.1.3...3.1.4 [3.1.3]: https://github.com/sebastianbergmann/exporter/compare/3.1.2...3.1.3 diff --git a/src/Exporter.php b/src/Exporter.php index 5d85b13..c03685f 100644 --- a/src/Exporter.php +++ b/src/Exporter.php @@ -242,7 +242,7 @@ class Exporter try { $valueStr = (string) $value; - if ((string) (int) $value === $valueStr) { + if ((string) @(int) $value === $valueStr) { return $valueStr . '.0'; }