summaryrefslogtreecommitdiffstats
path: root/php-bartlett-PHP-Reflect-3.0.0-fix.patch
blob: f3a23cd9e2492b5b4c9e7e0d76f92b8ab5e646f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff -up src/Bartlett/Reflect/Output/Analyser.php.orig src/Bartlett/Reflect/Output/Analyser.php
--- src/Bartlett/Reflect/Output/Analyser.php.orig	2015-02-23 19:34:38.068134005 +0100
+++ src/Bartlett/Reflect/Output/Analyser.php	2015-02-23 19:35:15.053282071 +0100
@@ -95,12 +95,12 @@ class Analyser extends OutputFormatter
                 continue;
             }
             $baseNamespace = str_replace(
-                'Analyser\\' . basename($analyserName),
+                'Analyser\\' . basename(str_replace('\\', '/', $analyserName)),
                 '',
                 $analyserName
             );
             $outputFormatter = $baseNamespace . 'Console\Formatter\\' .
-                substr(basename($analyserName), 0, -8) . 'OutputFormatter';
+                substr(basename(str_replace('\\', '/', $analyserName)), 0, -8) . 'OutputFormatter';
 
             if (class_exists($outputFormatter)) {
                 $obj = new $outputFormatter();