- Issue created by @rudy.barrett
- 🇮🇳India dineshkumarbollu
This issue is getting because
int|string
not a valid syntax. we can usemixed
type instead. - Status changed to Needs review
about 1 year ago 10:03am 17 August 2023 - 🇺🇸United States rudy.barrett
Above PAtch works, however it looks like that is not the only instance.
ParseError: syntax error, unexpected '|', expecting variable (T_VARIABLE) in Composer\Autoload\includeFile() (line 275 of /opigno_module/src/Entity/UserModuleStatus.php)
ParseError: syntax error, unexpected '|', expecting variable (T_VARIABLE) in Composer\Autoload\includeFile() (line 118 of /opigno_module/src/Entity/UserModuleStatusInterface.php)
ParseError: syntax error, unexpected ')', expecting variable (T_VARIABLE) in Composer\Autoload\includeFile() (line 543 of /opigno_learning_path/src/Services/LearningPathContentService.php)
And it's possible there are more, those are just the first 3 I found. I don't think this version of Opigno LMS is compatible with PHP 7.4.
Maybe another solution would be to put in a PHP8.0 restriction on the update/install.