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 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 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 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