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

Statamic not installable with PHPUnit 11 #10028

Closed
jasonvarga opened this issue May 9, 2024 · 2 comments · Fixed by #10048
Closed

Statamic not installable with PHPUnit 11 #10028

jasonvarga opened this issue May 9, 2024 · 2 comments · Fixed by #10048

Comments

@jasonvarga
Copy link
Member

jasonvarga commented May 9, 2024

Bug description

Statamic 5.0.1 and PHPUnit 11 don't install together.

How to reproduce

On a fresh Laravel app (without Statamic) it comes with PHPUnit 11 now.
Try to install Statamic, and Composer will complain about dependency conflicts.

Downgrade to PHPUnit 10, installing Statamic works fine.

Logs

No response

Environment

Statamic 5.0.1

Installation

Fresh statamic/statamic site via CLI

Additional details

https://discord.com/channels/489818810157891584/1238143162476662856

@duncanmcclean
Copy link
Member

duncanmcclean commented May 10, 2024

For added context, this is the Composer output:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - ajthinking/archetype[v1.0.3, ..., v1.1.5] require nikic/php-parser ^4.11 -> found nikic/php-parser[v4.11.0, ..., 4.x-dev] but these were not loaded, likely because it conflicts with another require.
    - statamic/cms 5.x-dev requires ajthinking/archetype ^1.0.3 -> satisfiable by ajthinking/archetype[v1.0.3, ..., v1.1.5].
    - Root composer.json requires statamic/cms * -> satisfiable by statamic/cms[5.x-dev].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require statamic/cms:*" to figure out if any version is installable, or "composer require statamic/cms:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

It looks like the ajthinking/archetype package needs updating to support nikic/php-parser v5, which was released a few months ago.

@jasonvarga
Copy link
Member Author

I've opened a PR for archetype to support php-parser 5.

ajthinking/archetype#85

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

Successfully merging a pull request may close this issue.

2 participants