Skip to content

ISN-6794 - Fix syntax error since PHP 8 doesn't allow { to refer to array indexes #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

jbranca
Copy link

@jbranca jbranca commented Jan 23, 2024

Fixes this error in Datadog:

E_COMPILE_ERROR: Array and string offset access syntax with curly braces is no longer supported
#0 /var/www/isn/vendor/inspectionsupport/pegasusphp.org/includes/PHPExcel-1.8.1/Classes/PHPExcel/Autoloader.php(36): PHPExcel_Autoloader::Load()
#1 /var/www/isn/vendor/inspectionsupport/pegasusphp.org/includes/PHPExcel-1.8.1/Classes/PHPExcel.php(32): require()
#2 /var/www/isn/www/src/HmInspectionLogController.php(3): require_once()
#3 /var/www/isn/vendor/composer/ClassLoader.php(576): include()
#4 /var/www/isn/vendor/composer/ClassLoader.php(427): Composer\Autoload{closure}()
#5 [internal function]: Composer\Autoload\ClassLoader->loadClass()
#6 /var/www/isn/vendor/inspectionsupport/pegasusphp.org/objects/SimpleRouter.php(286): class_exists()
#7 /var/www/isn/vendor/inspectionsupport/pegasusphp.org/objects/SimpleRouter.php(313): SimpleRouter::dispatch()
#8 /var/www/isn/www/index.php(645): SimpleRouter::process()
cbschuld#9 {main}

Ticket

@jbranca jbranca changed the title Fix syntax error since PHP 8 doesn't allow { to refer to array indexes ISN-6794 - Fix syntax error since PHP 8 doesn't allow { to refer to array indexes Jan 23, 2024
@alexgv14
Copy link

@jbranca can you merge this and make a release for it please?

@jbranca jbranca merged commit 9494ce1 into master Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants