Update all non-major dependencies #20
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate/all-minor-patch"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
7.4.1→7.6.04.0.0→4.1.13.1.0→3.2.09.9.0→9.14.18.67.0→8.74.010.8.1→10.15.0v1.3.2→v1.3.6v1.8.7→v1.9.110.5.64→10.5.672.6.2→2.8.57.3.6→7.3.83.5.41→3.5.46Release Notes
nextcloud-libraries/nextcloud-dialogs (@nextcloud/dialogs)
v7.6.0Compare Source
Notes
The reworked toast notifications from v7.5.0 were considered a breaking change and are moved to v8.
This version restores the previous
toastify-jsbased toasts and removes the toast timeout configuration.If your app only needs toasts, you can import them from the
@nextcloud/dialogs/toastentry point instead.(Note: Webpack issue - bundler might include other components source, e.g. the FilePicker, in the app)
Added
Fixed
useDAVFiles#2511 (DerDreschner)@nextcloud/dialogs/style.cssoutput #2672 (Antreesy)Changed
v7.5.0Compare Source
Notes
This version include some reworked - and accessible - toast notifications.
Those new toast messages will be displayed on the bottom start of the page,
this is by design and not a bug.
Added
Fixed
nextcloud-libraries/nextcloud-files (@nextcloud/files)
v4.1.1Compare Source
🐛 Fixed bugs
resultToNode(#1778)Other changes
@nextcloud/routerto 3.2.0 (#1761)axiosto 1.20.0 (#1766)dompurifyto 3.4.16 (#1767)markdown-itto 14.3.2 (#1769)webdavto 5.11.0 (#1760)v4.1.0Compare Source
🚀 Enhancements
@nextcloud/upload(#1509)🐛 Fixed bugs
rootandretriesupload options (#1745)signalupload option actually cancel the upload (#1747)Other changes
@nextcloud/authto 2.6.0@nextcloud/axiosto 2.6.0@nextcloud/sharingto 0.4.0@nextcloud/pathsto 3.1.0axiosto 1.18.1dompurifyto 3.4.13fast-xml-builderto 1.2.0immutableto 5.1.5p-queueto 9.3.3nextcloud-libraries/nextcloud-router (@nextcloud/router)
v3.2.0Compare Source
Full Changelog
Added
Fixed
generateUrlin non-DOM environment and improve environment issues exceptions #845 (ShGKme)Changed
nextcloud-libraries/nextcloud-vue (@nextcloud/vue)
v9.14.1Compare Source
Full Changelog
🐛 Fixed bugs
Other Changes
@nextcloud/dialogs: ^7.4.0 || ^8.0.0#9130 (Antreesy)v9.14.0Compare Source
Full Changelog
🚀 Enhancements
allowInInputoption to allow hotkey while focus is on an input field #9014 (SebastianKrupinski)🐛 Fixed bugs
[object Object]#9051 (pringelmann)Other Changes
v9.13.1Compare Source
Full Changelog
🐛 Fixed bugs
afterShowandafterHideevents are not fired withfloating-vue>= 5.3.0 #8994 (rotdrop)appendToBodybreakingz-index#8996 (ShGKme)Other changes
v9.13.0Compare Source
Full Changelog
🚀 Enhancements
🐛 Fixed bugs
navigation-toggledon mobile change #8353 (skjnldsv)Other Changes
<script setup>#8864 (susnux)@nextcloud/filesto v4.1.0 #8972 (susnux)v9.12.0Compare Source
Full Changelog
🚀 Enhancements
@nextcloud/upload#7882 (susnux)🐛 Fixed bugs
Other Changes
v9.11.0Compare Source
Full Changelog
🚀 Enhancements
🐛 Fixed bugs
v9.10.0Compare Source
Full Changelog
🚀 Enhancements
🐛 Fixed bugs
Other Changes
typescript-eslint/typescript-eslint (@typescript-eslint/parser)
v8.74.0Compare Source
🩹 Fixes
❤️ Thank You
See GitHub Releases for more information.
You can read about our versioning strategy and releases on our website.
v8.73.0Compare Source
This was a version bump only for parser to align it with other projects, there were no code changes.
See GitHub Releases for more information.
You can read about our versioning strategy and releases on our website.
v8.72.2Compare Source
This was a version bump only for parser to align it with other projects, there were no code changes.
See GitHub Releases for more information.
You can read about our versioning strategy and releases on our website.
v8.72.1Compare Source
This was a version bump only for parser to align it with other projects, there were no code changes.
See GitHub Releases for more information.
You can read about our versioning strategy and releases on our website.
v8.72.0Compare Source
This was a version bump only for parser to align it with other projects, there were no code changes.
See GitHub Releases for more information.
You can read about our versioning strategy and releases on our website.
v8.71.2Compare Source
This was a version bump only for parser to align it with other projects, there were no code changes.
See GitHub Releases for more information.
You can read about our versioning strategy and releases on our website.
v8.71.1Compare Source
This was a version bump only for parser to align it with other projects, there were no code changes.
See GitHub Releases for more information.
You can read about our versioning strategy and releases on our website.
v8.71.0Compare Source
This was a version bump only for parser to align it with other projects, there were no code changes.
See GitHub Releases for more information.
You can read about our versioning strategy and releases on our website.
v8.70.1Compare Source
This was a version bump only for parser to align it with other projects, there were no code changes.
See GitHub Releases for more information.
You can read about our versioning strategy and releases on our website.
v8.70.0Compare Source
This was a version bump only for parser to align it with other projects, there were no code changes.
See GitHub Releases for more information.
You can read about our versioning strategy and releases on our website.
v8.69.0Compare Source
This was a version bump only for parser to align it with other projects, there were no code changes.
See GitHub Releases for more information.
You can read about our versioning strategy and releases on our website.
v8.68.0Compare Source
This was a version bump only for parser to align it with other projects, there were no code changes.
See GitHub Releases for more information.
You can read about our versioning strategy and releases on our website.
eslint/eslint (eslint)
v10.15.0Compare Source
Features
ec52157feat: check proto and assignment targets infunc-names(#21521) (Lê Văn Xuân Hoàn)34a8b1bfeat: recognize string and computed keys inaccessor-pairsdescriptors (#21519) (Lê Văn Xuân Hoàn)663c825feat: handle TS type assertions inno-invalid-this(#21464) (Valentin)4941015feat: check individual specifier importKind inno-shadow(#21518) (Lê Văn Xuân Hoàn)17f17cdfeat: update error location to head fordefault-case(#21469) (Tanuj Kanti)Bug Fixes
23ac66cfix: update dependency @eslint/config-array to ^0.23.6 (#21550) (renovate[bot])df71e34fix: skipno-prototype-builtinssuggestion when object issuper(#21535) (KooYS)899065efix: preserve inlinetypemodifier inno-useless-renameautofix (#21527) (sethamus)af4c3a9fix: preserve TypeScript type parameters inprefer-arrow-callback(#21507) (Lê Văn Xuân Hoàn)b11bcb3fix: preserve necessary parens inno-unneeded-ternaryautofix (#21495) (Lê Văn Xuân Hoàn)7c7292efix: requireminimatch@11.0.1or higher to avoid CVE-2026-118764 (#21492) (nikolawork)Documentation
16eb1d9docs: remove Contributor Pool reference (#21539) (Nicholas C. Zakas)e368730docs: discourage non-serializable values in rule options (#21487) (Vitalii Maslianok)0146008docs: revamp code path analysis docs (#21423) (xbinaryx)aeb2267docs: revise AI acknowledgment options in templates (#21489) (lumir)e47a477docs: Update README (GitHub Actions Bot)11c66badocs: fix typo in custom rules documentation (#21472) (Pixel)Chores
480afadchore: update github/codeql-action action to v4.39.3 (#21533) (renovate[bot])fc3a99bchore: update ecosystem plugins (#21511) (ESLint Bot)8fe3ab9chore: replacegotwith Node.js nativefetch(#21505) (lumir)bdd4b1dci: bump pnpm/action-setup from 6.1.0 to 6.1.1 (#21499) (dependabot[bot])36db635ci: bump github/codeql-action from 4.39.1 to 4.39.2 (#21500) (dependabot[bot])19211b3chore: replacefs-teardownwith Node.js native APIs (#21488) (lumir)bbede5echore: enforcerequire-meta-docs-recommended(#21496) (lumir)896b8adchore: update ecosystem plugins (#21478) (ESLint Bot)35801a2ci: re-enableeslint-plugin-unicornecosystem test (#21470) (Francesco Trotta)v10.14.0Compare Source
Features
d23a7f9feat: fix property descriptor handling infunc-name-matching(#21400) (xbinaryx)Bug Fixes
4a12580fix: require minimatch10.2.6to avoid vulnerable brace-expansion (#21460) (lumir)827a8f3fix:no-restricted-globalscrash on global objects as property values (#21449) (xbinaryx)161558afix: handle LS, PS and empty hashbang comments (#21419) (lumir)6194939fix:no-invalid-thiscrash onaccessorfields without initializer (#21442) (xbinaryx)9155e14fix: Update @humanfs/node dependency version (#21434) (Nicholas C. Zakas)cb2b9d4fix: avoid invalid object-shorthand fixes for super methods (#21323) (dvd233)5ee3915fix: yoda invalid autofix at statement start (#21424) (Daniel Pinto)Documentation
0f94f47docs: removezh-hansfrom docs language switcher (#21437) (lumir)dab466edocs: Update README (GitHub Actions Bot)97431f8docs: replace--rulesdirwith a virtual plugin in custom rules docs (#21452) (Pixel)7697550docs: Update README (GitHub Actions Bot)0c699d5docs: Remove Tidelift commercial support (#21416) (Milos Djermanovic)0880666docs: update loadESLint() documentation for v10 (#21374) (Minseon Kim)e06fe87docs: Revise AI acknowledgment options in PR template (#21414) (Nicholas C. Zakas)Chores
0e2ab70ci: disableeslint-plugin-unicornecosystem test (#21462) (Francesco Trotta)6e3f988chore: update github/codeql-action action to v4.39.1 (#21450) (renovate[bot])a031c40chore: update ecosystem plugins (#21445) (ESLint Bot)67d2ca2chore: add troubleshooting page URL to circular fixes warning message (#21429) (Milos Djermanovic)276021dchore: update github/codeql-action action to v4.39.0 (#21432) (renovate[bot])449724echore: update ecosystem plugins (#21420) (ESLint Bot)8ffeb8cchore: update dependency prettier to v3.9.10 (#21417) (renovate[bot])v10.13.0Compare Source
Features
48d5cc4feat: report references inside IIFEs inno-use-before-define(#21238) (Irfan fandi)a39d9fbfeat: addglobalThistono-obj-calls(#21382) (synthex-byte)66ac583feat: checkyield*expressions inno-unsafe-optional-chaining(#21399) (xbinaryx)Bug Fixes
87bd2cefix: avoid redeclaredletwhenno-varandone-varfix together (#21389) (Daniel Pinto)Documentation
4783a68docs: Update README (GitHub Actions Bot)43f0ac9docs: clarify parameter description ingetText(#21287) (lumir)Chores
b59d889chore: update github/codeql-action action to v4.38.3 (#21412) (renovate[bot])95e51a0ci: re-enable@typescript-eslint/typescript-eslintin ecosystem tests (#21410) (Francesco Trotta)317fcb3chore: update ecosystem plugins (#21409) (ESLint Bot)b92decfperf: skip no-redeclare scan for single-declaration variables (#21365) (James Ross)47b7063chore: update dependency @eslint/json to ^2.1.1 (#21398) (renovate[bot])e5aea41chore: update ecosystem plugins (#21390) (ESLint Bot)v10.12.0Compare Source
Features
4618052feat: handle astral letters innew-cap(#21357) (sary)4ec5168feat: allowSourceCode#getText()to accept tokens and comments (#21340) (electrohyun)Bug Fixes
bc51eeefix:prefer-arrow-callbackfalse positive in conditional test (#21373) (Daniel Pinto)bbff86cfix: skip lines with multiple comments inmax-lines-per-function(#21332) (xbinaryx)efc4d6bfix: astral letters inconsistent-return,no-eval,no-invalid-this(#21360) (lumir)93de066fix: prefer-exponentiation-operator autofix for async function base (#21322) (Vladimir Babin)02e34fffix: add missing space afterelseincurlyautofix (#21355) (Pixel)b14b8bcfix: correctid-lengthmessage for long private names (#21348) (Pixel)69aac01fix: supportTSFunctionTypeingetFunctionHeadLoc(#21335) (xbinaryx)686630efix:no-loss-of-precisionfalse positive with0.e5(#21337) (sethamus)Documentation
67eb586docs: Update README (GitHub Actions Bot)5370d7edocs: clarifyone-varseparateRequiresmatches anyrequire()call (#21192) (sethamus)8816c1ddocs: Update README (GitHub Actions Bot)3d2e7cedocs: fix typo in no-unused-expressions documentation (#21346) (bytedoe)Chores
152067fchore: update ecosystem plugins (#21362) (ESLint Bot)b56d58echore: update github/codeql-action action to v4.38.2 (#21376) (renovate[bot])bfaea12perf: cache normalized config globals per languageOptions (#21364) (James Ross)322209eci: avoid Nx cache in ecosystem tests and disable failing test (#21369) (Francesco Trotta)d166567chore: update dependency prettier to v3.9.9 (#21371) (renovate[bot])29585cechore: update dependency eslint-plugin-expect-type to ^0.7.0 (#21359) (renovate[bot])39d79bachore: update github/codeql-action action to v4.38.1 (#21354) (renovate[bot])182a6e9chore: update dependency prettier to v3.9.8 (#21352) (renovate[bot])f995127chore: remove CLAUDE.md in favor of AGENTS.md (#21339) (Jarren)b95fb6cchore: update dependency prettier to v3.9.7 (#21347) (renovate[bot])3782dd4chore: update ecosystem plugins (#21342) (ESLint Bot)v10.11.0Compare Source
Features
d136fa4feat: object-shorthand handle quoted properties forignoreConstructors(#21271) (Pavel)397b3b8feat: report unsafe labeledcontinueinno-unsafe-finallyrule (#21316) (electrohyun)d3dd47ffeat: only exemptnew-capbuilt-ins that reference the global (#21290) (sethamus)Bug Fixes
22b09f5fix: ignore__proto__properties inprefer-object-spread(#21311) (xbinaryx)b684bb1fix: make TimePass.parse optional in types and docs (#21313) (ntnyq)26d11bcfix: don't report__proto__properties inobject-shorthand(#21310) (xbinaryx)Documentation
9ecfdc5docs: note that --cache can serve stale results for cross-file rules (#21312) (bytedoe)6c789ffdocs: Update README (GitHub Actions Bot)5997825docs: clarify preserve-caught-error known limitation (#21294) (Akinyemi Toluwalase)Chores
520dd77perf: Implement fast paths in critical areas (#21210) (Nicholas C. Zakas)92086c8test: updateEMFILEerror generation for Node.js 26.9.0 compatibility (#21330) (Francesco Trotta)9ac7eb6chore: update github/codeql-action action to v4.38.0 (#21331) (renovate[bot])24310e3chore: update ecosystem plugins (#21324) (ESLint Bot)45ad79eci: bump pnpm/action-setup from 6.0.10 to 6.1.0 (#21318) (dependabot[bot])ac74e37chore: Add AGENTS.md with AI disclosure requirements (#21221) (Nicholas C. Zakas)c832660chore: Upgrade Stylelint to the latest version in docs (#21245) (Jung Hyeon Jun)f9f88fcchore: update ecosystem plugins (#21308) (ESLint Bot)fc81076ci: add more types integration tests (#20395) (Nitin Kumar)v10.10.0Compare Source
Features
264b434feat: adddandvflags tono-unexpected-multiline(#21305) (Gihyeon Jeong / 정기현)c6cc6c5feat: checkObject.prototypeproperty names innew-cap(#21269) (crimsonjay0)5661fa6feat: no-extra-bind false negatives with class fields and static blocks (#21260) (synthex-byte)Bug Fixes
bb47dc6fix: update dependency file-entry-cache to v11 (#20801) (Milos Djermanovic)427ac0afix: use format strings in debug calls (#21247) (Francesco Trotta)9d81532fix: support__proto__in/* exported */comments (#21261) (sethamus)87e0a08fix: prefer-object-has-own autofix breaks when Object is shadowed (#21282) (김채영)8e2cb14fix:new-capfalse positive forUTCcalls withproperties: false(#21275) (Pixel)9f4a364fix: Ignore static imports in no-unreachable (#21276) (Taha Kotil)Documentation
2417caddocs: Update README (GitHub Actions Bot)9cecb8adocs: document\ccontrol letter escapes in no-control-regex (#21286) (한국)8724829docs: update compat table links (#21263) (fnx)5634542docs: Clarify eqeqeq suggestion behavior (#21256) (Müslüm Yılmaz)Chores
b3d876bchore: disable npm audit in ecosystem tests (#21306) (Francesco Trotta)1696682ci: restore EMFILE test on Node.js 26 (#21297) (Marry (Subin Yang))2c7f5d6chore: update github/codeql-action action to v4.37.9 (#21296) (renovate[bot])3c753f1chore: update eslint (#21289) (renovate[bot])1c73469chore: update ecosystem plugins (#21280) (ESLint Bot)08a02betest: add error locations tono-extra-boolean-cast(#21266) (lumir)77bb1dbchore: update github/codeql-action action to v4.37.8 (#21270) (renovate[bot])007e81aci: skip EMFILE test on Node.js 26 (#21265) (lumir)0430280chore: improve ecosystem tests compatibility on Windows (#21178) (crimsonjay0)v10.9.1Compare Source
Bug Fixes
1e641c9fix: no-loss-of-precision false positive with trailing decimal point (#21251) (Aleksandr Shoronov)Documentation
ad74a8ddocs: add deprecation steps for EOL package versions (#21248) (Francesco Trotta)Chores
3c3ae53chore: update ecosystem plugins (#21249) (ESLint Bot)v10.9.0Compare Source
Features
08de88efeat: handle underflow in no-loss-of-precision (#21218) (Rithish S)55db479feat: add checkConditionalExpressions tono-unmodified-loop-condition(#21175) (sethamus)Bug Fixes
2ba3025fix: prevent unsafeno-varautofix with hoisted functions (#21213) (sethamus)8e69622fix: Prevent no-var autofix when var is shadowed by catch parameter (#21204) (Yang Hyeonjong)684b579fix: prefer-template invalid autofix creates a tagged template call (#21207) (김채영)Documentation
9ef407adocs: use eslint.config.* wherever config file names are listed (#21216) (Marry (Subin Yang))87f66f4docs: Update README (GitHub Actions Bot)585ef37docs: update architecture documentation (#21112) (Francesco Trotta)f3993b0docs: Update README (GitHub Actions Bot)ffc87d6docs: fix broken links in Further Reading sections (#21203) (Minsu)1a761e1docs: update moved JSX specification links (#21198) (Imran Mustafa)4d00ca4docs: update ESLint peer dependency to^10.0.0in shareable configs (#21202) (lumir)510d1a2docs: Update README (GitHub Actions Bot)Chores
899dbf1chore: update github/codeql-action action to v4.37.7 (#21243) (renovate[bot])9aa3873chore: update ecosystem plugins (#21235) (ESLint Bot)dc1e7a8chore: update ecosystem plugins (#21208) (ESLint Bot)f878d21ci: bump pnpm/action-setup from 6.0.9 to 6.0.10 (#21200) (dependabot[bot])4891e50ci: bump github/codeql-action from 4.37.4 to 4.37.6 (#21199) (dependabot[bot])icewind1991/nextcloud-version-matrix (https://github.com/icewind1991/nextcloud-version-matrix)
v1.3.6Compare Source
What's Changed
Full Changelog: https://github.com/nextcloud-libraries/nextcloud-version-matrix/compare/v1.3.5...v1.3.6
v1.3.5Compare Source
What's Changed
Full Changelog: https://github.com/nextcloud-libraries/nextcloud-version-matrix/compare/v1.3.4...v1.3.5
v1.3.4Compare Source
What's Changed
Full Changelog: https://github.com/nextcloud-libraries/nextcloud-version-matrix/compare/v1.3.3...v1.3.4
v1.3.3: 1.3.3Compare Source
What's Changed
New Contributors
Full Changelog: https://github.com/icewind1991/nextcloud-version-matrix/compare/v1.3.2...v1.3.3
nextcloud-releases/openapi-extractor (nextcloud/openapi-extractor)
v1.9.1Compare Source
v1.9.0Compare Source
sebastianbergmann/phpunit (phpunit/phpunit)
v10.5.67: PHPUnit 10.5.67Compare Source
Changed
Removed
phpunit-library-X.Y.Z.phar) is no longer built, it could not be loaded since PHPUnit 9.5.8Learn how to install or update PHPUnit 10.5 in the documentation.
Keep up to date with PHPUnit:
v10.5.66: PHPUnit 10.5.66Compare Source
Changed
Learn how to install or update PHPUnit 10.5 in the documentation.
Keep up to date with PHPUnit:
v10.5.65: PHPUnit 10.5.65Compare Source
Changed
unserialize()(which emits a warning for an empty string as of PHP 8.6)Learn how to install or update PHPUnit 10.5 in the documentation.
Keep up to date with PHPUnit:
rectorphp/rector (rector/rector)
v2.8.5: Released Rector 2.8.5Compare Source
Bugfixes and safer reprints 🐛
This release is mostly about bugfixes - an infinite loop fix in docblock return types, kept ternary parentheses on null coalescing, more precise
changed_filesin JSON output, and several new skips for dead code and PHP 8.4 rules. On the extension side, PHPUnitAddDoesNotPerformAssertionToNonAssertingTestRectoris now faster and more precise.Bugfixes 🐛
@returntag to fix infinite loop inDocblockReturnArrayFromDirectArrayInstanceRector(#8918)changed_files(#8917) Thanks @gvieira18TernaryToNullCoalescingRector(#8921)PregReplaceEModifierRector(#8922)ForeachToArrayAllRector,ForeachToArrayAnyRector,ForeachToArrayFindRectorandForeachToArrayFindKeyRector(#8925)RemoveUselessReturnTagRector(#8924) Thanks @APX403RemoveUnusedPrivateMethodParameterRector(#8923) Thanks @phinor$thisonArrowFunctionDelegatingCallToFirstClassCallableRectorandClosureDelegatingCallToFirstClassCallableRector(#8931)Performance Improvements 🚀
CloningVisitoronAstResolver(#8861)Internals ⚙️
BetterStandardPrinter::pStmt_FileNode()(#8904)rector-symfony 🎵
#[AsCommand]without a name inCommandConfigureToAttributeRector(#1102) Thanks @kixCommandConfigureToAttributeRector(#1104)rector-phpunit 🟢
preg_match()args and skip non-literal expected value inAssertRegExpRector(#820, #819) Thanks @alies-devwillReturnOnConsecutiveCalls()variables to closureuse()inWithConsecutiveRector(#821)ExpressionCreateMockToCreateStubRector(#823) Thanks @bbralaparent::test()calls inAddDoesNotPerformAssertionToNonAssertingTestRector(#826) Thanks @bbralaexpectUserDeprecationMessage()as assert, skip test methods in abstract classes and skip tests in classes with own asserting lifecycle methods inAddDoesNotPerformAssertionToNonAssertingTestRector(#825, #828, #831)AddDoesNotPerformAssertionToNonAssertingTestRector- change node toClass_, cachecontainsAssertCall()per node and never parse PHPUnit and Symfony base test case methods (#830, #829, #833, #824)rector-downgrade-php ⬇️
DowngradeArraySpreadRector(#423)v2.8.4: Released Rector 2.8.4Compare Source
PHP 8.6 set additions and faster runs 🚀
This release grows the PHP 8.6 set with deprecated function alias renames, moves
ConsistentImplodeRectordown to the php74 set, and ships another round of performance work across the runner, printer, and reflection refresh.New Features ⭐
define()in php86 set (#8906)ConsistentImplodeRectorfrom php80 to php74 (#8894) Thanks @zoliszaboBugfixes 🐛
AnnotationToAttributeRector: fold unknown named args into the attribute's$options(#8914) Thanks @kixMbStrrposEncodingArgumentPositionRectortreating mixed$offsetas encoding (#8913)RemoveDefaultValueFromAssignedPropertyRector(#8915)RemoveAlwaysTrueIfConditionRector(#8896)Performance Improvements 🚀
AstResolver(#8903)File::containsHTML()onAddUseStatementGuardto cut a double traverse (#8899)RectorRunner::run()(#8891)wrapBinaryOpWithBrackets()forCallLikenodes inBetterStandardPrinter::p()(#8890)Internals ⚙️
StaticDoctrineAnnotationParser(#8881) Thanks @ondrejmirtesType::toNativePhpTypeNode()andType::toPhpDocNode()instead of own type mappers (#8885) Thanks @ondrejmirtesInClassNodeonPHPStanNodeScopeResolver(#8902)origNodeattribute get onRectorRunner(#8893)BetterStandardPrinter::pExpr_Ternary()method (#8887)@propertyfor$insertionMaponBetterStandardPrinter(#8888)v2.8.3: Released Rector 2.8.3Compare Source
Faster node traversal and updated PHPStan stack 🚀
This release brings performance improvements to node visitors, reducing unnecessary traversals and reflection resolution during analysis.
It also updates PHPStan to 2.3.4 and
phpstan/phpdoc-parserto 2.4, with compatibility fixes for the updated PHPDoc type nodes.Performance Improvements 🚀
ByRefNodeVisitorby tracking by-reference variable names perFunctionLike(#8879) Thanks @samsonasikCallLikeReflectionNodeVisitor(#8880) Thanks @samsonasikBugfixes 🐛
AddArrayFunctionClosureParamTypeRector: resolve array item types from unions of arrays (#8877) Thanks @SanderMullerTMPDIRvalues (#8878) Thanks @SanderMullerInternals ⚙️
phpstan/phpdoc-parserto 2.4, adapting PHPDoc node handling for the newNameNode,FullyQualifiedNameNode, andRelativeNameNodetypes (#8883) Thanks @ondrejmirtesv2.8.2: Released Rector 2.8.2Compare Source
Leaner PHPDoc stack and a fluent composer-based config 🚀
This release leans on
phpstan/phpdoc-parserdirectly: Rector drops its own forked parser, printer, token iterator and type-node subclasses, and reuses the upstream parser, format-preserving printer, node traverser and type nodes. Fewer moving parts, one source of truth for PHPDoc handling, and it rides the PHPStan 2.3.3 bump. Thanks @ondrejmirtes.On the config side,
withComposerBased()now auto-detects installed packages when called with no argument, and a fluentwithComposerBasedRule()builder lands across core and therector-*sets.New features 🥳
withComposerBasedRule()to the fluentRectorConfig::configure()builder (#8875)withComposerBased()called with no argument (#8748) Thanks @MadBox-99Performance Improvements 🚀
RectorRegistry::forNodeAndFile()(#8860) Thanks @samsonasikarray_values()when arrays are already lists or called too early (#8857) Thanks @samsonasikBugfixes 🐛
TernaryToNullsafeCoalesceRector: fix a redundant nullsafe property access under coalesce (#8864)BinaryOpBetweenNumberAndStringRector: skip an array dim fetch (#8862)ArrayCallbackParamTypeResolver(#8874) Thanks @SanderMullerwithRootFiles()to keep the cache hash stable (#8870) Thanks @M-arcuspreload-split-package.phpto fix a PHPStan Turbo notice onrector-*packages (#8865) Thanks @samsonasikInternals ⚙️
phpstan/phpdoc-parserstack directly: parser without subclass, format-preserving printer,NodeTraverser, and move union dedup/array printing into type mappers (#8871, #8863, #8855, #8858) Thanks @ondrejmirtesBetterTokenIterator, theBracketsAwareIntersectionTypeNode, and type-node subclasses that only changed__toString()(#8856, #8876, #8872) Thanks @ondrejmirtesrector-doctrine 🟠
withComposerBasedRule()in the composer-based set (#542)rector-symfony 🎵
EventSubscriberInterfacetoAsEventListenerattributes (#1094)RequestQueryToMapQueryParameterRector(#1089) Thanks @RajekevinContainerGetNameToTypeInTestsRector: skip when the FQCN service is not the named service (#1093) Thanks @jdreesenwithSkip(#1096)PhpVersionconstants directly instead of the deprecatedPhpVersionFeature(#1095)Class_namespace forChangeMethodVisibilityRector(#1092)withComposerBasedRule()in the composer-based sets (#1098)rector-phpunit 🟢
IntersectionTypeNodefromphpstan/phpdoc-parserand update fixtures for the new printer (#815, #814) Thanks @ondrejmirteswithComposerBasedRule()in the composer-based set (#816)rector-downgrade-php ⬇️
phpstan/phpdoc-parserprinter, printing intersections without redundant brackets (#420) Thanks @ondrejmirtesv2.8.1: Released Rector 2.8.1Compare Source
Fixes
v2.8.0: Released Rector 2.8Compare Source
Faster runs, single-pass rules, and a leaner rule set 🚀
The Rector core engine is ~26 % faster (1.36x) with ~8 % less memory than 2.7.0.
If you run PHP 8.3+, it's 3x faster using PHPStan Turbo, the native parsing extension shipped with
phpstan/phpstan:Turbo factor measured on this release via an A/B run on Rector's own
rules/(24-core host, PHP 8.4, cold, identical changed-file fingerprint): ~2.4x wall and ~2.6x worker CPU. Turbo speeds up PHPStan parsing in the workers, so the wall-time gain scales with the available core count.This release is mostly about speed and reliability. A large performance campaign hoists cheap node guards in front of expensive reflection, scope and type lookups across hundreds of rules, replaces per-node config scans in configurable rules with keyed lookups, and resolves short names and unused imports in a single AST walk.
Rules now converge in a single pass: instead of a re-processing guard, the engine iterates rules to a fixed point and tests enforce idempotency, so a rule that changes a file produces the same result whether it runs once or many times.
We also trimmed the rule set: many niche, context-dependent rules that are not part of any set and rarely used are now deprecated. Deprecated rules still run and print a warning; they will be removed in a future major release. The goal is a smaller set of valuable, reliable rules for everyday upgrades.
New features 🥳
ExplicitNullableObjectInstanceRector, replacing 4 nullable-object instanceof rules (#8636)--alloption tolist-rulesto list every rule in core andrector-*packages (#8637)list-rulescommand (#8533)Performance Improvements 🚀
phpstan/phpstan, on PHP 8.3+ - no main-process restart, the workers do the analysis (#8812) Thanks @SanderMullerClass_/ClassLikenode and addgetClassReflection()toAbstractRector:RemoveParentDelegatingClassMethodRector,ReturnTypeFromMockObjectRector,AddVoidReturnTypeWhereNoReturnRectorandChangeMethodVisibilityRector(#8824, #8827, #8828, #8830, #8831)UseImportNameMatcher::resolveName()and resolve the parent class reflection by name inPhp4ConstructorRector(#8841, #8838)array_values()inBetterStandardPrinter::pArray()(#8814, #8821)ClassReflectionby class content hash to stop memory growth on class refresh (#8731, #8728, #8729)ClassNameImportContext(#8687)realpath()of skip patterns inFileInfoMatcher(#8699) Thanks @SanderMullerStaticPHPUnitEnvironment::isPHPUnitRunand replace theisStringNamewildcard loop with a singlestrpbrkscan (#8732, #8733)ContextNodeVisitorby tracking loop/try/attribute depth (#8741)NodeComparator::areNodesEqualbefore printing (#8752)enterNode()toFileProcessorso it runs once per file (#8593)ConvertStaticToSelfRector,ArrayToFirstClassCallableRectorandSimplifyEmptyCheckOnEmptyArrayRectorwith cheap guards before scope fetching (#8801, #8796, #8795) Thanks @alfredbezforeach(#8761)extends/implementsnames and drop the unused process property on the node scope (#8788, #8792)FileProcessornow that rules converge in a single pass (#8811)Bugfixes 🐛
NewlineBeforeNewAssignSetRector: fix a false positive on a local var and$thisproperty name collision (#8535)SimplifyQuoteEscapeRector: handle strings with accented characters (#8532)TernaryToNullsafeCoalesceRector: skip mixed and untyped calls (#8531) Thanks @roxblnfkTernaryToNullCoalescingRector: preserve fallback parentheses on theIdentical/NotIdenticalpath (#8674)AddArrowFunctionReturnTypeRector: fix a crash onNonexistentParentClassType(#8568)DowngradeEnumToConstantListClassRectorandRenameMethodRector(#8727)StrContainsRector/MbStrContainsRector: skip a non-zerostrpos()/mb_strpos()offset (#8640, #8642) Thanks @guillaume-sainthillierSplitGroupedClassConstantsRector: preserve the attribute and type (#8650)RemoveUselessUnionReturnDocblockRector: skip astatic/$thisunion@return(#8649)StrictArrayParamDimFetchRector: skip a private method param called with anArrayAccessarg (#8648)ReadOnlyAnonymousClassRector: skip an anonymous class with attributes (#8665)NullToStrictStringFuncCallArgRector: skip an arg already cast to the target type (#8688)AddNameToBooleanArgumentRector: skipsession_set_save_handler(#8750)RemoveDuplicatedCaseInSwitchRector: compare switch case statements node-by-node (#8754)MergePhpstanDocTagIntoNativeRector: keep the native@param/@var/@returndescription (#8781)nullis still reported, acrossrector-doctrine,rector-symfony,rector-phpunitandrector-downgrade-php(doctrine #539, symfony #1087, phpunit #810, downgrade #418)fix(parallel): report the error limit only when it is actually reached (#8844) Thanks @alfredbezChangedFilesDetectorPortableCacheTest(#8537)Deprecations 💀
Deprecated rules still run and print a warning; they will be removed in a future major release. These are niche, context-dependent or rarely used rules outside the main PHP upgrade path.
Transform / Arguments
FuncCallToNewRector(#8776),FuncCallToStaticCallRector(#8775),MethodCallToFuncCallRector(#8769),MethodCallToStaticCallRector(#8770),NewToStaticCallRector(#8768),StaticCallToMethodCallRector(#8759),ConstFetchToClassConstFetchRector(#8771),MergeInterfacesRector(#8772),ArrayDimFetchToMethodCallRector(#8762),StringToClassConstantRector(#8779),RemoveMethodCallParamRector(#8766)ReplaceArgumentDefaultValueRectorandFunctionArgumentDefaultValueReplacerRectorin favor of dedicated rules (#8686, #8692)Renaming
RenameAnnotationRector(#8780),RenameStaticMethodRector(#8777)Naming (and the
SetList::NAMINGset itself)RenameParamToMatchTypeRector(#8553),RenamePropertyToMatchTypeRector(#8547),RenameVariableToMatchNewTypeRector(#8554),RenameVariableToMatchMethodCallReturnTypeRector(#8549),RenameForeachValueVariableToMatchExprVariableRector(#8548),RenameForeachValueVariableToMatchMethodCallReturnTypeRector(#8550), and the naming prepared set warning (#8555)TypeDeclaration
ParamTypeByMethodCallTypeRectorand its Object/Scalar/Array splits (#8567),ParamTypeByParentCallTypeRector(#8813),AddPropertyTypeDeclarationRector(#8774),AddParamStringTypeFromSprintfUseRector(#8723),DeclareStrictTypesRectorin favor ofSafeDeclareStrictTypesRector(#8562),BinaryOpNullableToInstanceofRectorfolded intoExplicitNullableObjectInstanceRector(#8817)CodeQuality / CodingStyle / DeadCode / EarlyReturn / Php
CompleteDynamicPropertiesRector(#8753),SwitchTrueToMatchRector(#8622),InnerFunctionToPrivateMethodRector(#8621),MoveInnerFunctionToTopLevelRector(#8616),ForRepeatedCountToOwnVariableRector(#8620),CallUserFuncWithArrowFunctionToInlineRector(#8615),RemoveUselessIsObjectCheckRector(#8614),SimplifyStrposLowerRector(#8611),SetTypeToCastRector(#8610),ForeachItemsAssignToEmptyArrayToAssignRector(#8577),PostIncDecToPreIncDecRector(#8583),TernaryFalseExpressionToIfRector(#8683),RemoveDeadReturnRectorin favor ofRemoveAlwaysTrueIfConditionRector(#8685),RemoveDuplicatedReturnSelfDocblockRector(#8634),RemoveParentDelegatingConstructorRector(#8755),ChangeConstantVisibilityRector(#8767),AddOverrideAttributeToOverriddenMethodsRector(#8773),RemoveTraitUseRector(#8778),ReturnEarlyIfVariableRector(#8818)Internals ⚙️
tomasvotruba/unused-publicwithshipmonk/dead-code-detector(#8530)NodeVisitorand moveenterNode()out ofAbstractRectorintoRectorRunner(#8541, #8560)RectorRegistryand merge the skipper services into a singleSkipper(#8600, #8601, #8604)symplify/rule-doc-generator-contractsunder theRector\RuleDocnamespace (#8586)@apiannotations, unused collectors, converters and interfaces, thecreated_by_ruleattribute andRectifiedAnalyzer, and the deprecatedwithPhp53Sets()..withPhp74Sets()and cache-meta methods (#8794, #8803, #8804, #8805, #8806, #8807, #8808, #8809, #8810, #8798, #8799)MergePhpstanDocTagIntoNativeRectorin the type-declaration docblock level (#8763)VariableNamingtorector-downgrade-php(#8797, downgrade #417)PhpVersionFeatureand usePhpVersionconstants directly in rules (#8839)custom-ruleandsetup-cicommands, and the unuseddoctrine/inflectordependency (#8815, #8816)NoGetClassReflectionOnScopeRulePHPStan rule and route class reflection through a saferfetchClassLikeReflection(), used inReadonlyClassManipulatorandObjectTypeSpecifier(#8820, #8829, #8832, #8835, #8840)NullToStrictStringIntConverter, use an explicitnulltype in the null-to-strict rules (#8837)rector-doctrine 🟠
AddArrayResultColumnNamesRector(#533)RemoveNullFromNullableCollectionTypeRectorto a singleClass_node and make it idempotent (#535, #534)rector-symfony 🎵
Schedule::with()toadd()and Doctrine middleware renames (#1082)eraseCredentialsbody into an existing__serialize()instead of a deadserialize()(#1085)ReplaceArgumentDefaultValueRectorusages as dedicated rules (#1079)LogoutHandlerToLogoutEventSubscriberRectoridempotent (#1080)StringToArrayArgumentProcessRectorat upper version bounds (#1076, #1075)ServiceMapout of theServiceMapProviderconstructor (#1073)AccessType/Accessorannotation-to-attribute rules and drop the orphaned enum (#1086, #1088)rector-phpunit 🟢
ScenarioToTestAnnotationRectorto replace thescenarioannotation withtest(#809)IdentifierManipulator(#808)WillReturnCallbackFallbackToReturnFalseRector: skip never-returning fall-through and a trailing comment after return (#801, #800)AssertEmptyNullableObjectToAssertInstanceofRector: skip an anonymous class (#792)SuffixMockObjectPropertyRectoras it can produce invalid variable names (#795)AddProphecyTraitRectoridempotent and skip a non-test class early (#806, #793)AssertRegExpRectorand the PHPUnit test-case call guard with a cheap method-name gate (#796, #807)ScenarioToTestAnnotationRectorand drop the deprecatedfindFirstNonAnonymousClass()call (#812, #811)rector-downgrade-php ⬇️
DowngradeIteratorCountToArrayRector, and skipiterator_to_array()/iterator_count()already guarded byis_array()(#414, #415)array_key_first/array_key_lastin a single statement traversal, and convert nested arrow functions to anonymous functions in a single pass (#416, #413)JsonConstCleaner(#410)DowngradeParameterTypeWideningRector(#411)VariableNamingservice moved from core, and fix the missingCOVARIANT_RETURNconstant withPhpVersion::PHP_74(#417, #419)v2.7.0: Released Rector 2.7Compare Source
New Rules ✨
TernaryToNullsafeCoalesceRector(#8499)BoolReturnTypeFromBooleanConstAndStrictReturnsRectorfor mixed const + strict bool returns (#8498)ConstructorReadonlyAssignToDefaultRectorfor readonly property defaults (#8502)RemoveOverriddenAssignBeforeIfElseRector(#8505)Performance Improvements 🚀
ShortNameResolver, so name import no longer rescans the whole file for every name - up to ~24 % fewer CPU instructions on large projects (#8524)FileDiffhas no content change (#8523)FileSystem::writeAtomic()inFileCacheStorageto avoid partial cache reads on parallel runs (#8520)Bugfixes 🐛
RenamePropertyRector: rename the property both in the trait and in the class property itself (#8518)RenameClassRector: throw on same old and new class in the configuration (#8515)ScalarParamTypeByMethodCallTypeRector: skip string param inference to avoid unsafe scalar coercion (#8514)RepeatedAndNotEqualToNotInArrayRector/RepeatedOrEqualToInArrayRector: skip short-circuit dependent values (#8516)SeparateMultiUseImportsRector: keep traituseadaptations (#8510)Privatize*Rector: drop thefinalflag when changingprotectedtoprivate, sinceprivate finalis forbidden on PHP 8.4 (#8509)AddNameToBooleanArgumentRector/AddNameToNullArgumentRector: skip callees marked@no-named-arguments(#8508)TypedPropertyFromStrictConstructorRector: skip a protected property redeclared in a child class (#8503)RemoveAlwaysTrueIfConditionRector: skip a maybe-undefined variable (#8501)SingularSwitchToIfRector: skip nestedbreak/continuein the case body (#8500)TypeDeclaration: skip redundant intersection types in union return types (#8527)data/infountouched when singularizing (#8492)rector-doctrine 🟠
DoctrineQueryBuilderSortDirectionRector(#524)DoctrineOrderByAttributeSortDirectionRector(#525)Expr\OrderBy::add()(#530)CorrectDefaultTypesOnEntityPropertyRector: support properties initialized asint(#526)rector-symfony 🎵
GetRequestRector: reuse an existing untyped$requestparam (#1066)CommandConfigureToAttributeRector: do not report a change when nothing is extracted (#1068)PhpAstExtractorimport removal in the composer-based Symfony set (#1070)rector-phpunit 🟢
WillReturnCallbackFallbackToReturnFalseRector(#784)FlipAssertRectorto more assert methods and expected value shapes (#787)AllowMockObjectsForDataProviderRector: skip stub-only->method()calls (#790)ConfiguredMockEntityToSetterObjectRectoras experimental (#789)v2.6.7: Released Rector 2.6.7Compare Source
Agentic Experience
This release improves Rector for automated, CI and non-interactive workflows: validate configuration without processing files, limit the amount of changes per run, select multiple rules at once, and get more useful machine-readable output.
^2.2.14and PHP-Parser to^5.9, regenerate preload (#8491)New
validate-configcommand (#8450, #8452)New
validate-configcommand checksrector.phpfor configuration issues without processing any source files.It reports deprecated rules and configuration, invalid skips, duplicated rule registrations and other config hygiene issues. A valid config exits with
0, while detected issues exit with1, so the command can be used directly as a CI gate.For machine-readable output:
Limit a run with
--max-changes(#8449)New
--max-changesoption lets automated runs process changes in smaller batches:The limit counts applied rule changes rather than files. The current file is always finished before Rector stops, so the final number may be slightly above the requested limit.
Run multiple rules with
--only(#8451)--onlycan now be repeated to run several selected rules in a single pass:A single
--onlycontinues to work as before.Per-line rule attribution in JSON output (#8448)
JSON output now includes a
changeslist with the Rector rule and source line for every applied change:The existing
applied_rectorsfield remains unchanged for backward compatibility.Cleaner non-interactive output
Non-interactive runs are now quieter and safer:
--ansi(#8453)rector.phpwhen input is non-interactive (#8454)Sets
DirnameDirConcatStringToDirectStringPathRectorto the code-quality set (#8470)NarrowBoolDocblockReturnTypeRectorto the type-declaration-docblocks set (#8484)Bugfixes 🐛
CompleteDynamicPropertiesRector: skip when a not-autoloaded ancestor may already declare the property (#8441)TypeDeclarationDocblocks: restrict array docblock inference to safer/private cases and avoid narrowing properties with incompatible assignment shapes (#8435, #8436, #8437, #8442)DocblockVarArrayFromPropertyDefaultsRector: widen empty nested array defaults tomixed[]instead ofnever[](#8439, #8474)DocblockReturnArrayFromDirectArrayInstanceRector: skip empty array returns instead of producing an overly narrowarray{}docblock (#8434)IfToNullCoalescingAssignRector: preserve comments inside the convertedif(#8443)RemoveDeadIfBlockRector: keep emptyifwithelseifand trailingelsewhere rewriting would change behavior (#8446)RemoveParentDelegatingClassMethodRector: keep delegating methods carrying annotations such as@Route(#8459)StrContainsRector: skip empty string needles to avoid behavior changes (#8460)RemoveDeadCatchRector: keep rethrowing catches before catch-allThrowable/Exceptionhandlers (#8462)SimplifyUselessVariableRector: preserve variables referenced by commented-out code and stop folding compound assignments into returns (#8468)ReplaceArgumentDefaultValueRector: avoid re-applying already migrated imported class constants and correctly report applied changes (#8475)ForeachToArrayAnyRector: do not dropelseiforelsebranches when converting aforeach(#8480)Option::SOURCEfrom the actually resolved paths in regular Rector runs (#8424)Deprecations 💀
--rules-summary- use--output-format=json, which provides applied rules together with files and lines (#8457)DynamicDocBlockPropertyToNativePropertyRector- could change a public-by-design@propertyinto a private native property (#8470)FluentSettersToStandaloneCallMethodRectorandRemoveReturnThisFromSetterClassMethodRector- fluent API semantics are too use-case dependent for a generic transformation (#8473)ListSwapArrayOrderRector- can turn validlist()assignments into broken code; removed from PHP 7.0 sets (#8477)RenameDeprecatedMethodCallRector- inferring replacement methods from free-text@deprecateddescriptions is too risky; explicit rename rules are more predictable (#8485)rector-doctrine 🟠
TypedPropertyFromToOneRelationTypeRector: skip untyped parent property overrides (#520)TypedPropertyFromColumnTypeRector: skip untyped parent property overrides (#521)TypedPropertyFromColumnTypeRector: fix numeric defaults fordecimal/bigintcolumns (#522)TypedPropertyFromColumnTypeRector: make generated property type nullable when anulldefault is present (#523)rector-phpunit 🟢
RemoveNamedArgsInDataProviderRector(#782)rector-symfony 🎵
EnableValidationAttributesRectorinto the composer-based upgrade path (#1065)ConsoleExecuteReturnIntRector: correctly report changes when rewriting an existing return (#1064)rector-downgrade-php ⬇️
DowngradeNeverTypeDeclarationRector: supportneverreturn types on arrow functions (#397)DowngradeReflectionMethodHasPrototypeRectorforReflectionMethod::hasPrototype()when downgrading below PHP 8.2 (#398)v2.6.6: Released Rector 2.6.6Compare Source
File selection
--filteroption to narrow processed files (#8419)New
--filteroption keeps only files whose path matches all given patterns. Repeat the option to require several patterns at once, handy for scoping a run to a subtree or a naming convention without editing config paths.Before: process every file under the given paths. After: process only files matching all
--filterpatterns.Bugfixes 🐛
RectorConfig::tag()as a no-op BC layer (#8431)TypeDeclarationDocblocks: fix invalid array-in-key docblock when narrowing long array unions (#8430)BetterPhpDocParser: keep import used only in an annotation array key (#8429)RenameVariableToMatchMethodCallReturnTypeRector: fix partial rename with same-named nested arrow param (#8428)ArrayFirstLastRector: skip nested compound assignment (#8425)ReturnTypeFromStrictNewArrayRector: add doc return type only for list and generic arrays (#8423), skip noisy array-shape union return docblock (#8422)Extension packages
rector-phpunit 🟢
AllowMockObjectsForDataProviderRector: skip dynamic method call (#781)AssertEmptyNullableObjectToAssertInstanceofRector: skipassertNull/assertEmpty(#780)AddSeeTestAnnotationRector: skip existing imported or short@seeannotation (#779)rector-downgrade-php ⬇️
DowngradeSetAccessibleReflectionPropertyRector: handlegetProperties()/getMethods()loop (#396)DowngradeHashAlgorithmXxHashRector: skipPHP_VERSION_IDguardedhash()calls (#394)Internal / cleanup
mspirkov/yii2-rectorlink to README (#8427)??expression (#8421)v2.6.5: Released Rector 2.6.5Compare Source
Caching
This release makes the cache smarter about config changes - fewer needless full re-runs, while still invalidating when results could actually differ.
Configured rule value changes now invalidate the cache (#8400)
withConfiguredRule()stored its config on theRectorConfiginstance only, never in the cache hash. Changing a rule's values - same class, different config - kept serving the stale result.Before: cache kept, files re-analysed with stale value. After: cache dropped, re-analysed with new value. Merged config now flows through a
RULE_CONFIGURATIONSparameter into the strict cache hash. Upgrading invalidates the cache once for projects using configured rules.--only <Rule>reuses the full-run cache (#8400)Each
--onlyselection has its own cache namespace, so a file left clean by a prior full run was re-analysed under--onlyeven when nothing changed. A scoped run now falls back to the full-run cache (read only, file content still compared, so real edits are still picked up).Before:
--onlyre-analyses every file. After: skips files the full run already left clean.Directional cache invalidation on config change (#8397)
Previously any change to any config parameter dropped the whole cache. Now changes are compared by direction:
--parallel, memory limit, deprecation notices) -> never invalidateBefore: full cache dropped, every file re-analysed. After: cache kept, only changed files re-analysed. A legacy cache value from an older version triggers a single safe reset.
Bugfixes 🐛
FunctionFirstClassCallableRector(#8398)IfToNullCoalescingAssignRector: fix isset guard never converting (#8389), keep comments aboveif(#8388), skip non-nullable typed property (#8387)InlineIfToExplicitIfRector: skip same local method call and call chain (#8417, #8418)ArrowFunctionDelegatingCallToFirstClassCallableRector: skip callee arity mismatch (#8391)Deprecations 💀
Rules:
ShortenElseIfRector(#8416)CombineIfRector(#8413)ExplicitBoolCompareRector- can make if-train less readable (#8412)SimplifyIfElseToTernaryRector- avoids less readable code (#8411)Sets and config:
SetList::IF- rules moved into code-quality and coding-style sets (#8414)SetList::INSTANCEOF- rules moved into code-quality and type-declaration sets (#8408)SetList::PHP_*constants - usewithPhpSets()/withPhpLevel()instead (#8405)withCacheMetaExtension()as@deprecated(#8415)withSetProviders()(#8392)Console commands:
list-rules(#8396),setup-ci(#8394),custom-rule(#8393)githubandgitlaboutput formats (#8390)Internal / cleanup
symplify/easy-parallelintosrc/Parallel(#8401)RectorCheaperGuardsFirstRulefromsymplify/phpstan-rules(#8404)SingleServiceRegistrationRule, drop unusedreact/promise(#8403)RelatedConfigInterface, dead stub files (#8395, #8407)v2.6.4: Released Rector 2.6.4Compare Source
A tooling release under the hood: Rector's dependency-injection container moves off
illuminate/containerontoentropy/entropy, and composer-based sets now target the lowest declared version of a library instead of guessing the current one.New rules 🎉
rector-src
IfToNullCoalescingAssignRector— convert anifnull-guard into??=(#8356)ArrayKeysToArrayKeyFirstLastRector—array_keys($a)[0]→array_key_first($a)(#8238)rector-symfony
WebLinkStringRelationsToConstantsRector(#1058)Engine 🔧
illuminate/containertoentropy/entropy(#8362) — lighter container, order-independent service collections viaautodiscover()projectpackage type is treated as an application (#8359, #8363)PhpVersionFactoryas a public service so third-party rules can autowire it (#8365)Bugfixes 🐛
rector-src
ClassMethodArrayDocblockParamFromLocalCallsRectoron methods overriding a parent/interface (#8357)@param arraywhen the local call type conflicts with the default value (#8381)oussuffix inRenameForeachValueVariableToMatchExprVariableRector(#8382)rector-symfony
CommandConfigureToAttributeRectoron non-constantconfigure()values (#1057)ContainerGetNameToTypeInTestsRectorwhen the named service has no matching FQCN service (#1051)OptionNameRectorwhen no option name changes (#1044)rector-phpunit
AddInstanceofAssertForNullableArgumentRectorduplicatingassertInstanceOfinside traits (#773)MatchAssertSameExpectedTypeRectorrewriting a passing assert into a failing one (#771)Set changes 📈
rector-src
FlipNegatedTernaryInstanceofRectorto the code quality level (#8385)rector-symfony
RequestIsMainRectorand other version-bonded rules to the composer-based set (#1048, #1045)GetFiltersAndFunctionsToAsTwigAttributeRector— support arrow-call functions; gate onsymfony/twig-bridge7.3, not twig alone (#1043, #1050)ANNOTATIONS_TO_ATTRIBUTESas@internalinstead of@deprecated(#1053)rector-doctrine
AddAnnotationToRepositoryRectorto the composer-based set only (#510)Deprecations 💀
Deprecated rules run without any effect, print a warning and will be removed in a future major release.
rector-symfony
InlineClassRoutePrefixRector(#1049)AddTraitGetterReturnTypeBasedOnSetterRequiredRector(#1047)LiteralGetToRequestClassConstantRector(#1046)Removals 💀
rector-src
CallLikeThisBoundClosureArgsNodeVisitorand its unread attribute (#8373)v2.6.3: Released Rector 2.6.3Compare Source
A stabilization release on top of the composer-based sets finished in 2.6.2 - bugfixes across the engine, a couple of fresh Symfony and Doctrine rules, and the caching cleanup that the
cacheClass()deprecation promised.New rules 🎉
rector-symfony
RouteRequirementStringToConstantRector(#1037)rector-doctrine
QueryBuilderExecuteToExecuteQueryOrExecuteStatementRector— split the deprecatedexecute()intoexecuteQuery()/executeStatement()(#507)Bugfixes 🐛
RemoveReturnTagIncompatibleWithNativeTypeRectoron a type alias nested in a union (#8319)breakas always terminated (#8348) — improves return/dead-code analysis onwhile (true)bodiesrector-symfony
InlineClassRoutePrefixRectorduplicating the route name prefix on attribute routes (#9851)PushRequestToRequestStackConstructorRectorleaving the pushed request undefined (#1040)loadValidatorMetadata()containingaddConstraint(new Callback())(#1038)rector-phpunit
AddDoesNotPerformAssertionToNonAssertingTestRector(#767)Set changes 📈
rector-doctrine
ORMSetupmethods —createAttributeMetadataConfiguration()→createAttributeMetadataConfig(),createXMLMetadataConfiguration()→createXMLMetadataConfig(),createConfiguration()→createConfig()Types::ARRAYwithTypes::SIMPLE_ARRAY(#506)Deprecations 💀
Deprecated rules run without any effect, print a warning and will be removed in a future major release.
rector-phpunit
AllowMockObjectsWithoutExpectationsAttributeRector— also removed from the setRemovals 💀
rector-src
MemoryCacheStorage, always useFileCacheStorage(#8354) — completes thecacheClass()deprecation from 2.6.2; only file cache is useful to end usersvitejs/vite (vite)
v7.3.8Compare Source
Please refer to CHANGELOG.md for details.
v7.3.7Compare Source
Please refer to CHANGELOG.md for details.
vuejs/core (vue)
v3.5.46Compare Source
Bug Fixes
onWarn+ surface inline template tips (#16152) (21738b5)v3.5.45Compare Source
Bug Fixes
Performance Improvements
v3.5.44Compare Source
Bug Fixes
0andfalseinv-html(#15571) (9f3b437)v3.5.43Compare Source
Bug Fixes
v3.5.42Compare Source
Bug Fixes
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate CLI.
416614fa549ce1c42cabUpdate dependency rector/rector to v2.6.3to Update all non-major dependencies9ce1c42cabe707615584e707615584ce2419f9c1ce2419f9c1742483c499742483c499406df8249f406df8249f0163aad8340163aad834b72769e810b72769e810be41f89986be41f899861bcb82a0e11bcb82a0e1eab5766b59eab5766b599c5fa6b9c99c5fa6b9c9514d921056514d9210567462b5581f7462b5581fbb568b4f41bb568b4f416a564972c06a564972c077240a48c077240a48c03b795618863b7956188678a5017a2178a5017a2181c09a553881c09a55384611a99f484611a99f483f1ab45a0f3f1ab45a0f9d58606c089d58606c08ad153b7e25ad153b7e252cfaf0132d2cfaf0132d78d4daab7278d4daab72da6cee00f6da6cee00f643088847cb43088847cbef9b2be97fef9b2be97f45b5cd6ee045b5cd6ee0ca21de7a56ca21de7a56c5bc661aaac5bc661aaaf78af18169f78af1816952b6eb6b0952b6eb6b0908057c93cc08057c93cc771eff2fa8771eff2fa824beb9b01b24beb9b01b1774b24a6e1774b24a6e914dff3650914dff3650c813bd627bc813bd627b2e556111322e55611132737a8c624a737a8c624ab2935a5261b2935a52612e97c281002e97c281006218ee00b86218ee00b8d96c73b031d96c73b031e3853b363be3853b363b04d045b07a04d045b07a684d9317b9684d9317b9be7e6c5f21be7e6c5f21ac97ec224fac97ec224f09239f52e709239f52e740d6fca7ee40d6fca7eeb65424e261b65424e2612d9b8b7d462d9b8b7d4648347c4f9d48347c4f9d91ebe3f86b91ebe3f86bb8111300f1b8111300f173360f510073360f51003bef2ddd073bef2ddd0736962c12b436962c12b4cb8e9891b1cb8e9891b19e82b3be939e82b3be9328943987592894398759daac7e5ee6daac7e5ee6b08ae0c291b08ae0c29190a8a0738990a8a073898fef8b11c88fef8b11c837afb5f79437afb5f794da5f3002ecda5f3002ec1988dfcb851988dfcb85e6891c4c32e6891c4c3213881ca13613881ca13602c7a1b62a02c7a1b62ae988d68624e988d68624f983c89b9ff983c89b9f2b444b4bcf2b444b4bcf75808d1d2475808d1d2416c508549e16c508549e3b296c70fb3b296c70fb4fd5efab824fd5efab82bf3ad26b18bf3ad26b189de41fcaae9de41fcaae49530170354953017035ed4404325aed4404325a1a54850d371a54850d37b0c276b1c5b0c276b1c57c89b79c6e7c89b79c6e138625ab68View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.