I’m currently working on the dockerized version of ProcessMaker 4.1.21 and I’m encountering the following error when I try to run the “composer update –ignore-platform-reqs” command :
PHP Fatal error: During inheritance of ArrayAccess: Uncaught ErrorException: Return type of IlluminateSupportCollection::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 C:UsersAdministratorDesktopprocessmaker-4.1.21vendorlaravelframeworksrcIlluminateSupportCollection.php:1277
Stack trace:
#0 C:UsersAdministratorDesktopprocessmaker-4.1.21vendorlaravelframeworksrcIlluminateSupportCollection.php(11): IlluminateFoundationBootstrapHandleExceptions->handleError()
#1 C:UsersAdministratorDesktopprocessmaker-4.1.21vendorcomposerClassLoader.php(576): include('...')
#2 C:UsersAdministratorDesktopprocessmaker-4.1.21vendorcomposerClassLoader.php(427): ComposerAutoload{closure}()
#3 C:UsersAdministratorDesktopprocessmaker-4.1.21vendorlaravelframeworksrcIlluminateSupporthelpers.php(109): ComposerAutoloadClassLoader->loadClass()
#4 C:UsersAdministratorDesktopprocessmaker-4.1.21vendorlaravelframeworksrcIlluminateFoundationPackageManifest.php(130): collect()
#5 C:UsersAdministratorDesktopprocessmaker-4.1.21vendorlaravelframeworksrcIlluminateFoundationPackageManifest.php(106): IlluminateFoundationPackageManifest->build()
#6 C:UsersAdministratorDesktopprocessmaker-4.1.21vendorlaravelframeworksrcIlluminateFoundationPackageManifest.php(89): IlluminateFoundationPackageManifest->getManifest()
#7 C:UsersAdministratorDesktopprocessmaker-4.1.21vendorlaravelframeworksrcIlluminateFoundationPackageManifest.php(78): IlluminateFoundationPackageManifest->config()
#8 C:UsersAdministratorDesktopprocessmaker-4.1.21vendorlaravelframeworksrcIlluminateFoundationBootstrapRegisterFacades.php(26): IlluminateFoundationPackageManifest->aliases()
#9 C:UsersAdministratorDesktopprocessmaker-4.1.21vendorlaravelframeworksrcIlluminateFoundationApplication.php(219): IlluminateFoundationBootstrapRegisterFacades->bootstrap()
#10 C:UsersAdministratorDesktopprocessmaker-4.1.21vendorlaravelframeworksrcIlluminateFoundationConsoleKernel.php(320): IlluminateFoundationApplication->bootstrapWith()
#11 C:UsersAdministratorDesktopprocessmaker-4.1.21vendorlaravelframeworksrcIlluminateFoundationConsoleKernel.php(129): IlluminateFoundationConsoleKernel->bootstrap()
#12 C:UsersAdministratorDesktopprocessmaker-4.1.21artisan(30): IlluminateFoundationConsoleKernel->handle()
#13 {main} in C:UsersAdministratorDesktopprocessmaker-4.1.21vendorlaravelframeworksrcIlluminateSupportCollection.php on line 11
In Collection.php line 11:
During inheritance of ArrayAccess: Uncaught ErrorException: Return type of IlluminateSupportCollection::offsetExists($key) should either be compatible with ArrayAccess::offsetExist
s(mixed $offset): bool, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in C:UsersAdministratorDesktopprocessmaker-4.1.21vendorlarav
elframeworksrcIlluminateSupportCollection.php:1277
Stack trace:
#0 C:UsersAdministratorDesktopprocessmaker-4.1.21vendorlaravelframeworksrcIlluminateSupportCollection.php(11): IlluminateFoundationBootstrapHandleExceptions->handleErro
r()
#1 C:UsersAdministratorDesktopprocessmaker-4.1.21vendorcomposerClassLoader.php(576): include('...')
#2 C:UsersAdministratorDesktopprocessmaker-4.1.21vendorcomposerClassLoader.php(427): ComposerAutoload{closure}()
#3 C:UsersAdministratorDesktopprocessmaker-4.1.21vendorlaravelframeworksrcIlluminateSupporthelpers.php(109): ComposerAutoloadClassLoader->loadClass()
#4 C:UsersAdministratorDesktopprocessmaker-4.1.21vendorlaravelframeworksrcIlluminateFoundationPackageManifest.php(130): collect()
#5 C:UsersAdministratorDesktopprocessmaker-4.1.21vendorlaravelframeworksrcIlluminateFoundationPackageManifest.php(106): IlluminateFoundationPackageManifest->build()
#6 C:UsersAdministratorDesktopprocessmaker-4.1.21vendorlaravelframeworksrcIlluminateFoundationPackageManifest.php(89): IlluminateFoundationPackageManifest->getManifest()
#7 C:UsersAdministratorDesktopprocessmaker-4.1.21vendorlaravelframeworksrcIlluminateFoundationPackageManifest.php(78): IlluminateFoundationPackageManifest->config()
#8 C:UsersAdministratorDesktopprocessmaker-4.1.21vendorlaravelframeworksrcIlluminateFoundationBootstrapRegisterFacades.php(26): IlluminateFoundationPackageManifest->ali
ases()
#9 C:UsersAdministratorDesktopprocessmaker-4.1.21vendorlaravelframeworksrcIlluminateFoundationApplication.php(219): IlluminateFoundationBootstrapRegisterFacades->bootst
rap()
#10 C:UsersAdministratorDesktopprocessmaker-4.1.21vendorlaravelframeworksrcIlluminateFoundationConsoleKernel.php(320): IlluminateFoundationApplication->bootstrapWith()
#11 C:UsersAdministratorDesktopprocessmaker-4.1.21vendorlaravelframeworksrcIlluminateFoundationConsoleKernel.php(129): IlluminateFoundationConsoleKernel->bootstrap()
#12 C:UsersAdministratorDesktopprocessmaker-4.1.21artisan(30): IlluminateFoundationConsoleKernel->handle()
#13 {main}
Script @php artisan package:discover handling the post-autoload-dump event returned with error code 255
Here is my composer.json :
{
"name": "processmaker/processmaker",
"version": "4.1.21",
"description": "BPM PHP Software",
"keywords": [
"php bpm processmaker"
],
"homepage": "http://processmaker.com",
"license": "GAGPL-3.0-or-later",
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=7.2.0",
"babenkoivan/elastic-scout-driver": "^1.2",
"darkaonline/l5-swagger": "6.0.*",
"doctrine/dbal": "^2.9",
"fideloper/proxy": "^4.0",
"fzaninotto/faker": "^1.4",
"guzzlehttp/guzzle": "^6.5",
"igaster/laravel-theme": "2.0.*",
"laravel/framework": "6.18.35",
"laravel/horizon": "~3.0",
"laravel/passport": "9.3.2",
"laravel/scout": "^7.2",
"laravel/telescope": "^3.0",
"laravel/tinker": "^2.0",
"laravelcollective/html": "^6.1.2",
"lavary/laravel-menu": "^1.7",
"lcobucci/jwt": "^3.3",
"moontoast/math": "^1.1",
"mustache/mustache": "^2.12",
"phing/phing": "^2.16",
"pion/laravel-chunk-upload": "^1.4",
"predis/predis": "^1.1",
"processmaker/docker-executor-lua": "^1.0",
"processmaker/docker-executor-node": "^1.0",
"processmaker/docker-executor-php": "^1.0",
"processmaker/laravel-i18next": "dev-master",
"processmaker/nayra": "1.7.0",
"processmaker/pmql": "1.2.0",
"pusher/pusher-php-server": "^4.0",
"ralouphie/getallheaders": "^2.0",
"spatie/laravel-fractal": "^5.3",
"spatie/laravel-medialibrary": "^7.0.0",
"symfony/expression-language": "^5.1.6",
"teamtnt/laravel-scout-tntsearch-driver": "^9.0",
"typo3/class-alias-loader": "^1.0",
"watson/validating": "^3.1",
"whichbrowser/parser": "^2.0"
},
"require-dev": {
"filp/whoops": "^2.0",
"laravel/dusk": "^5.4",
"laravel/homestead": "10.15.2",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^2.0",
"phpunit/phpunit": "^7.0",
"squizlabs/php_codesniffer": "^3.0.2",
"symfony/dom-crawler": "^4.3"
},
"autoload": {
"files": [
"ProcessMaker/Helper/helper.php"
],
"classmap": [
"database/seeds",
"database/factories"
],
"psr-4": {
"ProcessMaker\": [
"ProcessMaker/"
]
}
},
"autoload-dev": {
"psr-4": {
"Tests\": "tests/"
}
},
"extra": {
"laravel": {
"dont-discover": [
"laravel/dusk",
"laravel/passport"
]
}
},
"scripts": {
"post-root-package-install": [
"@php -r "file_exists('.env') || copy('.env.example', '.env');""
],
"post-create-project-cmd": [
"@php artisan key:generate"
],
"post-autoload-dump": [
"Illuminate\Foundation\ComposerScripts::postAutoloadDump",
"@php artisan package:discover"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true,
"allow-plugins": {
"typo3/class-alias-loader": false
}
}
}
Here is my configuration:
PHP: 8.3.9
Laravel: 11.17.0
Composer : 2.7.7
I tried to downgrade the PHP and Laravel versions but nothing worked really