Convert calls to array_merge
to use array unpacking (...
) now that PHP 8.1 supports unpacking associative arrays, in addition to numeric arrays.
Before
array_merge($array1, ['a', 'b'], $array3);
After
[...$array1, ...['a', 'b'], ...$array3];
Sign in with any of the following services to connect Shift with your Laravel project.
Don't use one of these services?
Temporarily push your project to a free, private repository on one of these cloud-based services or upgrade your project locally with Shift for Docker.