diff options
author | Remi Collet <remi@remirepo.net> | 2017-12-13 15:45:49 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2017-12-13 15:45:49 +0100 |
commit | c6c67c46ee89aa6007fc9a023a7d4b47afb6e184 (patch) | |
tree | 0588156103704d8710211856b574e38671096a80 /27.patch | |
parent | 13b7f9833f0e9ee5827a2a2786227b04629e0b7b (diff) |
fix regression with cache configuration from https://github.com/llaville/php-reflect/pull/27
Diffstat (limited to '27.patch')
-rw-r--r-- | 27.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/27.patch b/27.patch new file mode 100644 index 0000000..12ebe25 --- /dev/null +++ b/27.patch @@ -0,0 +1,30 @@ +From a24e257e3f4975723e3176942ca9bcafb4222429 Mon Sep 17 00:00:00 2001 +From: Remi Collet <remi@remirepo.net> +Date: Wed, 13 Dec 2017 15:37:15 +0100 +Subject: [PATCH] Fix #26 regression with previous cache configuration + +--- + src/Bartlett/Reflect/Plugin/PluginManager.php | 10 ++++++---- + 1 file changed, 6 insertions(+), 4 deletions(-) + +diff --git a/src/Bartlett/Reflect/Plugin/PluginManager.php b/src/Bartlett/Reflect/Plugin/PluginManager.php +index 483b200..fdf19c5 100644 +--- a/src/Bartlett/Reflect/Plugin/PluginManager.php ++++ b/src/Bartlett/Reflect/Plugin/PluginManager.php +@@ -68,10 +68,12 @@ public function registerPlugins() + if (class_exists($plugin['class'])) { + if (isset($plugin['options'])) { + $options = $plugin['options']; +- if (is_string($options) && class_exists($options)) { +- $options = new $options; +- } else { +- $options = null; ++ if (is_string($options)) { ++ if (class_exists($options)) { ++ $options = new $options; ++ } else { ++ $options = null; ++ } + } + } else { + $options = null; |