Skip to content

[Conductor] Update dev - #142

Merged
pscheit merged 1 commit into
mainfrom
conductor-multiple-vendors-all-99994
Nov 9, 2026
Merged

pscheit merged 1 commit into
mainfrom
conductor-multiple-vendors-all-99994

Conversation

@private-packagist

Copy link
Copy Markdown
Contributor

This PR was automatically generated by Conductor.

The PR contains the changes generated by running the following command:

composer update friendsofphp/php-cs-fixer:v3.95.29 phpstan/phpstan:2.3.5 rector/rector:2.8.4 --with-all-dependencies --minimal-changes

Changelog

friendsofphp/php-cs-fixer (Source: GitHub Releases))

v3.95.29

What's Changed

Full Changelog: v3.95.28...v3.95.29

v3.95.28

What's Changed

New Contributors

Full Changelog: v3.95.27...v3.95.28

phpstan/phpstan (Source: GitHub Releases)

2.3.5

Huge release!

Auto-fixable rules with --fix. They show up in the on-line playground too:

image (1)

Stale ignoreErrors entries and @​phpstan-ignore comments can be removed with --fix too:

Screenshot 2026-11-03 at 11 14 38

Extensions can be registered with attributes instead of .neon file:

use PHPStan\DependencyInjection\AutowiredService;

#[AutowiredService]
class MyExtension implements DynamicMethodReturnTypeExtension

Services be migrated automatically with migrate:neon2attributes.

Major new features 🚀

  • Support for auto-fixable custom rules
    • analyse command now supports --fix and even --fix-ignored (looks at your ignored auto-fixable errors and fixes them too)
    • Auto-fixable errors are marked with 🔧 in the default table output
    • Rules can change AST with RuleErrorBuilder::fixNode() and removeNode(). Learn more
    • After first round of fixes, PHPStan reanalyses the whole codebase again (which is fast thanks to the result cache) and looks if the first round of fixes produced more errors to fix. It ends after 10 rounds in case the fixes cannot agree about the final state of the code.
    • This is a good fit for "coding standard rules", for example if you want to enforce final classes, named arguments etc.
    • It's not a good fit for errors that have multiple possible fixes (most of PHPStan errors do), like type-related errors. PHPStan cannot know whether the accepting or accepted side should correct its type.
  • Selected errors reported by PHPStan are now autofixable
  • Extensions can be registered with attributes on PHP 8.0+ (#​6918), #​15114
    • Instead of registering services in neon file, you can now use PHP attributes above classes to register them
    • #[AutowiredService], #[NonAutowiredService], #[AutowiredParameter], #[RegisteredRule], #[RegisteredCollector], #[Conditional], #[GenerateFactory], #[ExtensionInterface]
    • Learn more
    • PHPStan comes with a migration command that will do the grunt work for you: migrate:neon2attributes (#​6920)

Improvements 🔧

  • Extensions can register their own interface <-> service tag mapping to have it validated and automatically registered with #[AutowiredService]. Learn more
  • Make --fix fast and complete: linear patching, multi-node fixes, fix rounds (#​6902)
  • Improve return type of base64_decode() (#​4492), thanks @​jlherren!
  • Support template types as object shape keys (#​6905), #​12756, thanks @​canvural!
  • Make named arguments passed to @​no-named-arguments callables fixable (#​6910)
  • Report PHPStan attributes not covered by backward compatibility promise (#​6916)
  • Write class names added by fixes relative to namespace and uses (#​6924)

Bugfixes 🐛

  • Run a rule on CollectedDataNode every time when it does not call get() (#​6881), thanks @​SanderMuller!
  • Run every rule on CollectedDataNode with -vvv (#​6881), thanks @​SanderMuller!
  • Do not analyse stub files with errors when the result cache is restored (#​6891)
  • Update RangeFunctionReturnTypeExtension to include known integer ranges (#​4251), thanks @​PrinsFrank!
  • Allow valid built-in constants in function parameters (#​6579), #​15308, thanks @​midhunmonachan!
  • Fix SimpleRelativePathHelper stripping first character when working directory is slash (#​6646), thanks @​liamduckett!
  • Preserve source types during destructuring assignments (#​6760), #​15091, thanks @​Gabrieljr42!
  • Do not treat method templates resolved to their bound as unresolved (#​6823), thanks @​GromNaN!
  • Re-analyse files with errors of rules on collected data when a symbol appears (#​6896), #​15162
  • Accept closures matching the parameter closure type extension in argument checks (#​6897), #​12585
  • [PHP 8.6] Do not use deprecated SORT_LOCALE_STRING constant at runtime (#​6904)
  • Keep the creation-time fixpoint for closures re-invoked from nested closures (#​6911)
  • Keep the creation-time fixpoint for closures assigned to their own by-ref variable (#​6912), #​15442

Performance 🏎️

Internals 🔍

  • Build the pie extensions from the core's profile and cache the musl PHP builds (#​6880)
  • Test generated subclass scopes in closure-this extensions (#​6884), thanks @​MrPunyapal!
  • Resume backward compatibility check (phpstan/phpstan-src@​7bca2c6)
  • Isolate intersection test toggle state (#​6255), thanks @​simPod!
  • Let the ubuntu static analysis jobs fork their workers on PHP 8.2+ (#​6595), thanks @​SanderMuller!
  • Proper handling of unknown paths (#​6302), thanks @​AJenbo!
  • Correct calling mergeWith() on the wrong scope (#​6301), thanks @​AJenbo!
  • Be explicit about handled types rather then assuming implementations (#​6303), thanks @​AJenbo!
  • Make ResultCacheManagerCollectedDataTest independent of the second boundary (#​6898)
  • Lint auto-fixing test-files (#​6895), thanks @​staabm!
  • Register services conditionally with #[Conditional] attribute (#​6914)
  • SkipTestsWithRequiresPhpAttributeRule: do not report methods that already have #[RequiresPhp] (#​6922)
rector/rector (Source: GitHub Releases))

2.8.4

PHP 8.6 set additions and faster runs 🚀

This release grows the PHP 8.6 set with deprecated function alias renames, moves ConsistentImplodeRector down to the php74 set, and ships another round of performance work across the runner, printer, and reflection refresh.


New Features ⭐

  • Add PHP 8.6 deprecated function alias renames to php86 set (#​8905)
  • Remove deprecated third arg of define() in php86 set (#​8906)
  • Move ConsistentImplodeRector from php80 to php74 (#​8894) Thanks @​zoliszabo

Bugfixes 🐛

  • Run post rectors after the rules reach a fixed point, so no rule sees an imported short name (#​8909) Thanks @​SanderMuller
  • AnnotationToAttributeRector: fold unknown named args into the attribute's $options (#​8914) Thanks @​kix
  • [Php74] Fix MbStrrposEncodingArgumentPositionRector treating mixed $offset as encoding (#​8913)
  • [DeadCode] Skip nested conditional assign in RemoveDefaultValueFromAssignedPropertyRector (#​8915)
  • [DeadCode] Skip with HTML on RemoveAlwaysTrueIfConditionRector (#​8896)
  • [Printer] Keep blank lines between statements when a node list is emptied (#​8886)

Performance Improvements 🚀

  • Reduce double traversal on promoted property lookup in AstResolver (#​8903)
  • Reuse File::containsHTML() on AddUseStatementGuard to cut a double traverse (#​8899)
  • Reuse collected use statements when resolving PHPDoc short names (#​8901)
  • Skip current file lookup when a rule makes no change in RectorRunner::run() (#​8891)
  • Optimize class reflection refresh with cheaper cache hashing and early class-name validation (#​8892)
  • Skip wrapBinaryOpWithBrackets() for CallLike nodes in BetterStandardPrinter::p() (#​8890)

Internals ⚙️

  • Convert Doctrine annotations from phpdoc-parser nodes, remove StaticDoctrineAnnotationParser (#​8881) Thanks @​ondrejmirtes
  • Use PHPStan Type::toNativePhpTypeNode() and Type::toPhpDocNode() instead of own type mappers (#​8885) Thanks @​ondrejmirtes
  • Remove phpdoc-parser workarounds fixed in phpdoc-parser 2.3.10 and 2.3.11 (#​8898) Thanks @​ondrejmirtes
  • Bump minimal phpstan and phpdoc-parser to latest patch versions (#​8916)
  • Make use of PHPStan InClassNode on PHPStanNodeScopeResolver (#​8902)
  • [Core] Remove unneeded origNode attribute get on RectorRunner (#​8893)
  • [Printer] Remove BetterStandardPrinter::pExpr_Ternary() method (#​8887)
  • [Printer] Remove @​property for $insertionMap on BetterStandardPrinter (#​8888)

Task options

If you close the PR, the task will be skipped and Conductor will schedule the next task. Clicking the "Skip" button in the UI has the same effect. Conductor won't attempt to update the dependency to this exact version again but it will schedule updates to newer versions.


Powered by Private Packagist

Conductor executed the following commands:
composer update friendsofphp/php-cs-fixer:v3.95.29 phpstan/phpstan:2.3.5 rector/rector:2.8.4 --with-all-dependencies --minimal-changes
@private-packagist

Copy link
Copy Markdown
Contributor Author

composer.lock

Dev Package changes

Package Operation From To About
ergebnis/agent-detector upgrade 1.3.0 2.0.0 diff
friendsofphp/php-cs-fixer upgrade v3.95.27 v3.95.29 diff
phpstan/phpstan upgrade 2.3.4 2.3.5 diff
rector/rector upgrade 2.8.3 2.8.4 diff

Settings · Docs · Powered by Private Packagist

@pscheit
pscheit merged commit 760ad4a into main Nov 9, 2026
1 check passed
@private-packagist
private-packagist Bot deleted the conductor-multiple-vendors-all-99994 branch November 9, 2026 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant