phpDocumentor / TypeResolver

A PSR-5 based resolver of Class names, Types and Structural Element Names

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fatal error: Uncaught Error: Cannot use 'phpDocumentor\Reflection\Types\Boolean' as class name as it is reserved

bkdotcom opened this issue · comments

getting an error from Travis.ci when testting HHVM

$ php --version
HipHop VM 3.28.0-dev (rel)
Compiler: 1532834254_170871239
Repo schema: 9af401e9fcfcd34cca790dacae8349d8db926e74
$ composer --version
Composer version 1.7.1 2018-08-07 09:39:23
install
14.53s$ composer install
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
  - Installing bdk/debug (dev-master c9698fd): Cloning c9698fd929 from cache
Generating autoload files
before_script
1.96s$ curl -sSfL -o ~/.phpenv/versions/hhvm/bin/phpunit https://phar.phpunit.de/phpunit-5.7.phar
3.98s$ phpunit
Fatal error: Uncaught Error: Cannot use 'phpDocumentor\Reflection\Types\Boolean' as class name as it is reserved in phar://phpunit-5.7.27.phar/phpdocumentor-type-resolver/Types/Boolean.php:20
Stack trace:
#0 /home/travis/.phpenv/versions/hhvm-stable/bin/phpunit(571): include()
#1 {main}

This project doesn't support hhvm any more. I think phpunit. 6 doesn't use this package so you could try to update.

Thanks...
phpunit 6.0 still required phpDocumentator)
got past the hurdle with phpunit 7.0, but encountered
array_creation_expression is not allowed in write context from within phpunit
dependency hell