theseer / phpdox

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

Error with PHP 8.1.0 #422

Open Smoqqqq opened 2 years ago

Smoqqqq commented 2 years ago

Hi, I was looking to generate documenation for a project, but it seems like it doesn't work with PHP 8.1.0. error:

PS C:\wamp64\www\framework> php vendor/bin/phpdox

Warning: PHP Startup: Unable to load dynamic library 'php_apcu.dll' (tried: c:/wamp64/bin/php/php8.1.0/ext/php_apcu.dll (Le module sp├®cifi├® est introuvable), c:/wamp64/bin/php/php8.1.0/ext/php_php_apcu.dll.dll (Le module sp├®cifi├® est introuvable)) in Unknown on line 0

Deprecated: Return type of TheSeer\phpDox\FileInfo::getPath() should either be compatible with SplFileInfo::getPath(): string, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in C:\wamp64\www\framework\vendor\theseer\phpdox\src\shared\FileInfo.php on line 41

Deprecated: Return type of TheSeer\phpDox\FileInfo::getRealPath() should either be compatible with SplFileInfo::getRealPath(): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in C:\wamp64\www\framework\vendor\theseer\phpdox\src\shared\FileInfo.php on line 12    

Deprecated: Return type of TheSeer\phpDox\FileInfo::getFileInfo($class_name = null): void should either be compatible with SplFileInfo::getFileInfo(?string $class = null): SplFileInfo, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in C:\wamp64\www\framework\vendor\theseer\phpdox\src\shared\FileInfo.php on line 73

Deprecated: 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 in C:\wamp64\www\framework\vendor\theseer\phpdox\src\shared\FileInfo.php on line 82
phpDox 0.12.0-dev - Copyright (C) 2010 - 2022 by Arne Blankerts and Contributors

[28.10.2022 - 08:43:58] Using config file './phpdox.xml'        
[28.10.2022 - 08:43:58] Registered collector backend 'parser'
[28.10.2022 - 08:43:58] Registered enricher 'build'
[28.10.2022 - 08:43:58] Registered enricher 'git'
[28.10.2022 - 08:43:58] Registered enricher 'checkstyle'        
[28.10.2022 - 08:43:58] Registered enricher 'phpcs'
[28.10.2022 - 08:43:58] Registered enricher 'pmd'
[28.10.2022 - 08:43:58] Registered enricher 'phpunit'
[28.10.2022 - 08:43:58] Registered enricher 'phploc'
[28.10.2022 - 08:43:58] Registered output engine 'xml'
[28.10.2022 - 08:43:58] Registered output engine 'html'
[28.10.2022 - 08:43:58] Starting to process project 'Framework' 
[28.10.2022 - 08:43:58] Starting collector
[28.10.2022 - 08:43:58] Scanning directory 'C:/wamp64/www/framework/Smoq' for files to process

ccccccccc                                               [9]

[28.10.2022 - 08:43:58] Saving results to directory 'C:/wamp64/www/framework/var/docs'
[28.10.2022 - 08:43:58] Collector process completed

[28.10.2022 - 08:43:58] Starting generator
[28.10.2022 - 08:43:58] Loading enrichers
[28.10.2022 - 08:43:58] Enricher Build Information initialized successfully
[28.10.2022 - 08:43:58] Starting event loop.

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.0 (WINNT)
PHPDox Version: 0.12.0-dev
ErrorException: E_COMPILE_ERROR
Location: C:\wamp64\www\framework\vendor\theseer\fxsl\src\fxsltprocessor.php (Line 187)

Declaration of TheSeer\fXSL\fXSLTProcessor::transformToDoc($node) must be compatible with XSLTProcessor::transformToDoc(object $document, ?string $returnClass = null): DOMDocument|false       

No stacktrace available

The XML is generated, though no HTML is generated. image

Hopefully this ain't a duplicate, thanks for your time.

theseer commented 2 years ago

This indeed seems to be a problem with current PHP Versions. The Signature of the XSL-Stuff changed.

phpDox is suffering from neglect. I'm sorry about that. But i'll try to update things. No promises about the time frame.