Skip to content

[Conductor] Update dev - #146

Open
private-packagist[bot] wants to merge 1 commit into
mainfrom
conductor-multiple-vendors-all-102264
Open

private-packagist[bot] wants to merge 1 commit into
mainfrom
conductor-multiple-vendors-all-102264

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.32 phpstan/phpstan:2.3.7 rector/rector:2.8.5 --with-all-dependencies --minimal-changes

Changelog

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

v3.95.32

What's Changed

  • docs: fix the dead Doctrine Annotations link in @​DoctrineAnnotation by @​farisbasha in #​9938
  • fix: SimplifiedIfReturnFixer - do not merge the return after an elseif chain into the last branch by @​wleeaf in #​9905
  • fix: UseArrowFunctionsFixer - do not convert closures that are operands of the pipe operator by @​SulimanAbdulrazzaq in #​9881

New Contributors

Full Changelog: v3.95.31...v3.95.32

v3.95.31

What's Changed

  • fix: FullyQualifiedStrictTypesFixer - do not treat function references in @​see as types by @​lazerg in #​9937
  • fix: SingleSpaceAroundConstructFixer - do not add space after clone followed by ( by @​lazerg in #​9900
  • perf: Optimize BracesPositionFixer performance by @​live627 in #​9924
  • perf: Skip ampersand special-casing in Token::equals() for other tokens by @​live627 in #​9891
  • deps: bump crate-ci/typos from 1.52.0 to 1.52.2 in /.github/workflows in the all group across 1 directory by @​dependabot[bot] in #​9935

Full Changelog: v3.95.30...v3.95.31

phpstan/phpstan (Source: GitHub Releases)

2.3.7

Improvements 🔧

  • Restart for Tideways only on PHP versions without the observer fix (#​7105)

Bugfixes 🐛

Internals 🔍

2.3.6

Highlights of this release 👇

  • Full support for PHP 8.6, including Partial Function Application - RFC
  • Float range types like float<0, 1.5>, finite-float, or positive-float - See docs
  • When analysing a project subset, like a single directory or a list of files, report is no longer flooded with unrelated ignore.unmatched errors
  • Result cache previously used to reanalyse all files with errors (including the baselined errors) every time a new class or function appeared, in hope that some of the errors related to a before unknown symbol might disappear. Not anymore: the engine now precisely tracks which rules and other extensions asked about an unknown symbol, so the result cache knows what files need to be reanalysed when the said symbol appears. In practice, there's a lot less files being reanalysed between runs -> faster runs with the result cache.
  • PHPStan is now continuously benchmarked with Tally - stable numbers in CI, regardless of how fast the runner is!
  • If you're a Twig user, check out TwigStan - PHPStan for your templates!

Bleeding edge 🔪

  • Check PHP language features support with the entire declared version range (#​6991)
    • Example: If you declare ^8.5 in your composer.json or via phpVersion in phpstan.neon, PHPStan will start telling you about PHP 8.6 deprecations right away
    • If you declare ^8.5, it will tell you you can't use #[Override] above class constants, because that requires PHP 8.6
  • Report str_replace()/str_ireplace()/preg_replace()/preg_filter() calls with fewer replacements than search values (#​7007), #​3889, thanks @​staabm and @​SanderMuller!

If you want to see the shape of things to come and adopt bleeding edge features early, you can include this config file in your project's phpstan.neon:

includes:
	- vendor/phpstan/phpstan/conf/bleedingEdge.neon

Of course, there are no backwards compatibility guarantees when you include this file. The behaviour and reported errors can change in minor versions with this file included. Learn more

Improvements 🔧

Bugfixes 🐛

Performance 🏎️

  • Stream collected data to the rules on CollectedDataNode (#​6963), thanks @​janedbal!
  • Speed up the falsey isset() fold over many optional offsets - #​6971 (#​6971)
  • Avoid quadratic work when combining many same-shaped constant arrays (#​6970)
  • Resolve names added by fixes only when a fix adds names (#​6967)
  • Share resolved class constant type between native and PHPDoc variants when the constant has no PHPDoc type (#​6968)
  • Describe each array shape once while sorting a union (#​6973)
  • Memoize the loosely equal types of a union per PHP version (#​6973)
  • Look up already normalized union members by object identity (#​6969)
  • Remove a union from a value it does not hold with one lookup (#​6969)
  • Answer overwrite markers against the live set instead of per write (#​6969)
  • Fix unmatched baseline entries in time linear in the baseline size (#​6977)
  • Remember annotation method and property lookups that find nothing (#​6978)
  • Subtract constant-array members whole when deriving a conditional guard (#​6981)
  • Keep statement snapshots' lists in the walk state (#​6982)
  • Resolve loose comparison of two strings or two integers as identical (#​6985)
  • Decide sealed array shapes with disjoint required keys before comparing values (#​6986)
  • Do the per-key work of array shapes once per shared value type (#​6987)
  • Answer the questions every invocation asks about an inferred closure signature once (#​6989)
  • Skip the get_included_files() scan in the autoload trap while OPcache compiled nothing (#​6979)
  • Memoize CallableType::describe() per verbosity level (#​6980)
  • Fetch the exported nodes of non-analysed files only when the result cache is saved (#​6988)
  • Share the observed keys of whole-variable writes and walk the smaller set (#​6990)
  • Keep normalized paths that did not change once in the cache (#​6983)
  • Apply thousands of fixes in time linear in their number (#​7001)
  • Use faster strspn() over regex matching (#​7005), thanks @​staabm!
  • Memoize Scope::getPhpVersion() per scope (#​7014)
  • Speed up types shared by nested arrays and loops (#​7030)
  • Fix exponential analysis slowdowns on deeply nested code (#​7078)

Function signature fixes 🤖

Internals 🔍

rector/rector (Source: GitHub Releases))

2.8.5

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_files in JSON output, and several new skips for dead code and PHP 8.4 rules. On the extension side, PHPUnit AddDoesNotPerformAssertionToNonAssertingTestRector is now faster and more precise.


Bugfixes 🐛

  • [TypeDeclarationDocblocks] Skip invalid @​return tag to fix infinite loop in DocblockReturnArrayFromDirectArrayInstanceRector (#​8918)
  • [ChangesReporting] List only changed files in JSON changed_files (#​8917) Thanks @​gvieira18
  • [Core] Drop file positions on reprinted nodes copied from another file (#​8928)
  • Preserve ternary fallback parentheses in new coalesces (#​8927) Thanks @​smotim
  • [Php70] Keep inner ternary parentheses on TernaryToNullCoalescingRector (#​8921)
  • [Php55] Handle variable interpolated in pattern on PregReplaceEModifierRector (#​8922)
  • [Php84] Skip variable modified in condition on ForeachToArrayAllRector, ForeachToArrayAnyRector, ForeachToArrayFindRector and ForeachToArrayFindKeyRector (#​8925)
  • [DeadCode] Skip conditional return type on RemoveUselessReturnTagRector (#​8924) Thanks @​APX403
  • [DeadCode] Skip private methods used as callables on RemoveUnusedPrivateMethodParameterRector (#​8923) Thanks @​phinor
  • [CodingStyle] Skip closure with rebound $this on ArrowFunctionDelegatingCallToFirstClassCallableRector and ClosureDelegatingCallToFirstClassCallableRector (#​8931)

Performance Improvements 🚀

  • Remove usage of CloningVisitor on AstResolver (#​8861)

Internals ⚙️

  • [Printer] Remove unneeded BetterStandardPrinter::pStmt_FileNode() (#​8904)
  • [CodingStyle] Cover Doctrine/Symfony aliased names on import names with real stubs (#​8932, #​8933)

rector-symfony 🎵

  • [Symfony61] Do not add #[AsCommand] without a name in CommandConfigureToAttributeRector (#​1102) Thanks @​kix
  • Skip first-class callable in CommandConfigureToAttributeRector (#​1104)

rector-phpunit 🟢

  • [PHPUnit90] Handle named and unpacked preg_match() args and skip non-literal expected value in AssertRegExpRector (#​820, #​819) Thanks @​alies-dev
  • [PHPUnit100] Add willReturnOnConsecutiveCalls() variables to closure use() in WithConsecutiveRector (#​821)
  • [PHPUnit120] Skip mocks configured through an alias in ExpressionCreateMockToCreateStubRector (#​823) Thanks @​bbrala
  • [PHPUnit60] Follow parent::test() calls in AddDoesNotPerformAssertionToNonAssertingTestRector (#​826) Thanks @​bbrala
  • [PHPUnit60] Count expectUserDeprecationMessage() as assert, skip test methods in abstract classes and skip tests in classes with own asserting lifecycle methods in AddDoesNotPerformAssertionToNonAssertingTestRector (#​825, #​828, #​831)
  • [PHPUnit60] Speed up AddDoesNotPerformAssertionToNonAssertingTestRector - change node to Class_, cache containsAssertCall() per node and never parse PHPUnit and Symfony base test case methods (#​830, #​829, #​833, #​824)

rector-downgrade-php ⬇️

  • Fix class constant spread from other class crash on DowngradeArraySpreadRector (#​423)

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.32 phpstan/phpstan:2.3.7 rector/rector:2.8.5 --with-all-dependencies --minimal-changes
@private-packagist

Copy link
Copy Markdown
Contributor Author

composer.​lock

Dev Package changes

Package Operation From To About
friendsofphp/php-cs-fixer upgrade v3.95.30 v3.95.32 diff
phpstan/phpstan upgrade 2.3.5 2.3.7 diff
rector/rector upgrade 2.8.4 2.8.5 diff

Settings · Docs · Powered by Private Packagist

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.

0 participants