• Resolved Creative Slice

    (@creativeslice)


    After updating to Gravity PDF 6.2.1 we are no longer able to deploy code to our Host (WPEngine.com) with PHP_LINT on.

    The follow errors are coming from monolog code which does not appear to work with PHP 8:

    
    PHP Parse error:  syntax error, unexpected 'public' (T_PUBLIC), expecting variable (T_VARIABLE) in ./wp-content/plugins/gravity-forms-pdf-extended/vendor_prefixed/monolog/src/Monolog/Attribute/AsMonologProcessor.php on line 30
    Errors parsing ./wp-content/plugins/gravity-forms-pdf-extended/vendor_prefixed/monolog/src/Monolog/Attribute/AsMonologProcessor.php
    
Viewing 1 replies (of 1 total)
  • Plugin Author Jake Jackson

    (@blue-liquid-designs)

    Thanks for reporting this error.

    From the research I’ve done, the code that triggers this parse error is only PHP8+ compatible, so the lint check being auto-run on deployment must be using PHP7.x.

    That particular file isn’t actually used by Gravity PDF, so there isn’t a chance the error will occur outside of CLI tools running the PHP parser on all files. That said, it would be good to fix so you don’t have any auto-deployment issues in the future.

    I see the Monolog team have released a new version that fixes the PHP parse error. We’ll include this update in Gravity PDF 6.3, which is currently in active development and will be released next month.

    Please let me know if you’ve any further questions.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Parse error: syntax error (PHP 8)’ is closed to new replies.