Getting error while running composer install command

Hi,

I am new to php and trying to setup an application called https://cachethq.io/ which is developed in php.
On trying to install dependencies using command “composer install --no-dev -o” I am getting error:-

Script @php artisan package:discover handling the post-autoload-dump event returned with error code 255

While debugging the application also I am getting below error:-

PHP Fatal error: During inheritance of ArrayAccess: Uncaught ErrorException: Return type of Illuminate\Support\Collection::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\cachet-2.4.1\vendor\laravel\framework\src\Illuminate\Support\Collection.php:1911

Any help or direction to fix the issue please?

There might be issued with the software versions you are using.

It seems like the 2.4 version was built on php 7 and might be incompatible with any php 8.x while the 3.x of the software is not yet ready for production.

Which php and extensions are you running?

1 Like
Sponsor our Newsletter | Privacy Policy | Terms of Service