Comments (6)
We use AspectMock for unit testing, and have run into a few problems migrating from PHP 7.4 to PHP 8.1. I'm trying to piece together what's needed for AOP to work in that later version.
It looks to me the current situation is:
- Ticket #466 is for migrating
goaop/framework
to PHP 8. This pull request appears to be a start for that. - (That said, I've been able to use
goaop/framework
w/o any changes in our PHP-Unit/AspectMock test suite. The only thing I had to do was force Composer to ignore the PHP version requirement, see here for more information.) goaop/parser-reflection
needs to be upgraded to work with PHP 8.x. I can't find a ticket in that repo for it. There are pull requests for that, but I don't see any progress on them. I've submitted my own pull request that makes the bare minimum of code changes for the package to run under PHP 8.- However, the discussion in this ticket and #466 seems to indicate there's a desire to drop
parser-reflection
in favor of BetterReflection, although there's some work required to integrate the switch.
Would it be feasible to update parser-reflection
for now, and minimally maintain it into the future, until the BR integration can be completed? It seems like this would be the path of least resistance, and give projects depending on goaop a bridge forward.
from framework.
I am currently refactoring the library to support PHP 8.0. See WalterWoshid#1 for progress information
from framework.
Done #486
from framework.
Hello, @func0der! Thank you for reaching me out. Indeed, I'm not investing too much time now to my OSS projects. I had some troubles with my health and also busy at my main work, thus no free time to keep development at previous level.
I really would like to have PHP>=8 support added to my framework and resolve existing issues, but I know that it will take a lot of my time just to migrate to BetterReflection first (it isn't directly compatible with my library - I've checked this already) and then to make framework supporting PHP8 features too.
So, if you can somehow help me with open tickets - it would be awesome. I really would like to have a co-maintainer on this project which can take care about modern development and open tickets/issues. Previously only me, @TheCelavi and @fduch were able able to work on framework's core as it wasn't trivial at all.
I can't promise anything, but want to have PHP8 support added. All core features are stable and don't require too much changes, only code reflection/generation part requires some time to be rewritten.
from framework.
@lisachenko what happened with new engine for AOP?
from framework.
@TheCelavi new engine isn’t stable and I don’t want switch framework to something which can not be 100% stable, as this will affect existing users of framework. Thus, better to keep current userland version of AOP
from framework.
Related Issues (20)
- Go AOP and Dependency Injection HOT 2
- Doctrine\Common\Annotations\AnnotationException: [Semantical Error] Couldn't find constant execution HOT 1
- CachingTransformer breaking PHP code w/invalid replacements HOT 9
- Cache generated incorrectly from files when running AOP HOT 5
- Incorrect Cache file HOT 2
- Problem with laravel & classes outside of app
- AOP in laravel and php pure classes HOT 1
- cannot update goaop parser-reflection HOT 2
- PHP 8 Compatibility HOT 11
- Cannot declare class because the name is already in use HOT 5
- SelfValueTransformer breaks Code in PHP 7.4 HOT 2
- Partipate to a benchmark HOT 4
- CachedAspectLoader::load() does not comply with \Go\Core\AspectLoader::load() signature HOT 3
- 2.3.4 framework exception type with error type HOT 5
- Non-variadic parameter causes 'Variadic parameter cannot have a default value' exception HOT 3
- Uncaught Error: Typed property Go\Aop\Framework\AbstractInterceptor::$adviceOrder must not be accessed before initialization in /var/www/html/app/vendor/goaop/framework/src/Aop/Framework/AbstractInterceptor.php HOT 1
- Library generates non-nullable return type for nullable return methods
- http://go.aopphp.com HOT 2
- Intercept all methods from an annotated class HOT 1
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 framework.