mihaeu / dephpend

Detect flaws in your architecture, before they drag you down into the depths of dependency hell ...
https://dephpend.com
MIT License
530 stars 26 forks source link

PHP 8.2 Support #79

Open kovalovme opened 1 year ago

kovalovme commented 1 year ago

Good day sir!

Thank you for making such tool, but I'm having issues running it.

I'm using downloaded .0.8.8 phar from releses page

/var/www/html # php -n dephpend.phar text _src
Deprecated: Return type of Mihaeu\PhpDependencies\Util\AbstractCollection::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///var/www/html/dephpend.phar/src/Util/AbstractCollection.php on li
ne 84

Deprecated: Return type of Symfony\Component\Console\Helper\HelperSet::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///var/www/html/dephpend.phar/vendor/symfon
y/console/Helper/HelperSet.php on line 94

Deprecated: Creation of dynamic property PhpParser\Node\Stmt\Class_::$namespacedName is deprecated in phar:///var/www/html/dephpend.phar/vendor/nikic/php-parser/lib/PhpParser/NodeVisitor/NameResolver.php on line 234

Deprecated: Creation of dynamic property PhpParser\Node\Stmt\Class_::$namespacedName is deprecated in phar:///var/www/html/dephpend.phar/vendor/nikic/php-parser/lib/PhpParser/NodeVisitor/NameResolver.php on line 234

Deprecated: Creation of dynamic property PhpParser\Node\Stmt\Class_::$namespacedName is deprecated in phar:///var/www/html/dephpend.phar/vendor/nikic/php-parser/lib/PhpParser/NodeVisitor/NameResolver.php on line 234

Deprecated: Creation of dynamic property PhpParser\Node\Stmt\Class_::$namespacedName is deprecated in phar:///var/www/html/dephpend.phar/vendor/nikic/php-parser/lib/PhpParser/NodeVisitor/NameResolver.php on line 234

Warning: Undefined array key 327 in phar:///var/www/html/dephpend.phar/vendor/nikic/php-parser/lib/PhpParser/Lexer.php on line 323
Something went wrong, this shouldn't happen. Please take a minute and report this issue: https://github.com/mihaeu/dephpend/issues

PhpParser\Lexer::getNextToken(): Return value must be of type int, null returned

[phar:///var/www/html/dephpend.phar/vendor/nikic/php-parser/lib/PhpParser/Lexer.php at line 363]

My PHP version:

PHP 8.2.5 (cli) (built: Apr 14 2023 17:52:42) (NTS)
Copyright (c) The PHP Group                        
Zend Engine v4.2.5, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.5, Copyright (c), by Zend Technologies

I would highly appreciate your help! Thanks!