Code Monkey home page Code Monkey logo

Comments (14)

Hywan avatar Hywan commented on September 23, 2024

Hello :-),

We need to load Hoa for at least the hoa:// protocol, which is used by several projects to ensure consistency along migrations of their project, so I am not likely to remove the files property of the composer.json file. However, since PHP7 has introduced the Throwable interface, we can remove the code retro-implementing PHP7 features. I will do that right now, it's going to be easy without no risk.

However, this answer is also correct: http://stackoverflow.com/a/31265607. We should have check the presence of the class.
Nevertheless, Propel will have a serious issue with PHP7. You might open another issue to Propel to prepare them to PHP7.

from core.

halfer avatar halfer commented on September 23, 2024

Thanks @Hywan, that's splendid.

Yes, Propel 1 is quite old, and is shortly to be superceded by Propel 2, which is in alpha5 status presently. This will resolve the problem, since it will be fully namespaced.

from core.

Hywan avatar Hywan commented on September 23, 2024

@halfer Please, could you retry with hoa/core: 2.*@dev? If the problem is solved for you, then I will create a new snapshot.

from core.

halfer avatar halfer commented on September 23, 2024

Great, works for me @Hywan! Thanks for your speedy assistance.

from core.

Hywan avatar Hywan commented on September 23, 2024

@halfer https://github.com/hoaproject/Core/releases/tag/2.15.07.07

from core.

halfer avatar halfer commented on September 23, 2024

Will switch to that. 😸

from core.

Hywan avatar Hywan commented on September 23, 2024

@halfer: hoa/dev: ~2.0 will do the trick naturally.

from core.

Hywan avatar Hywan commented on September 23, 2024

Sorry for this bug with Propel :-(.

from core.

halfer avatar halfer commented on September 23, 2024

Thanks for coming over to Stack Overflow to report the fix. I've added an extra bounty to your answer, to get you started if you fancy asking/answering more questions.

from core.

Hywan avatar Hywan commented on September 23, 2024

@halfer Thanks!

from core.

Metalaka avatar Metalaka commented on September 23, 2024

However, this answer is also correct: http://stackoverflow.com/a/31265607. We should have check the presence of the class.

So why not add && false === interface_exists('Throwable', false) on https://github.com/hoaproject/Core/blob/master/Consistency.php#L944 ?

from core.

Hywan avatar Hywan commented on September 23, 2024

Because it forces other projects to be compatible with incoming PHP7 versions?

from core.

Metalaka avatar Metalaka commented on September 23, 2024

But if an other project do the same as you did it will result a conflict, since both only check the PHP version.

from core.

Hywan avatar Hywan commented on September 23, 2024

@Metalaka Correct 😉. Who want to make a PR?

from core.

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.