theseer / phpdox

Documentation generator for PHP Code using standard technology (SRC, DOCBLOCK, XML and XSLT)
http://phpdox.de
Other
601 stars 121 forks source link

php 8.1 E_DEPRECATED #423

Open absentdream opened 1 year ago

absentdream commented 1 year ago

heads up i am gitting this error (it generates docs, just want to point it out as E_DEPRECATED )

Oups... phpDox encountered a problem and has terminated!

It most likely means you've found a bug, so please file a report for this
and paste the following details and the stacktrace (if given) along:

PHP Version: 8.1.2-1ubuntu2.6 (Linux)
PHPDox Version: 0.12.0-dev
ErrorException: E_DEPRECATED 
Location: /usr/share/php/TheSeer/phpDox/shared/FileInfo.php (Line 82)

Return type of TheSeer\phpDox\FileInfo::getPathInfo($class_name = null): void should either be compatible with SplFileInfo::getPathInfo(?string $class = null): ?SplFileInfo, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

No stacktrace available
theseer commented 1 year ago

I'll have a look. Thanks for pointing this out.

iveoles commented 1 year ago

Any updates on this issue?

SafetyFast commented 11 months ago

I'm still seeing this error when running "phpdox --version". For now I've moved to PHP Documenter, but I'd love to come back to phpdox.