Merge branch '3.1' into 4.0

* 3.1:
  Prepare release
  Test with more versions
  Do not cache Composer dependencies
  Suppress warning
  Do not use implicitly nullable parameters and prepare release
This commit is contained in:
Sebastian Bergmann 2025-09-22 07:05:13 +02:00
commit 5fc7be9ead
No known key found for this signature in database
GPG Key ID: 4AA394086372C20A
3 changed files with 23 additions and 8 deletions

View File

@ -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"

View File

@ -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

View File

@ -242,7 +242,7 @@ class Exporter
try {
$valueStr = (string) $value;
if ((string) (int) $value === $valueStr) {
if ((string) @(int) $value === $valueStr) {
return $valueStr . '.0';
}