Skip to content

Commit 18f17c8

Browse files
fix warning
1 parent cb210d4 commit 18f17c8

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/Core/Scan/Processor/NoProxyInCommands.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function getIdentifier(): string
2020
*/
2121
public function process(array $files): void
2222
{
23-
foreach ($files['di'] as $file) {
23+
foreach ($files['di'] ?? [] as $file) {
2424
$previousUseErrors = libxml_use_internal_errors(true);
2525
$content = simplexml_load_file($file);
2626
libxml_clear_errors();

src/Core/Scan/Processor/ProxyForHeavyClasses.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class ProxyForHeavyClasses extends AbstractProcessor
2222
*/
2323
private array $heavyClassPatterns = [
2424
'Session',
25+
'Collection',
2526
];
2627

2728
private array $processedFiles = [];

0 commit comments

Comments
 (0)