stevebauman/purify

Laravel 9 support

Closed this issue · 5 comments

The current version 4 doesn't appear to be supported by the latest version of Laravel 9.

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

  Problem 1
    - Root composer.json requires stevebauman/purify ^4.0 -> satisfiable by stevebauman/purify[v4.0.0].
    - Conclusion: don't install laravel/framework v9.0.0-beta.2 (conflict analysis result)
    - Conclusion: don't install laravel/framework v9.0.0-beta.3 (conflict analysis result)
    - Conclusion: don't install laravel/framework v9.0.0-beta.4 (conflict analysis result)
    - Conclusion: don't install laravel/framework v9.0.0-beta.5 (conflict analysis result)
    - Conclusion: don't install laravel/framework v9.0.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v9.0.1 (conflict analysis result)
    - Conclusion: don't install laravel/framework v9.0.0-beta.1 (conflict analysis result)
    - stevebauman/purify v4.0.0 requires illuminate/support ~5.5|~6.0|~7.0|~8.0 -> satisfiable by illuminate/support[v5.5.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev].
    - Only one of these can be installed: illuminate/support[v5.5.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev, v9.0.0-beta.1, ..., 9.x-dev], laravel/framework[v9.0.0-beta.1, ..., 9.x-dev]. laravel/framework replaces illuminate/support and thus cannot coexist with it.
    - Root composer.json requires laravel/framework ^9.0 -> satisfiable by laravel/framework[v9.0.0-beta.1, ..., 9.x-dev].

This appears to be a conflict in versions between Purify and Laravel with the illuminate/support library.

Further investigations it looks like the work completed in the recent PR #48 just needs to be tagged with the new version as the latest one is v4.0.

For anyone else who is having a similar issue a quick fix would be to use the current commit ID as an alias to v4.1.

In your composer.json:

"stevebauman/purify": "dev-master#e56289062ed8a25c78c88f35e9106f00d01369c1 as v4.1"

Great! Thanks for the quick work @stevebauman

Happy to help @AlexWinder!