Comments (14)
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.
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.
@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.
Great, works for me @Hywan! Thanks for your speedy assistance.
from core.
@halfer https://github.com/hoaproject/Core/releases/tag/2.15.07.07
from core.
Will switch to that. 😸
from core.
@halfer: hoa/dev: ~2.0
will do the trick naturally.
from core.
Sorry for this bug with Propel :-(.
from core.
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.
@halfer Thanks!
from core.
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.
Because it forces other projects to be compatible with incoming PHP7 versions?
from core.
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.
@Metalaka Correct 😉. Who want to make a PR?
from core.
Related Issues (20)
- I'm getting this error *"Hoa main file (Core.php) must be included once."* HOT 7
- mark as deprecated HOT 1
- Support \U, \u, \L, \l, \E and \e in the zFormat HOT 1
- Do we need to cache `extension_loaded` result? HOT 3
- Use a trait for Hoa\Core\Event
- Hoa\Core should NEVER edit php configuration. HOT 12
- Hint IDEs about property. HOT 3
- hoa break when installed globaly HOT 3
- The 'hoa' binary should not be installed with Core HOT 19
- Add a `home` command to open http://hoa-project.net HOT 1
- Setlocal issues in core HOT 4
- PHP7 compatibility
- `Exception::uncaught` can receive a `BaseException` in PHP7.0
- Update `Consistency::isKeyword` for PHP7.0 HOT 1
- Protocol: `stream_stat` is not very verbose when failing
- Hoa/Core errors when loaded twice HOT 39
- Hoa shouldn't initialize before being used HOT 7
- [meta] Split the core HOT 48
- [meta] Split the core, next HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core.