We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c95b500 commit 2707021Copy full SHA for 2707021
lib/PhpParser/PrettyPrinter/Standard.php
@@ -223,7 +223,7 @@ protected function pScalar_DNumber(Scalar\DNumber $node) {
223
224
// Try to find a short full-precision representation
225
$stringValue = sprintf('%.16G', $node->value);
226
- if ($node->value !== (double) $stringValue) {
+ if ($node->value !== (float) $stringValue) {
227
$stringValue = sprintf('%.17G', $node->value);
228
}
229
0 commit comments