phpmetrics / PhpMetrics

Beautiful and understandable static analysis tool for PHP

Home Page:https://phpmetrics.github.io/website/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deprecated messages on PHP 8.1

sturniolo-polito opened this issue · comments

I'm currently using PhpMetrics 2.8.2 (as a dependency of edgedesign/phpqa 1.26.2).

When I launch PHPQA, I get these 'deprecated' messages:

PHP Deprecated:  abs(): Passing null to parameter #1 ($num) of type int|float is deprecated in /var/www/html/vendor/phpmetrics/phpmetrics/src/Hal/Violation/Package/StableAbstractionsPrinciple.php on line 24
PHP Deprecated:  abs(): Passing null to parameter #1 ($num) of type int|float is deprecated in /var/www/html/vendor/phpmetrics/phpmetrics/src/Hal/Violation/Package/StableAbstractionsPrinciple.php on line 24
PHP Deprecated:  number_format(): Passing null to parameter #1 ($num) of type float is deprecated in /var/www/html/vendor/phpmetrics/phpmetrics/templates/html_report/composer.php on line 58
PHP Deprecated:  number_format(): Passing null to parameter #1 ($num) of type float is deprecated in /var/www/html/vendor/phpmetrics/phpmetrics/templates/html_report/composer.php on line 63
PHP Deprecated:  number_format(): Passing null to parameter #1 ($num) of type float is deprecated in /var/www/html/vendor/phpmetrics/phpmetrics/templates/html_report/composer.php on line 68