Leaseweb / LswMemcacheBundle

Symfony bundle for Memcache Doctrine caching and session storage in the Web Debug Toolbar.
MIT License
202 stars 57 forks source link

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

Open pma-tvn opened 7 years ago

pma-tvn commented 7 years ago

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,

Glideh commented 7 years ago

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.