diff --git a/ChangeLog.md b/ChangeLog.md index c5e0c79..b976dfb 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -2,6 +2,12 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](https://keepachangelog.com/) principles. +## [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 @@ -40,6 +46,7 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](htt * Remove HHVM-specific code that is no longer needed +[3.1.7]: https://github.com/sebastianbergmann/exporter/compare/3.1.6...3.1 [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 diff --git a/src/Exporter.php b/src/Exporter.php index ce59b38..d46adf9 100644 --- a/src/Exporter.php +++ b/src/Exporter.php @@ -217,7 +217,7 @@ class Exporter try { $valueStr = (string) $value; - if ((string) (int) $value === $valueStr) { + if ((string) @(int) $value === $valueStr) { return $valueStr . '.0'; }