diff --git a/.travis.yml b/.travis.yml index 07316c7..c882b14 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,11 +4,14 @@ php: - 5.6 - 7.0 - hhvm + - nightly matrix: allow_failures: - - php: hhvm - + - php: + - hhvm + - nightly + cache: directories: - $HOME/.composer/cache diff --git a/composer.json b/composer.json index d032a3e..abaa965 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ "psr-4": {"phpDocumentor\\Reflection\\": ["tests/unit"]} }, "require-dev": { - "phpunit/phpunit": "^5.2", + "phpunit/phpunit": "^5.2||^4.8.24", "mockery/mockery": "^0.9.4" }, "extra": { diff --git a/src/TypeResolver.php b/src/TypeResolver.php index 23dd2c1..3a68a4d 100644 --- a/src/TypeResolver.php +++ b/src/TypeResolver.php @@ -38,7 +38,7 @@ final class TypeResolver 'mixed' => 'phpDocumentor\Reflection\Types\Mixed', 'array' => 'phpDocumentor\Reflection\Types\Array_', 'resource' => 'phpDocumentor\Reflection\Types\Resource', - 'void' => 'phpDocumentor\Reflection\Types\Void', + 'void' => 'phpDocumentor\Reflection\Types\Void_', 'null' => 'phpDocumentor\Reflection\Types\Null_', 'scalar' => 'phpDocumentor\Reflection\Types\Scalar', 'callback' => 'phpDocumentor\Reflection\Types\Callable_', diff --git a/src/Types/Void.php b/src/Types/Void_.php similarity index 96% rename from src/Types/Void.php rename to src/Types/Void_.php index 6a6156b..3d1be27 100644 --- a/src/Types/Void.php +++ b/src/Types/Void_.php @@ -20,7 +20,7 @@ * Void is generally only used when working with return types as it signifies that the method intentionally does not * return any value. */ -final class Void implements Type +final class Void_ implements Type { /** * Returns a rendered output of the Type as it would be used in a DocBlock. diff --git a/tests/unit/TypeResolverTest.php b/tests/unit/TypeResolverTest.php index bdea120..f226f8e 100644 --- a/tests/unit/TypeResolverTest.php +++ b/tests/unit/TypeResolverTest.php @@ -373,7 +373,7 @@ public function provideKeywords() ['scalar', 'phpDocumentor\Reflection\Types\Scalar'], ['object', 'phpDocumentor\Reflection\Types\Object_'], ['mixed', 'phpDocumentor\Reflection\Types\Mixed'], - ['void', 'phpDocumentor\Reflection\Types\Void'], + ['void', 'phpDocumentor\Reflection\Types\Void_'], ['$this', 'phpDocumentor\Reflection\Types\This'], ['static', 'phpDocumentor\Reflection\Types\Static_'], ['self', 'phpDocumentor\Reflection\Types\Self_'],