Skip to content
This repository has been archived by the owner on Aug 22, 2022. It is now read-only.

Incompatible with PHP 5.3 #7

Closed
certainlyakey opened this issue Sep 28, 2016 · 2 comments
Closed

Incompatible with PHP 5.3 #7

certainlyakey opened this issue Sep 28, 2016 · 2 comments
Labels

Comments

@certainlyakey
Copy link

My server environment has PHP 5.3 installed. The plugin gave me the Parse error: syntax error, unexpected '[' in .../plugins/relabel/RelabelPlugin.php on line 192 error. Could it be easily made compatible? Two Craft CMS plugins recently (CategorySources and CPFieldLinks) had the same problem, and it seems all that has been required was to change array syntax (see here).

@benjamminf
Copy link
Contributor

Honestly, I'm not sure. I never code for 5.3, as I tend to take advantage of things like array dereferencing and shorthand array syntax. Looking at http://php.net/manual/en/migration54.new-features.php it might only be that particular line preventing 5.3 compatibility. But I have no plans to officially support 5.3, and I encourage you to upgrade if you're able to as Craft 3 is also dropping support.

That said, if you want to make the change yourself and see if it works on 5.3, I'll be happy to merge it into the plugin.

@ttempleton
Copy link
Contributor

Closing this issue due to Relabel for Craft 2 being retired and Field Labels' inability to support PHP 5.3 given Craft 3's requirement of PHP 7.0+.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants