Coder Social home page Coder Social logo

Comments (11)

menturion avatar menturion commented on June 26, 2024 1

+1
Same here.

PHPloy needs to be updated to be compatible with higher PHP versions (e.g. 7.4) which requires a shift to support Flysystem v2, reported here #385

from phploy.

mathmul avatar mathmul commented on June 26, 2024 1

Does it work with PHP 8.0.x ? I installed it globally as per instructions, but dependency League\Flysystem\Adapter\FTP seems to be missing. Can someone else test it locally?

from phploy.

lhsazevedo avatar lhsazevedo commented on June 26, 2024

Doesn't Flysystem v1 supports PHP ^7.2.5 and ^8.0?

https://github.com/thephpleague/flysystem/blob/1.x/composer.json

"require": {
    "php": "^7.2.5 || ^8.0",
    "ext-fileinfo": "*",
    "league/mime-type-detection": "^1.3"
},

Did you experience any problems with PHPloy on PHP 7.4?

from phploy.

menturion avatar menturion commented on June 26, 2024

Sure.

Did you test your script with PHP 7.4?

composer.json excerpt:

{
   "config":{
        "platform": {
            "php": "7.4"
        }
    },
    
    ...
}

from phploy.

lhsazevedo avatar lhsazevedo commented on June 26, 2024

Hmm, this just tells Composer to ignore the current PHP version and install dependencies as if you were running PHP 7.4.

To see which PHP version you're actually running you can try php -v on your terminal.

I will test PHPloy on 7.4 later today to see if I can reproduce your issue.

from phploy.

lhsazevedo avatar lhsazevedo commented on June 26, 2024

@menturion I just tested the latest build from "dist" directory, on PHP 7.4, and it worked perfectly.

from phploy.

menturion avatar menturion commented on June 26, 2024

Thanks.
I'm running v7.4. This forces Flysystem to be updated to v2 which results into the mentioned problems. So that changes have to be made in your script according to https://flysystem.thephpleague.com/v2/docs/advanced/upgrade-to-2.0.0/

from phploy.

lhsazevedo avatar lhsazevedo commented on June 26, 2024

...

from phploy.

menturion avatar menturion commented on June 26, 2024

@mathmul

It doesn't work, see the issue report here #385.
As long as this issue isn't fixed I recommend to create a separate vendor lib folder for PHPloy with composer.json ...

        "platform": {
            "php": "7.3"
        },
        "platform-check": false

from phploy.

NicolasRoehm avatar NicolasRoehm commented on June 26, 2024

Same here! Still no chance for a Flysystem v2 implementation?

from phploy.

lhsazevedo avatar lhsazevedo commented on June 26, 2024

Please open a new issue for the Flysystem upgrade.

from phploy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.