Coder Social home page Coder Social logo

Comments (4)

GrahamCampbell avatar GrahamCampbell commented on May 18, 2024

Looks like you need to restart php-fpm because you have a stale cache of the Coroutine.php file. Either that, or you need to delete you vendor folder and composer cache, and run composer update.

from promises.

keulinho avatar keulinho commented on May 18, 2024

We have immutable infrastructure and build the whole container anew for each update, including the composer dependencies.
Meaning restarting php-fpm or running composer update should not have any affect as we do a clean composer install each time.

The logs from composer update clearly state that it installed v1.4.0:

  - Downloading guzzlehttp/psr7 (1.7.0)
  - Downloading guzzlehttp/promises (1.4.0)
  - Downloading guzzlehttp/guzzle (6.5.2)

The thing that confuses me most is that functions.php has to be up2date as it tries to make the "new" call to the Coroutine::of() method, but the loaded Coroutine class, that should be loaded from the same folder/namespace seems to be an old version that does not have the of() method. 🤔

from promises.

GrahamCampbell avatar GrahamCampbell commented on May 18, 2024

That indicates there is not a bug here, just that your vendor folder didn't get updated properly. Delete you composer cache directory as well as the vendor folder. The 1.4.0 zip definitely has the correct files in it: https://github.com/guzzle/promises/archive/1.4.0.zip.

from promises.

keulinho avatar keulinho commented on May 18, 2024

After quite some debugging we found the source for this problems. The Coroutine class was autoloaded from another vendor folder than the functions file.

But thank you for your fast replies & your support.

from promises.

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.