-
Notifications
You must be signed in to change notification settings - Fork 110
Problem updating with Composer #70
Comments
You have to composer require tightenco/collect:"5.4.*" The |
Thank you, but that doesn't work for me
also, if that's the case, why does it seem to work for the Illuminate packages, but not this one? |
More fun with version constraints! None of the following seem to work:
All three of these result in |
I confirm there's something odd there, and it is, probably, related to the installation of an Illuminate package which is requiring Illuminate\Support, which has Collection. Currently Tightenco\Collect uses the very same namespace of Illuminate\Collection, which might be causing the glitch. There are some pull requests to change the namespace from Illuminate to Tightenco, but apparently the package maintainers are not yet set on this, because it might have some other implications. But if you are using one of those (Illuminate) packages, you don't really need Tightenco\Collect, since you will receive Illuminate/Collection, which is supposed to be exactly the same in Tightenco\Collect. The odd part of it all is that Composer adds the dependency in the The tests I did:
Then, trying to install Collect doesn't work:
But if you install an Illuminate package which is not requiring Support, it all works fine, like Contracts:
Installing Collect expecting it to download 5.5:
Then downgrading using the proper version constraint:
|
💡 Aha! Thank you @antonioribeiro. We pulled in |
PHP Warning: Class 'Tightenco\Collect\Support\Debug\Dumper' not found in /Users/huiyong/.composer/vendor/tightenco/collect/src/Collect/Support/alias.php on line 18
Warning: Class 'Tightenco\Collect\Support\Debug\Dumper' not found in /Users/huiyong/.composer/vendor/tightenco/collect/src/Collect/Support/alias.php on line 18
PHP Warning: Class 'Tightenco\Collect\Support\Debug\HtmlDumper' not found in /Users/huiyong/.composer/vendor/tightenco/collect/src/Collect/Support/alias.php on line 18
Warning: Class 'Tightenco\Collect\Support\Debug\HtmlDumper' not found in /Users/huiyong/.composer/vendor/tightenco/collect/src/Collect/Support/alias.php on line 18 composer global show tightenco/collect v5.7.1 Collect - Illuminate Collections as a separate package. composer global require tightenco/collect:"5.4.*" fixed problem |
@bravist that’s #124 |
This is probably an issue with how I have things set up (isn't it always?) but updating other packages seems to work fine.
I'm limited to PHP 5.6, so I can't use collect 5.5, and I have to stay with the 5.4 branch. Collect has been working perfectly for months: thank you!
If I install this way, everything works perfectly, but I'm installing only 5.4.0:
Then, if I try to install
^5.4
, then composer simply removes collect (I would expect it to update to 5.4.33 or whatever is latest):If I install 5.4.33 manually, it works as expected:
If I try a different package, everything works as expected:
Any suggestions that might help me figure out what's causing this?
The text was updated successfully, but these errors were encountered: