<?php function h(): void { $f = -0.0; var_dump($f === 0.0); // bool(true) echo $f, "\n"; // -0 if ($f === 0.0) { $f = 0.0; // reported as assign.redundant } echo $f, "\n"; // 0 } h();
You have javascript disabled. You will not be able to edit any code.