This commit is contained in:
yunwuxin
2016-06-30 15:17:52 +08:00
parent 28da923d28
commit 391522fa6a

View File

@@ -82,7 +82,7 @@ EOF;
// dump($pathCode); // dump($pathCode);
if (!isset($classMap[$class])) { if (!isset($classMap[$class])) {
$classMap[$class] = $pathCode; $classMap[$class] = $pathCode;
} elseif ($this->io && $classMap[$class] !== $pathCode && !preg_match('{/(test|fixture|example|stub)s?/}i', strtr($classMap[$class] . ' ' . $path, '\\', '/'))) { } elseif ($classMap[$class] !== $pathCode && !preg_match('{/(test|fixture|example|stub)s?/}i', strtr($classMap[$class] . ' ' . $path, '\\', '/'))) {
$this->output->writeln( $this->output->writeln(
'<warning>Warning: Ambiguous class resolution, "' . $class . '"' . '<warning>Warning: Ambiguous class resolution, "' . $class . '"' .
' was found in both "' . str_replace(["',\n"], [ ' was found in both "' . str_replace(["',\n"], [