indieweb / wordpress-micropub

A Micropub Endpoint plugin for WordPress
https://wordpress.org/plugins/micropub
51 stars 12 forks source link

Handle PHP 5.6 incompatibility #286

Closed snarfed closed 1 year ago

snarfed commented 1 year ago

From #285:

Does the code maybe no longer support PHP 5.6? ...Confirmed, the last merged PR (https://github.com/indieweb/wordpress-micropub/pull/282) did the same thing, passed on PHP 7.2 but failed on 5.6: https://github.com/indieweb/wordpress-micropub/actions/runs/3175919981

So we'll probably want to either raise the required PHP version or fix that incompatibility

Full error text:

PHP Parse error:  syntax error, unexpected '[' in /home/runner/work/wordpress-micropub/wordpress-micropub/includes/class-micropub-endpoint.php on line 719

cc @dshanske

dshanske commented 1 year ago

Resolved via #287