*/
class MapCacheLRU {
/** @var array */
- protected $cache = array(); // (key => value)
+ protected $cache = []; // (key => value)
protected $maxCacheKeys; // integer; max entries
*/
public function clear( $keys = null ) {
if ( $keys === null ) {
- $this->cache = array();
+ $this->cache = [];
} else {
foreach ( (array)$keys as $key ) {
unset( $this->cache[$key] );