The latest stable release
1.1.3 →
says it is works with Drupal ^10.3 || ^11. Per
Drupal's PHP requirements →
, it is possible to run Drupal 10.3 through 10.5 with PHP 8.1+. In
✨
Improve classes UI
Active
typed class constants were introduced. This feature requires PHP 8.3+. A site running Drupal 10.5 on PHP 8.1 throws a fatal error when using LMS 1.1.3
ParseError: syntax error, unexpected identifier "CLASS_NO_STATE", expecting "=" in Composer\Autoload\{closure}() (line 20 of /var/www/html/web/modules/contrib/lms/modules/lms_classes/src/Service/ClassNameGenerator.php).
This comes from web/modules/contrib/lms/modules/lms_classes/src/Service/ClassNameGenerator.php:
final class ClassNameGenerator {
private const string CLASS_NO_STATE = 'lms_classes_class_number';
Set the minimum PHP requirement to 8.3 in composer.json or remove code that is not compatible with PHP 8.1 (to match Drupal core supported PHP versions).
Also, consider adding version constraints for Drupal itself in composer.json
Decide on which approach to follow.
Active
1.1
Other backend
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.