Open
Description
Description
It would be nice if the methods inside the Filesystem class were all static, so you can call them without having to create an instance of that class.
Having to construct the class has no real benefit, it has no state inside the class
Example
// Instead of this
$fs = new Filesystem();
$fs->mkdir('foo');
// Or
(new Filesystem)->mkdir('foo');
// do directly this
Filesystem::mkdir('foo');