You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Laravel Version: 8.6.11, but the problem is present in 9.x / main
PHP Version: 8.1.0
Database Driver & Version: n/a
Description:
The sliding implementation here for Illuminate\Support\LazyCollection as defined on Illuminate\Support\Enumerablehere uses the tap helper, which the file as defined here is not present for when installing the illuminate\collections package standalone, as it doesn't depend on illuminate/support
PHP Fatal error: Uncaught Error: Call to undefined function Illuminate\Support\tap() in /[redacted]/vendor/illuminate/collections/LazyCollection.php:974
Stack trace:
#0 /[redacted]/vendor/illuminate/collections/Traits/EnumeratesValues.php(243): Illuminate\Support\LazyCollection->Illuminate\Support\{closure}()
#1 /[redacted]/src/import.php(69): Illuminate\Support\LazyCollection->each()
#2 {main}
thrown in /[redacted]/vendor/illuminate/collections/LazyCollection.php on line 974
which is in line with the above.
I think the correct solution is to not use tap here, as it seems not worth it to go into dependency hell to resolve this -> depending on illuminate/supportwithinilluminate/collections seems to defeat the purpose of why they were separated in the first place not that long ago.
The text was updated successfully, but these errors were encountered:
Description:
The
sliding
implementation here forIlluminate\Support\LazyCollection
as defined onIlluminate\Support\Enumerable
here uses thetap
helper, which the file as defined here is not present for when installing theilluminate\collections
package standalone, as it doesn't depend onilluminate/support
Steps To Reproduce:
composer require illuminate/collections
This gave me
which is in line with the above.
I think the correct solution is to not use
tap
here, as it seems not worth it to go into dependency hell to resolve this -> depending onilluminate/support
withinilluminate/collections
seems to defeat the purpose of why they were separated in the first place not that long ago.The text was updated successfully, but these errors were encountered: