Skip to content

Commit 697c031

Browse files
committed
Fixed Common package and renamed Float to Float_ for php7
1 parent 1f5af29 commit 697c031

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
],
88
"require": {
99
"php": ">=5.5",
10-
"phpdocumentor/reflection-common": "dev-master@dev"
10+
"phpdocumentor/reflection-common": "^0.1"
1111
},
1212
"autoload": {
1313
"psr-4": {"phpDocumentor\\Reflection\\": ["src/"]}

src/TypeResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ final class TypeResolver
3232
'integer' => 'phpDocumentor\Reflection\Types\Integer',
3333
'bool' => 'phpDocumentor\Reflection\Types\Boolean',
3434
'boolean' => 'phpDocumentor\Reflection\Types\Boolean',
35-
'float' => 'phpDocumentor\Reflection\Types\Float',
36-
'double' => 'phpDocumentor\Reflection\Types\Float',
35+
'float' => 'phpDocumentor\Reflection\Types\Float_',
36+
'double' => 'phpDocumentor\Reflection\Types\Float_',
3737
'object' => 'phpDocumentor\Reflection\Types\Object_',
3838
'mixed' => 'phpDocumentor\Reflection\Types\Mixed',
3939
'array' => 'phpDocumentor\Reflection\Types\Array_',

src/Types/Float.php renamed to src/Types/Float_.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
/**
1818
* Value Object representing a Float.
1919
*/
20-
final class Float implements Type
20+
final class Float_ implements Type
2121
{
2222
/**
2323
* Returns a rendered output of the Type as it would be used in a DocBlock.

tests/unit/TypeResolverTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,8 @@ public function provideKeywords()
327327
['string', 'phpDocumentor\Reflection\Types\String_'],
328328
['int', 'phpDocumentor\Reflection\Types\Integer'],
329329
['integer', 'phpDocumentor\Reflection\Types\Integer'],
330-
['float', 'phpDocumentor\Reflection\Types\Float'],
331-
['double', 'phpDocumentor\Reflection\Types\Float'],
330+
['float', 'phpDocumentor\Reflection\Types\Float_'],
331+
['double', 'phpDocumentor\Reflection\Types\Float_'],
332332
['bool', 'phpDocumentor\Reflection\Types\Boolean'],
333333
['boolean', 'phpDocumentor\Reflection\Types\Boolean'],
334334
['resource', 'phpDocumentor\Reflection\Types\Resource'],

0 commit comments

Comments
 (0)