• Hello,

    I’m getting a syntax error in /vendor/composer/autoload_static.php, which is causing issues with a pre-commit git hook:

    $ php -l wp-content/plugins/fb-instant-articles/vendor/composer/autoload_static.php
    
    Parse error: parse error, expecting 
    ')' in wp-content/plugins/fb-instant-articles/vendor/composer/autoload_static.php on line 10
    Errors parsing wp-content/plugins/fb-instant-articles/vendor/composer/autoload_static.php

    What’s odd is the syntax seems fine. Is this something that could be fixed or does that autoload file get overwritten automatically? I’ve tried a couple different variations of that line but can’t yet get the php -l to stop thinking there’s a problem.

    • This topic was modified 8 years, 6 months ago by Brian Hogg.
Viewing 1 replies (of 1 total)
  • Thread Starter Brian Hogg

    (@brianhogg)

    Ah, the issue is due to the check happening under PHP 5.5, which does not allow an expression as the default value here.

    The plugin does seem to run okay (at least initially – I haven’t gone through a full setup of FB Instant Articles), but if this file needs to stay then a PHP version check should probably be added on activation?

Viewing 1 replies (of 1 total)
  • The topic ‘Syntax error in autoload_static.php’ is closed to new replies.