Fixed bug.

This commit is contained in:
李铭昕 2020-04-18 14:14:32 +08:00
parent 5f0d45ff23
commit 3f334d84d1

View File

@ -94,7 +94,7 @@ class Scanner
$cached = $this->deserializeCachedCollectors($collectors);
if (! $cached) {
foreach ($classes as $reflectionClass) {
if (Str::contains($reflectionClass->getName(), $shouldCached)) {
if (Str::startsWith($reflectionClass->getName(), $shouldCached)) {
$this->collect($annotationReader, $reflectionClass);
}
}
@ -112,7 +112,7 @@ class Scanner
}
foreach ($classes as $reflectionClass) {
if (Str::contains($reflectionClass->getName(), $shouldCached)) {
if (Str::startsWith($reflectionClass->getName(), $shouldCached)) {
continue;
}