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 Issue with PHP8 #47

Closed
robertmarney opened this issue Mar 20, 2021 · 9 comments · Fixed by sebdesign/laravel-state-machine#57
Closed

Composer Issue with PHP8 #47

robertmarney opened this issue Mar 20, 2021 · 9 comments · Fixed by sebdesign/laravel-state-machine#57

Comments

@robertmarney
Copy link

robertmarney commented Mar 20, 2021

Apologies if this is the wrong place. I am having issues installing your package using composer with PHP 8.0.3

  Problem 1
    - winzou/state-machine[0.4.1, ..., v0.4.x-dev] require php ^7.1.3 -> your php version (8.0.3) does not satisfy that requirement.
    - Root composer.json requires winzou/state-machine ^0.4.1 -> satisfiable by winzou/state-machine[0.4.1, v0.4.x-dev].
@winzou
Copy link
Owner

winzou commented Mar 21, 2021

Hi,

That's weird, the latest version (0.4.1) also accepts PHP version 8.0: https://packagist.org/packages/winzou/state-machine#0.4.1

@robertmarney
Copy link
Author

Yes, super strange. I got to the point of spinning up both a new local docker and a digital ocean droplet and both of those instances throw the same error.

@willhatchVista
Copy link

This is interesting. I'm getting the same error, but when I look at what's in my vendor folder winzou\state-machine\composer.json it's not a match for the file on your latest release

    "require": {
        "php":                         "^7.1.3",
        "symfony/event-dispatcher":    "~4.3|~5.0",

@robertmarney
Copy link
Author

@winzou - This issue is persisting, perhaps tagging a new release will trigger an update?

I also see the same issue on a fresh install that @willhatchVista saw:

image

@winzou
Copy link
Owner

winzou commented Jun 15, 2021

How did you get to that fresh install exactly?

@robertmarney
Copy link
Author

I cleared my local composer cache then initialized existing project from git and installed composer via the composer.lock file that requires 0.4.1 of this package.

image

@winzou
Copy link
Owner

winzou commented Jun 16, 2021

That's really weird. I've created a new tag https://github.com/winzou/state-machine/releases/tag/0.4.2 can you try again?

@robertmarney
Copy link
Author

Success! That did it. Very strange indeed.

Thank you for your help and the package!

@winzou
Copy link
Owner

winzou commented Jun 17, 2021

Great, thanks for reporting!

@winzou winzou closed this as completed Jun 17, 2021
markrassamni added a commit to markrassamni/laravel-state-machine that referenced this issue Aug 24, 2021
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.

3 participants