Skip to content

Commit 606f5bb

Browse files
authored
Fixed bug that the configurations will be cleared when the scan configuration does not exist. (#6609)
1 parent e042ac1 commit 606f5bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Annotation/ScanConfig.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ private static function initConfigByFile(string $configDir): array
135135
private static function allocateConfigValue(array $content, array $config): array
136136
{
137137
if (! isset($content['scan'])) {
138-
return [];
138+
return $config;
139139
}
140140
foreach ($content['scan'] as $key => $value) {
141141
if (! isset($config[$key])) {

0 commit comments

Comments
 (0)