From 21084eb9e6c117f5236969532d00ed2750cd1617 Mon Sep 17 00:00:00 2001 From: Matthias Mullie Date: Wed, 25 Oct 2017 13:13:12 +0200 Subject: [PATCH] Fix PHP5.3 compatibility Yet another ugly workaround... Fixes #208 --- src/JS.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/JS.php b/src/JS.php index 83ba16a..d553c09 100644 --- a/src/JS.php +++ b/src/JS.php @@ -120,9 +120,13 @@ class JS extends Minify protected $operatorsAfter = array(); /** + * Public property so it can be accessed from inside the closure in + * extractRegex. Once PHP5.3 compatibility is dropped, we can make this + * property protected again. + * * @var array */ - protected $nestedExtracted = array(); + public $nestedExtracted = array(); /** * {@inheritdoc}