Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

Commit

Permalink
Fix: Do not verify whether exclude classes exist
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Sep 19, 2017
1 parent 32d4758 commit 5297e00
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,17 +121,6 @@ final protected function assertClassesSatisfySpecification(callable $specificati

$directory = \realpath($directory);

$nonExistentExcludeClassNames = \array_filter($excludeClassNames, function (string $excludeClassName) {
return false === \class_exists($excludeClassName);
});

if (0 < \count($nonExistentExcludeClassNames)) {
throw new \InvalidArgumentException(\sprintf(
'Exclude class names need to be specified as existing classes, but "%s" does not exist.',
\implode('", "', $excludeClassNames)
));
}

$classFileLocator = new File\ClassFileLocator($directory);

/** @var File\PhpClassFile[] $classFiles */
Expand Down

0 comments on commit 5297e00

Please sign in to comment.