diff --git a/lib/manager/composer/range.spec.ts b/lib/manager/composer/range.spec.ts index 2f1d3621e0..ad94f004fe 100644 --- a/lib/manager/composer/range.spec.ts +++ b/lib/manager/composer/range.spec.ts @@ -41,4 +41,14 @@ describe('manager/composer/range', () => { const config: RangeConfig = { rangeStrategy: 'auto', depType: 'require' }; expect(getRangeStrategy(config)).toBe('replace'); }); + it('defaults to widen for TYPO3 extensions', () => { + const config: RangeConfig = { + managerData: { + composerJsonType: 'typo3-cms-extension', + }, + rangeStrategy: 'auto', + depType: 'require', + }; + expect(getRangeStrategy(config)).toBe('widen'); + }); }); diff --git a/lib/manager/composer/range.ts b/lib/manager/composer/range.ts index 0b9936cfdf..dbbca8c541 100644 --- a/lib/manager/composer/range.ts +++ b/lib/manager/composer/range.ts @@ -42,7 +42,7 @@ export function getRangeStrategy(config: RangeConfig): RangeStrategy { logger.trace({ dependency: depName }, 'Pinning app require'); return 'pin'; } - if (isComplexRange) { + if (isComplexRange || ['typo3-cms-extension'].includes(composerJsonType)) { return 'widen'; } return 'replace';