Skip to content

Commit 046074b

Browse files
committed
[ci-review] Rector Rectify
1 parent c7ea416 commit 046074b

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/Caching/Config/FileHashComputer.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
/**
1313
* Inspired by https://github.com/symplify/easy-coding-standard/blob/e598ab54686e416788f28fcfe007fd08e0f371d9/packages/changed-files-detector/src/FileHashComputer.php
1414
*/
15-
final class FileHashComputer
15+
final readonly class FileHashComputer
1616
{
1717
/**
1818
* @param CacheMetaExtensionInterface[] $cacheMetaExtensions
1919
*/
2020
public function __construct(
21-
private readonly array $cacheMetaExtensions = []
21+
private array $cacheMetaExtensions = []
2222
) {
2323
}
2424

@@ -34,8 +34,8 @@ public function compute(string $filePath): string
3434
private function computeExtensionHash(): string
3535
{
3636
$extensionHash = '';
37-
foreach ($this->cacheMetaExtensions as $cacheMetaExtension) {
38-
$extensionHash .= $cacheMetaExtension->getKey() . ':' . $cacheMetaExtension->getHash();
37+
foreach ($this->cacheMetaExtensions as $cacheMetumExtension) {
38+
$extensionHash .= $cacheMetumExtension->getKey() . ':' . $cacheMetumExtension->getHash();
3939
}
4040

4141
return $extensionHash;

src/Configuration/RectorConfigBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,8 @@ public function __invoke(RectorConfig $rectorConfig): void
322322
$rectorConfig->containerCacheDirectory($this->containerCacheDirectory);
323323
}
324324

325-
foreach ($this->cacheMetaExtensions as $cacheMetaExtensionClass) {
326-
$rectorConfig->cacheMetaExtension($cacheMetaExtensionClass);
325+
foreach ($this->cacheMetaExtensions as $cacheMetumExtension) {
326+
$rectorConfig->cacheMetaExtension($cacheMetumExtension);
327327
}
328328

329329
if ($this->importNames || $this->importDocBlockNames) {

0 commit comments

Comments
 (0)