From 9c16b666f77957cbb1afa2af5eb128800c7f77fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ste=CC=81phane=20Goetz?= Date: Wed, 21 Oct 2015 21:41:42 +0200 Subject: [PATCH] Fix bug on PHP 5.4 and document the minimum version --- README.md | 4 ++-- libs/Tree/Builder.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4acaf7f..63aafec 100755 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ Do you use Daux.io? Send me a pull request or open an [issue](https://github.com ## Download -Download this repository as a zip, and unpack. Copy the files to a web server that can run PHP 5.3 or greater. You can also run the documentation locally using Grunt.js, which is covered at the end of this readme. +Download this repository as a zip, and unpack. Copy the files to a web server that can run PHP 5.4 or greater. You can also run the documentation locally using Grunt.js, which is covered at the end of this readme. ## Folders @@ -280,7 +280,7 @@ Directory structure: ## Running Remotely -Copy the files from the repo to a web server that can run PHP 5.3 or greater. +Copy the files from the repo to a web server that can run PHP 5.4 or greater. ## Running Locally diff --git a/libs/Tree/Builder.php b/libs/Tree/Builder.php index 7a44548..77501f3 100644 --- a/libs/Tree/Builder.php +++ b/libs/Tree/Builder.php @@ -58,7 +58,7 @@ class Builder */ public static function build($node, $ignore) { - if (!$it = new \FilesystemIterator($node->getPath())) { + if (($it = new \FilesystemIterator($node->getPath())) == false) { return; }