Skip to content

Commit

Permalink
rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikbosch committed Aug 14, 2024
1 parent a86d223 commit 409f0d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ClassScanner/ClassMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function getAttributeSpecifications(): array
return \array_merge([], ...array_values($this->classesToAttributes));
}

public function fileContainsAttributeClass(string $filename): bool
public function isAttributeClassFile(string $filename): bool
{
if (!\array_key_exists($filename, $this->filesToClass)) {
return false;
Expand Down
2 changes: 1 addition & 1 deletion src/ClassScanner/ComposerMapGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function update(ClassMap $classMap, array $updatedFiles): ClassMap
foreach ($updatedFiles as $index => $updatedFile) {
if ($this->basePath !== '' && \str_starts_with($updatedFile, $this->basePath)) {
$updatedFiles[$index] = \substr($updatedFile, \strlen($this->basePath));
$shouldFullGenerate = $shouldFullGenerate || $classMap->fileContainsAttributeClass($updatedFiles[$index]);
$shouldFullGenerate = $shouldFullGenerate || $classMap->isAttributeClassFile($updatedFiles[$index]);
}
}

Expand Down

0 comments on commit 409f0d0

Please sign in to comment.