Skip to content

Commit 65f9720

Browse files
committed
remove unnecessary cast
1 parent af38450 commit 65f9720

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Ast/PhpVersion.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,16 @@ public function isMixedTypehintSupported(): bool
8383

8484
private function isVersionGreaterThanOrEqualTo71(): bool
8585
{
86-
return $this->phpVersion >= (float)self::VERSION_PHP71;
86+
return $this->phpVersion >= self::VERSION_PHP71;
8787
}
8888

8989
private function isVersionGreaterThanOrEqualTo74(): bool
9090
{
91-
return $this->phpVersion >= (float)self::VERSION_PHP74;
91+
return $this->phpVersion >= self::VERSION_PHP74;
9292
}
9393

9494
private function isVersionGreaterThanOrEqualTo80(): bool
9595
{
96-
return $this->phpVersion >= (float)self::VERSION_PHP80;
96+
return $this->phpVersion >= self::VERSION_PHP80;
9797
}
9898
}

0 commit comments

Comments
 (0)