Update PHP - All packages except core - Minor and patch - #3092
Closed
renovate[bot] wants to merge 1 commit into
Closed
Update PHP - All packages except core - Minor and patch#3092renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
| datasource | package | from | to | | ---------- | ------------------------- | ------ | ------ | | packagist | palantirnet/drupal-rector | 1.1.2 | 1.1.3 | | packagist | phpstan/phpstan | 2.2.10 | 2.2.13 | | packagist | rector/rector | 2.6.4 | 2.6.6 |
|
📖 Documentation preview for this pull request has been deployed to Netlify: https://6a9cb457ef578241af10c5e7--vortex-docs.netlify.app This preview is rebuilt on every commit and is not the production documentation site. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^1.1.2→^1.1.3^2.2.10→^2.2.13>=2.6.4 <2.6.5→>=2.6.6 <2.6.7Release Notes
palantirnet/drupal-rector (palantirnet/drupal-rector)
v1.1.3Compare Source
Changed
rector/rector2.6.2 and newer are blocked — added aconflictonrector/rector >=2.6.2. Rector 2.6.2 removed every version-specific set constant from its first-party extension packages (rectorphp/rector-phpunit#760) in favour of the new composer-based sets, which makes theDrupal8SetList,Drupal9SetListandDrupal10SetListsets that referencePHPUnitSetList,SymfonySetListandTwigSetListconstants abort withUndefined constant …orCould not detect twig set.. Verified: 2.6.1 is the last release on which every Drupal set loads; the Drupal 11 and 12 sets are unaffected because they reference no third-party sets. The conflict is a stopgap that keeps installs working while the sets are ported to the composer-based mechanism (#419); it will be lifted once that port lands. Reported by ptmkenny (#420).phpstan/phpstan-phar-composer-source (phpstan/phpstan)
v2.2.13Compare Source
v2.2.12Compare Source
v2.2.11Compare Source
rectorphp/rector (rector/rector)
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.return RectorConfig::configure() ->withConfiguredRule(SomeRector::class, [ - 'old value', + 'new value', ]);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 invalidatereturn RectorConfig::configure() ->withRules([ SomeRector::class, - OtherRector::class, // removing a rule -> cache kept ]);return RectorConfig::configure() ->withSkip([ SomeRector::class, + AnotherRector::class, // adding a skip -> cache kept ]);Before: 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)Configuration
📅 Schedule: (in timezone 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 was generated by Mend Renovate. View the repository job log.