Comments (9)
I have the same problem. Solved it with: composer update --prefer-dist
until I investigate further.
from super_closure.
Just did:
$ cat composer.json
{
"require": {
"jeremeamia/superclosure": "~1.0.0"
}
}
$ composer.phar install
Loading composer repositories with package information
Installing dependencies (including require-dev)
- Installing nikic/php-parser (v0.9.4)
Downloading: 100%
- Installing jeremeamia/superclosure (1.0.1)
Downloading: 100%
Writing lock file
Generating autoload files
This works just fine for me. Try self-updating composer maybe?
from super_closure.
Same here, works smoothly. Some other dependency is probably excluding nikic/php-parser:0.9.*
- this is not an issue of super_closure imo
from super_closure.
I'm also suddenly having this issue, also with Laravel.
Problem 1
- Installation request for jeremeamia/superclosure 1.0.1 -> satisfiable by jeremeamia/SuperClosure[1.0.1].
- jeremeamia/SuperClosure 1.0.1 requires nikic/php-parser ~0.9 -> no matching package found.
Problem 2
- jeremeamia/SuperClosure 1.0.1 requires nikic/php-parser ~0.9 -> no matching package found.
- laravel/framework 4.1.x-dev requires jeremeamia/superclosure 1.0.* -> satisfiable by jeremeamia/SuperClosure[1.0.1].
- Installation request for laravel/framework 4.1.x-dev -> satisfiable by laravel/framework[4.1.x-dev].
from super_closure.
Fixed it by removing the vendor dir and composer.lock and just do a fresh install. So maybe some Composer caching issue?
from super_closure.
Thanks for the help everyone. Of all the suggested solutions, the only one I tried was barryvdh's (remove the vendor dir and composer.lock, do a fresh install). It worked! I'm closing this because it looks like it has more to do with Composer than with Super Closure.
from super_closure.
It's mainly due to reason nikic/PHP-Parser@0ac054a commit. When you run update composer still assume dev-master is aliased to 0.9 which cause this issue. And I seen this issue on almost all project that swap dev-master alias.
So removing composer.lock is the best solution right now.
from super_closure.
Ah, interesting. Do I or @nikic need to fix anything? How can these types of things be avoided in the future.
from super_closure.
@jeremeamia it's a composer issue.
composer/composer#1105
composer/composer#1137
There seem to be a WIP PR: composer/composer#1352
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
- Arrow functions serialization HOT 8
- 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.