Problem/Motivation
syntax error, unexpected 'AccountInterface' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in docroot/modules/contrib/auto_username/src/Form/AutoUsernameSettingsForm.php on line 26
Steps to reproduce
Drupal version : 9.3.22
PHP V 7.3
Proposed resolution
Typed properties were introduced in PHP 7.4. In order to make the module for php 7.3.x remove properties type hints
i made simple patch for this action
| Comment | File | Size | Author |
|---|---|---|---|
| remove-properties-type-hints-in-php-7-3.patch | 773 bytes | g.mustapha |
Issue fork auto_username-3315236
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
g.mustapha commentedComment #5
jayelless commented@g.mustapha. Thanks for picking this up. I will apply this to the existing 8.x-1.x branch, but this change will not be in the 2.0.x branch that is being created to support D10 development.
Comment #6
g.mustapha commentedhappy to contribute :)
Comment #7
jayelless commented@g.mustapha Thanks for the offer, but the reason that the patch will not be in the 2.0.x branch is that D10 does not support older versions of PHP. It requires at least PHP 8.1, with 8.1.6 and above recommended.
Comment #9
liam morlandAt this point, when Drupal 8 and 9 are out-of-support, it would be reasonable to drop pre-Drupal 10 support and revert this change.
Comment #10
g.mustapha commentedyeh true