Unexpected T_CONST #3023
Labels
guidance
Question that needs advice or information.
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
Parse error: syntax error, unexpected 'const' (T_CONST), expecting variable (T_VARIABLE) in /var/www/rhythmUtils/RhythmWebApp/frontend/api/profile/aws/Aws/S3/S3Client.php on line 237
This issue arises when I go to upload an image via the SDK.
Heres my code:
require 'aws/aws-autoloader.php';
Regression Issue
Expected Behavior
Image should have uploaded correctly, however, that error is produced when i go to upload. I have attached a copy of the code i used to recreate this issue
Current Behavior
Parse error: syntax error, unexpected 'const' (T_CONST), expecting variable (T_VARIABLE) in /var/www/rhythmUtils/RhythmWebApp/frontend/api/profile/aws/Aws/S3/S3Client.php on line 237
Reproduction Steps
I attached the code I used to upload the image
Possible Solution
No response
Additional Information/Context
No response
SDK version used
3.325.4
Environment details (Version of PHP (
php -v
)? OS name and version, etc.)PHP 7.0.33-0ubuntu0.16.04.16 (cli) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies with Zend OPcache v7.0.33-0ubuntu0.16.04.16, Copyright (c) 1999-2017, by Zend Technologies
The text was updated successfully, but these errors were encountered: