Skip to content

Commit 2e319a1

Browse files
committed
Fix missed conversion of old route rules
1 parent 60d6f82 commit 2e319a1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Extracting/Extractor.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ protected function iterateThroughStrategies(
229229
}
230230
} else {
231231
$strategyClass = $strategyClassOrTuple;
232-
$settings = $rulesToApply;
232+
$settings = self::transformOldRouteRulesIntoNewSettings($stage, $rulesToApply, $strategyClass);
233233
}
234234

235235
$strategy = new $strategyClass($this->config);
@@ -468,6 +468,8 @@ protected function mergeInheritedMethodsData(string $stage, ExtractedEndpointDat
468468
}
469469
}
470470

471+
// In the past, we defined rules at the `routes` level;
472+
// currently, they should be defined as parameters to the ResponseCalls strategy
471473
public static function transformOldRouteRulesIntoNewSettings($stage, $rulesToApply, $strategyName, $strategySettings = [])
472474
{
473475
if ($stage == 'headers' && Str::is('*RouteRules*', $strategyName)) {

0 commit comments

Comments
 (0)