summaryrefslogtreecommitdiffstats
path: root/php-bartlett-PHP-Reflect-3.0.0-pr17.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-01-20 10:10:54 +0100
committerRemi Collet <fedora@famillecollet.com>2015-01-20 10:10:54 +0100
commitac2d615b6b59328ad9e5f396201469428844f5f5 (patch)
tree2ab584fefdc4ba9ddb654634bfe0d2e5db26f75f /php-bartlett-PHP-Reflect-3.0.0-pr17.patch
parent9e363c6e1fa6e0eb430185d5fc28607ea4102d06 (diff)
php-bartlett-PHP-Reflect: fix composer only code
Diffstat (limited to 'php-bartlett-PHP-Reflect-3.0.0-pr17.patch')
-rw-r--r--php-bartlett-PHP-Reflect-3.0.0-pr17.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/php-bartlett-PHP-Reflect-3.0.0-pr17.patch b/php-bartlett-PHP-Reflect-3.0.0-pr17.patch
new file mode 100644
index 0000000..ec31de7
--- /dev/null
+++ b/php-bartlett-PHP-Reflect-3.0.0-pr17.patch
@@ -0,0 +1,33 @@
+From 6f0959bceb5f4f07971d74fe0f2d47e5113e09ad Mon Sep 17 00:00:00 2001
+From: Remi Collet <fedora@famillecollet.com>
+Date: Tue, 20 Jan 2015 09:42:46 +0100
+Subject: [PATCH] fix "composer only" bug, rely in include_path
+
+---
+ src/Bartlett/Reflect/Api/V3/Analyser.php | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/src/Bartlett/Reflect/Api/V3/Analyser.php b/src/Bartlett/Reflect/Api/V3/Analyser.php
+index 373070b..5a78942 100644
+--- a/src/Bartlett/Reflect/Api/V3/Analyser.php
++++ b/src/Bartlett/Reflect/Api/V3/Analyser.php
+@@ -65,6 +65,7 @@ public function run($source, array $analysers, $alias)
+
+ protected function registerAnalysers()
+ {
++ $file = 'Bartlett/CompatInfo/Analyser/CompatibilityAnalyser.php';
+ $reflectBaseDir = dirname(dirname(dirname(dirname(dirname(__DIR__)))));
+
+ $baseDir = dirname(dirname(dirname($reflectBaseDir)));
+@@ -77,7 +78,11 @@ protected function registerAnalysers()
+ $namespaces['Bartlett\CompatInfo\Analyser']
+ = $baseDir . '/src/Bartlett/CompatInfo/Analyser'
+ ;
++ } else if ($path = stream_resolve_include_path($file)) {
++ // CompatInfo only, without composer
++ $namespaces['Bartlett\CompatInfo\Analyser'] = dirname($path);
+ }
++
+ $am = new AnalyserManager($namespaces);
+ $am->registerAnalysers();
+