Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

Bundle requires PHP >= 5.4, not >= 5.3 #94

Open
pma-tvn opened this issue Mar 24, 2017 · 1 comment
Open

Bundle requires PHP >= 5.4, not >= 5.3 #94

pma-tvn opened this issue Mar 24, 2017 · 1 comment

Comments

@pma-tvn
Copy link

pma-tvn commented Mar 24, 2017

https://github.com/LeaseWeb/LswMemcacheBundle/blob/v2.1.11/Command/ClearCommand.php line 71 uses new object syntax which is available since PHP 5.4.
http://php.net/manual/en/migration54.new-features.php

Problem: If you have PHP 5.3.* on your server, then you have to hardcode LswMemcacheBundle version to 2.1.8, because it's last one with correct PHP requirement,

d3f3kt added a commit to d3f3kt/LswMemcacheBundle that referenced this issue Jun 2, 2017
Add PHP 5.3 support by removing the direct class instantiation access.
@Glideh
Copy link

Glideh commented Nov 10, 2017

This syntax can also be found in Command\StatisticsCommand::interact
I too have this issue trying to use the bundle in a old installation (php 5.3.10)
I'd like to avoid going back to 2.1.8 if possible.

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

No branches or pull requests

2 participants