Skip to content

Commit

Permalink
Fix standalone true handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ciaranmcnulty committed Nov 29, 2022
1 parent 8ed6049 commit 79e9b28
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Prophecy/Doubler/Generator/Node/TypeNodeAbstract.php
Expand Up @@ -61,6 +61,7 @@ protected function getRealType(string $type): string
case 'callable':
case 'bool':
case 'false':
case 'true':
case 'float':
case 'int':
case 'string':
Expand All @@ -70,8 +71,6 @@ protected function getRealType(string $type): string
return $type;
case 'mixed':
return \PHP_VERSION_ID < 80000 ? $this->prefixWithNsSeparator($type) : $type;
case 'true':
return \PHP_VERSION_ID < 80200 ? $this->prefixWithNsSeparator($type) : $type;

default:
return $this->prefixWithNsSeparator($type);
Expand Down

0 comments on commit 79e9b28

Please sign in to comment.