Skip to content

Commit

Permalink
ResultCacheManager: read also config.rules (#594)
Browse files Browse the repository at this point in the history
* ResultCacheManager: read also config.rules

* Support old PHP
  • Loading branch information
janedbal committed Jul 27, 2021
1 parent 5606520 commit 111bda6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Analyser/ResultCache/ResultCacheManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,10 @@ private function getProjectExtensionFiles(?array $projectConfig, array $dependen
$this->alreadyProcessed = [];
$projectExtensionFiles = [];
if ($projectConfig !== null) {
$services = $projectConfig['services'] ?? [];
$services = array_merge(
$projectConfig['services'] ?? [],
$projectConfig['rules'] ?? []
);
foreach ($services as $service) {
$classes = $this->getClassesFromConfigDefinition($service);
if (is_array($service)) {
Expand Down

0 comments on commit 111bda6

Please sign in to comment.