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

composer create-project installing older version #940

Closed
ConnectGrid opened this issue Apr 3, 2024 · 11 comments
Closed

composer create-project installing older version #940

ConnectGrid opened this issue Apr 3, 2024 · 11 comments
Assignees
Labels
config configuration related
Milestone

Comments

@ConnectGrid
Copy link

🐛 Bugreport

Running composer require jason-munro/cypht installs the latest version (1.4.1 at time of this writing). However, calling composer create-project jason-munro/cypht is installing v1.4.0, which has outdated dependencies that don't support PHP 8.3.x.

I'm not familiar with enough the create-project command to know how to fix this.

Version & Environment

Rev: []

OS: []

Steps to reproduce

  1. Run composer create-project jason-munro/cypht

On PHP 8.3, dependency validation fails.

@marclaporte
Copy link
Member

@christer77 has volunteered on this one.

@Shadow243
Copy link
Member

@ConnectGrid It could be due to caching.

Did you try this:composer clear-cache and then composer create-project jason-munro/cypht ??

@marclaporte
Copy link
Member

marclaporte commented Apr 14, 2024

On PHP 8.3, dependency validation fails.

What is the exact error message?

Cypht 1.4.x supports minimum PHP 5.6
Cypht 2.0.x (soon to be released) supports minimum PHP 7.4

It could be a pain to support PHP 5.6 to PHP 8.4 so we may want to put a max PHP version for Cypht 1.4.x

Can you try Cypht master? We did some work to support PHP 7.4 to PHP 8.4

@christer77
Copy link
Member

ERROR MESSAGE :
The error is not related to cypht but to the htmlpurifier package which was fixed to "^4.13" while this version does not support php 8.3.x, so since 2022-09-16 to fix some bugs including php 8.3.x support htmlpurifier-releases

@christer77
Copy link
Member

ERROR MESSAGE :
cypht-jason-munro-error

@marclaporte
Copy link
Member

ok, so the next version of HTML Purifier will support PHP 8.4
ezyang/htmlpurifier#396

@christer77
Copy link
Member

Exactly, and this since version 4.17, this means that I am returning the PR because this of which is 4.16 is limited to 8.3

@marclaporte
Copy link
Member

@christer77 You need to generate a composer.lock file as well.

@christer77
Copy link
Member

It's noted @marclaporte

@marclaporte
Copy link
Member

@christer77 please see comments for #943

@christer77
Copy link
Member

Consideration of comments [#943 ] in PR

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

No branches or pull requests

5 participants