Motivation

I wanted to test the module but it gave me an syntax error on my php 8.2 installation

ParseError: syntax error, unexpected identifier "NAME_IP", expecting "="

Steps to reproduce

Install module on php 8.2

Proposed resolution

Declare a minimum php version in the info.yml or better in a composer.json
PHP 8.3 should be the minimum, when scalar type for constants were introduced

https://www.php.net/manual/en/language.oop5.constants.php

Remaining tasks

Code

Comments

rodrigoaguilera created an issue.

sandervancamp’s picture

Increased minimum php version to 8.3
Solved: https://www.drupal.org/project/magic_login_link/issues/3586231