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
I use the illuminate/collections as a standalone package a lot. (Thank you for that!)
During the release of the 11.35, a new functions.php file was added with the enum_value function in it. That function depends on the transform function in illuminate/support which isn't a dependency of illuminate/collections. This leads to this error:
PHP Fatal error: Uncaught Error: Call to undefined function Illuminate\Support\transform() in /home/runner/.composer/vendor/illuminate/collections/functions.php:20
I'm not sure what the fix is here because illuminate/support has a dependency on illuminate/collections which would make it a cyclical dependency if we add illuminate/support as a dependency. It might be wroth trying to implement enum_value without using transform.
Steps To Reproduce
You can view the issue if you do a standalone install of illuminate/collections and navigate to functions.php in your IDE. You can see there's no definition for transform.
The text was updated successfully, but these errors were encountered:
carlalexander
changed the title
Cannot use "illuminate/collections" package starting after upgrading to 11.35
Cannot use "illuminate/collections" package after upgrading to 11.35
Dec 12, 2024
carlalexander
changed the title
Cannot use "illuminate/collections" package after upgrading to 11.35
Cannot use standalone "illuminate/collections" package after upgrading to 11.35
Dec 12, 2024
Laravel Version
11.35
PHP Version
8.3.13
Database Driver & Version
No response
Description
I use the
illuminate/collections
as a standalone package a lot. (Thank you for that!)During the release of the 11.35, a new
functions.php
file was added with theenum_value
function in it. That function depends on thetransform
function inilluminate/support
which isn't a dependency ofilluminate/collections
. This leads to this error:I'm not sure what the fix is here because
illuminate/support
has a dependency onilluminate/collections
which would make it a cyclical dependency if we addilluminate/support
as a dependency. It might be wroth trying to implementenum_value
without usingtransform
.Steps To Reproduce
You can view the issue if you do a standalone install of
illuminate/collections
and navigate tofunctions.php
in your IDE. You can see there's no definition fortransform
.The text was updated successfully, but these errors were encountered: