tomzx / php-semver-checker

Compares two source sets and determines the appropriate semantic versioning to apply.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Call to undefined method PhpParser\Node\NullableType::toString()

tomzx opened this issue · comments

PHP Fatal error:  Uncaught Error: Call to undefined method PhpParser\Node\NullableType::toString() in php-semver-checker-git.phar/vendor/tomzx/php-semver-checker/src/PHPSemVerChecker/Comparator/Type.php:24
Stack trace:
#0 php-semver-checker-git.phar/vendor/tomzx/php-semver-checker/src/PHPSemVerChecker/Comparator/Signature.php(41): PHPSemVerChecker\Comparator\Type::get(Object(PhpParser\Node\NullableType))
#1 php-semver-checker-git.phar/vendor/tomzx/php-semver-checker/src/PHPSemVerChecker/Analyzer/ClassMethodAnalyzer.php(82): PHPSemVerChecker\Comparator\Signature::analyze(Array, Array)
#2 php-semver-checker-git.phar/vendor/tomzx/php-semver-checker/src/PHPSemVerChecker/Analyzer/ClassAnalyzer.php(47): PHPSemVerChecker\Analyzer\ClassMethodAnalyzer->analyze(Object(PhpParser\Node\Stmt\Class_), Object(PhpParser\Node\Stmt\Class_))
#3 php-semver-checker-git.phar/vendor/tomzx/php-semver-checker/src/PHPSemVerChecker/Comparator/Type.php on line 24

This error occurs when running against Symfony 4 codebase.

Fixed @ 7bdf3e1.

Hey @tomzx
Could you please release version with this fix?

@aivus v0.13.0 was pushed with this fix!