Comments (8)
Ok, it might be an insanity due to implicit use() :(
from super_closure.
Any thoughts on this? Php 7.4 is live, just stumbled upon this issue using PHP-DI compiled container (PHP-DI/PHP-DI#706).
from super_closure.
@b1rdex If I remember correctly, the fix for PHP-DI is trivial and I even managed to make it work sort of, but super_closure is not only a PHP-DI backend and it should serialize variables in use() statement. This was the problem when I got stuck
from super_closure.
@arokettu could you please share the fix for arrow functions without use()? It'd be better than nothing.
from super_closure.
@b1rdex just replace this check
with $node instanceof ClosureNode || $node instanceof ArrowFunctionNode
and it will work except for $uses warning
from super_closure.
This is a full file with the change, sorry, don't have it in git
https://gist.github.com/arokettu/aac75ac809577b83b16d2583587c5af6
from super_closure.
This software is no longer maintained. Consider using opis/closure instead. I believe they have added short function support.
from super_closure.
@jeremeamia yes you're right. Here is the implementation: opis/closure@86fc51f
from super_closure.
Related Issues (20)
- Nested closures not working. HOT 1
- Why do serialization errors not throw? HOT 4
- Superclosure is now removed from Laravel HOT 1
- wrong repo issue ;)
- Will this still work in Laravel 5.7 HOT 1
- erialization of closure failed: The closure was not found within the abstract syntax tree.' HOT 2
- Release 2.2.0 HOT 12
- self:: usage throws error when unserializing HOT 10
- Failing on HHVM HOT 6
- Namespace issue HOT 3
- "Serialize" to javascript? HOT 1
- Error when using Zend Guard HOT 6
- Note HOT 3
- Bug with EventEmitter? HOT 4
- Cannot instantiate interface PhpParser\Parser HOT 10
- PHP5: Cannot bind an instance to a static closure HOT 1
- Serialization of 'Closure' is not allowed HOT 4
- runing composer update on php 7 gives errors with Closure Analyser HOT 1
- Gitter chat link 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 super_closure.