cache icon indicating copy to clipboard operation
cache copied to clipboard

FilesystemPool example

Open a1e7de48f89e opened this issue 7 years ago • 1 comments

I've noticed that the FilesystemPool example in the readme is incorrect:

<?php

$cache = new \duncan3dc\Cache\FilesystemPool;

There is no default for the expected $path parameter of the constructor, so it looks like a path needs to be provided, unless there is some magic behind mkdir() when passing in an undefined variable that I don't know about. 😄

I would propose either updating the example so it shows the correct usage or changing FilesystemPool so it uses an appropriate default (a subdirectory of the system temp directory?) if no path is provided.

a1e7de48f89e avatar May 06 '19 07:05 a1e7de48f89e

Good catch! I've updated the examples in the readme now (8c88926b03d401a98b98d2ec6cc7556e4a87e453)

duncan3dc avatar Oct 05 '19 10:10 duncan3dc