@prettier/plugin-php v0.11.2
Playground link
Input:
<?php
$check = 1. === 1.0;
if ($check) {
echo 'true';
} else {
echo 'false';
}
echo PHP_EOL;
Output:
<?php
$check = 1 === 1.0;
if ($check) {
echo 'true';
} else {
echo 'false';
}
echo PHP_EOL;
A number 1. should be formatted as 1.0 not 1
Btw nice issue reporter :D
@prettier/plugin-php v0.11.2
Playground link
Input:
Output:
A number
1.should be formatted as1.0not1Btw nice issue reporter :D