Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Getting error on module install.
PHP Fatal error: Default value for parameters with a class type hint can only be NULL in /modules/contrib/select_translation/select_translation.module
Comment | File | Size | Author |
---|---|---|---|
#2 | fatal-error-argument-hint-2879534.patch | 849 bytes | miteshmap |
Comments
Comment #2
miteshmapComment #3
miteshmapComment #4
ao2 CreditAttribution: ao2 as a volunteer commented@miteshmap, the patch looks good, thanks.
I think this error only triggers with PHP < 7.0 because I have never seen it here (PHP 7.0.19).
Can you confirm that? What version of PHP are you using?
I'd like to put this info in the commit message.
If the full error message contains the line numbers, please paste that too.
Ciao ciao,
Antonio
Comment #5
miteshmap@ao2: Yes, That's the issue I think, As of now I'm using PHP 5.6
Comment #6
ao2 CreditAttribution: ao2 as a volunteer commentedOK, thanks for confirming.
I'll test and push the patch soon.
If you can get the full error message with the line numbers in it please post that too.
Comment #8
ao2 CreditAttribution: ao2 as a volunteer commentedI pushed the fix with a more detailed commit message.
I am going to tag a stable release soon.
Ciao,
Antonio
Comment #9
miteshmapThanks Antonio :)
Comment #11
miteshmap