Unexpected identifier "CONFIG_NAME" - fatal error on PHP8.1
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3537916. --> Reported by: [mgaskey](https://www.drupal.org/user/3662560) Related to !11 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>The latest version update to 1.3.0 includes a line of code that causes a PHP Fatal Exception when using PHP &lt; 8.3. This change should not have been pushed without a PHP version constraint in the composer.json.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p>Using PHP &lt; 8.3, update module to 1.3.0, attempt a cache clear.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Either 1 of 2 solutions is possible:</p> <p>1. Remove the <code>string</code> declaration on the <code>public const CONFIG_NAME</code> declaration.<br> 2. Add a PHP &gt;= 8.3 constraint to the composer.json file.</p> > Related issue: [Issue #3076725](https://www.drupal.org/node/3076725)
issue