Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using deptrac 0.10.1 with php 7.4 results in error #431

Closed
pascaldevink opened this issue Dec 7, 2020 · 4 comments
Closed

Using deptrac 0.10.1 with php 7.4 results in error #431

pascaldevink opened this issue Dec 7, 2020 · 4 comments
Assignees
Labels
Milestone

Comments

@pascaldevink
Copy link

I noticed that using recently released 0.10.1 phar file yields this error when called with PHP 7.4:

PHP Fatal error:  Uncaught Error: Call to undefined function get_debug_type() in phar:///Users/pascaldevink/Downloads/deptrac.phar/vendor/symfony/options-resolver/OptionsResolver.php:975
Stack trace:
#0 phar:///Users/pascaldevink/Downloads/deptrac.phar/vendor/symfony/options-resolver/OptionsResolver.php(864): _HumbugBox7bdda44f760a\Symfony\Component\OptionsResolver\OptionsResolver->verifyTypes('array', NULL, Array)
#1 phar:///Users/pascaldevink/Downloads/deptrac.phar/vendor/symfony/options-resolver/OptionsResolver.php(774): _HumbugBox7bdda44f760a\Symfony\Component\OptionsResolver\OptionsResolver->offsetGet('exclude_files')
#2 phar:///Users/pascaldevink/Downloads/deptrac.phar/src/Configuration/Configuration.php(28): _HumbugBox7bdda44f760a\Symfony\Component\OptionsResolver\OptionsResolver->resolve(Array)
#3 phar:///Users/pascaldevink/Downloads/deptrac.phar/src/Configuration/Loader.php(28): SensioLabs\Deptrac\Configuration\Configuration::fromArray(Array)
#4 phar:///Users/pascaldevink/Downloads/deptrac.phar/src/Console/Command/Ana in phar:///Users/pascaldevink/Downloads/deptrac.phar/vendor/symfony/options-resolver/OptionsResolver.php on line 975

Using the 0.10 phar release, it just works. Same with using PHP 8.0 to run 0.10.1.

It seems to me that the PHP 8 polyfill isn't loaded in this release. Maybe it's a build configuration setting?

@smoench smoench added the bug label Dec 7, 2020
@smoench smoench added this to the 0.10.2 milestone Dec 7, 2020
@smoench smoench self-assigned this Dec 7, 2020
@smoench
Copy link
Contributor

smoench commented Dec 7, 2020

Thanks for reporting. It should be fixed with #429.
A new release is needed.

@fefas
Copy link

fefas commented Dec 7, 2020

just got same problem here :/

@smoench
Copy link
Contributor

smoench commented Dec 8, 2020

I've released a new version https://github.com/sensiolabs-de/deptrac/releases/tag/0.10.2

@smoench smoench closed this as completed Dec 8, 2020
@fefas
Copy link

fefas commented Dec 8, 2020

Thanks @smoench :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants