elisseck / com.elisseck.civihoneypot

Simple honeypot fields for CiviCRM Contribute forms
Other
3 stars 6 forks source link

Avoid parse errors with PHP 7.2 #15

Closed kenwest closed 3 years ago

kenwest commented 3 years ago

With PHP 7.4 the code works as expected but fails with PHP 7.2. A parse error is raised because another argument is expected after the comma.

elisseck commented 3 years ago

@kenwest looks good, thanks for catching that for folks who absolutely can't upgrade past 7.2 for whatever wild reason. I feel for them xD.