Phpdocumentor: latest phar raises php notices

Created on 6 Jul 2020  路  2Comments  路  Source: phpDocumentor/phpDocumentor

Expected behavior

No notices are raised.

Actual behavior

PHP Notice:  Trying to access array offset on value of type null in phar:///Users/kuba/Projects/toolbox/phpdoc.phar/vendor/doctrine/annotations/lib/Doctrine/Common/Annotatio
ns/DocParser.php on line 967

Notice: Trying to access array offset on value of type null in phar:///Users/kuba/Projects/toolbox/phpdoc.phar/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Do
cParser.php on line 967
PHP Notice:  Trying to access array offset on value of type null in phar:///Users/kuba/Projects/toolbox/phpdoc.phar/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php on line 967
Notice: Trying to access array offset on value of type null in phar:///Users/kuba/Projects/toolbox/phpdoc.phar/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Do
cParser.php on line 967
PHP Notice:  Trying to access array offset on value of type null in phar:///Users/kuba/Projects/toolbox/phpdoc.phar/vendor/doctrine/annotations/lib/Doctrine/Common/Annotatio
ns/DocParser.php on line 967

Notice: Trying to access array offset on value of type null in phar:///Users/kuba/Projects/toolbox/phpdoc.phar/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Do
cParser.php on line 967
PHP Notice:  Trying to access array offset on value of type null in phar:///Users/kuba/Projects/toolbox/phpdoc.phar/vendor/doctrine/annotations/lib/Doctrine/Common/Annotatio
ns/DocParser.php on line 967

Notice: Trying to access array offset on value of type null in phar:///Users/kuba/Projects/toolbox/phpdoc.phar/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Do
cParser.php on line 967
PHP Notice:  Trying to access array offset on value of type null in phar:///Users/kuba/Projects/toolbox/phpdoc.phar/vendor/doctrine/annotations/lib/Doctrine/Common/Annotatio
ns/DocParser.php on line 967

Notice: Trying to access array offset on value of type null in phar:///Users/kuba/Projects/toolbox/phpdoc.phar/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Do
cParser.php on line 967
PHP Notice:  Trying to access array offset on value of type null in phar:///Users/kuba/Projects/toolbox/phpdoc.phar/vendor/doctrine/annotations/lib/Doctrine/Common/Annotatio
ns/DocParser.php on line 967

Notice: Trying to access array offset on value of type null in phar:///Users/kuba/Projects/toolbox/phpdoc.phar/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Do
cParser.php on line 967
PHP Notice:  Trying to access array offset on value of type null in phar:///Users/kuba/Projects/toolbox/phpdoc.phar/vendor/doctrine/annotations/lib/Doctrine/Common/Annotatio
ns/DocParser.php on line 967

Notice: Trying to access array offset on value of type null in phar:///Users/kuba/Projects/toolbox/phpdoc.phar/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Do
cParser.php on line 967
PHP Notice:  Trying to access array offset on value of type null in phar:///Users/kuba/Projects/toolbox/phpdoc.phar/vendor/doctrine/annotations/lib/Doctrine/Common/Annotatio
ns/DocParser.php on line 967
Notice: Trying to access array offset on value of type null in phar:///Users/kuba/Projects/toolbox/phpdoc.phar/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Do
cParser.php on line 967
PHP Deprecated:  array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in phar:///Users/kuba/Projects/toolbox/phpdo
c.phar/vendor/zendframework/zend-i18n/src/Translator/Loader/PhpArray.php on line 50

Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in phar:///Users/kuba/Projects/toolbox/phpdoc.pha
r/vendor/zendframework/zend-i18n/src/Translator/Loader/PhpArray.php on line 50
PHP Deprecated:  array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in phar:///Users/kuba/Projects/toolbox/phpdo
c.phar/vendor/zendframework/zend-i18n/src/Translator/Loader/PhpArray.php on line 50

Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in phar:///Users/kuba/Projects/toolbox/phpdoc.pha
r/vendor/zendframework/zend-i18n/src/Translator/Loader/PhpArray.php on line 50
PHP Deprecated:  array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in phar:///Users/kuba/Projects/toolbox/phpdo
c.phar/vendor/zendframework/zend-i18n/src/Translator/Loader/PhpArray.php on line 50

Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in phar:///Users/kuba/Projects/toolbox/phpdoc.pha
r/vendor/zendframework/zend-i18n/src/Translator/Loader/PhpArray.php on line 50
Collecting files .. OK
Initializing parser .. OK
Parsing files

Steps to reproduce the problem

curl -Ls http://phpdoc.org/phpDocumentor.phar > phpdoc.phar
php phpdoc.phar

Your environment

  • Version used: latest
  • Install method: phar
  • PHP version: 7.4.2
  • Operating system and version (e.g. Ubuntu 20.04, Windows 10): Mac OS
needs author update question

Most helpful comment

Please check our readme how to install phpdocumentor. We are using github releases. The version on the website is outdated, we need to update that, but I didn't have time yet to fix that.

The version you are running is not supporting php 7.4 which might cause the issues you are facing. For php 7+ you will need to download the nightly build, which is almost stable. Please try this download:
https://github.com/phpDocumentor/phpDocumentor/suites/897593213/artifacts/10729279

Let us know when you have any issues running that version.

All 2 comments

Please check our readme how to install phpdocumentor. We are using github releases. The version on the website is outdated, we need to update that, but I didn't have time yet to fix that.

The version you are running is not supporting php 7.4 which might cause the issues you are facing. For php 7+ you will need to download the nightly build, which is almost stable. Please try this download:
https://github.com/phpDocumentor/phpDocumentor/suites/897593213/artifacts/10729279

Let us know when you have any issues running that version.

Thanks, it worked. Might be worth to update your website.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

joshmbg picture joshmbg  路  5Comments

niden picture niden  路  4Comments

zackkatz picture zackkatz  路  6Comments

adjenks picture adjenks  路  5Comments

machitgarha picture machitgarha  路  4Comments