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

PHAR no longer works since upgrade of nikic/php-parser to version 5.4.0 #6092

Closed
sebastianbergmann opened this issue Jan 1, 2025 · 0 comments
Assignees
Labels
installation/phar type/change-in-dependency-requires-adaptation A change in a dependency requires a change so that existing PHPUnit functionality continues to work version/10 Something affects PHPUnit 10 version/11 Something affects PHPUnit 11 version/12 Something affects PHPUnit 12

Comments

@sebastianbergmann
Copy link
Owner

sebastianbergmann commented Jan 1, 2025

After upgrading nikic/php-parser to version 5.4.0, the PHAR no longer works:

PHP Fatal error: Cannot declare class PHPUnitPHAR\PhpParser\Node\ArrayItem, because the name is already in use in phar:///home/runner/work/phpunit/phpunit/build/artifacts/phpunit-snapshot.phar/nikic-php-parser/PhpParser/Node/ArrayItem.php on line 7

See

Looking at the release notes, the only change that could explain this is nikic/PHP-Parser@469377f.

@sebastianbergmann sebastianbergmann added installation/phar type/change-in-dependency-requires-adaptation A change in a dependency requires a change so that existing PHPUnit functionality continues to work version/10 Something affects PHPUnit 10 version/11 Something affects PHPUnit 11 version/12 Something affects PHPUnit 12 labels Jan 1, 2025
@sebastianbergmann sebastianbergmann self-assigned this Jan 1, 2025
sebastianbergmann added a commit that referenced this issue Jan 2, 2025
This reverts commit b93556e.

See #6092
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installation/phar type/change-in-dependency-requires-adaptation A change in a dependency requires a change so that existing PHPUnit functionality continues to work version/10 Something affects PHPUnit 10 version/11 Something affects PHPUnit 11 version/12 Something affects PHPUnit 12
Projects
None yet
Development

No branches or pull requests

1 participant