Skip to content

Update phpstan to v1.6.1#107

Merged
renovate[bot] merged 1 commit into
masterfrom
renovate/phpstan
Apr 27, 2022
Merged

Update phpstan to v1.6.1#107
renovate[bot] merged 1 commit into
masterfrom
renovate/phpstan

Conversation

@renovate
Copy link
Copy Markdown

@renovate renovate Bot commented Apr 27, 2022

WhiteSource Renovate

This PR contains the following updates:

Package Type Update Change
phpstan/phpstan require-dev minor 1.5.7 -> 1.6.1
phpstan/phpstan-strict-rules require-dev minor 1.1.0 -> 1.2.0

Release Notes

phpstan/phpstan

v1.6.1

Compare Source

Bugfixes 🐛

v1.6.0

Compare Source

Read the article about PHPStan 1.6.0 »

Major new features 🚀

  • Conditonal return types (pull requests), #​3853, big thanks to @​rvanvelzen!
    • Allows return types in the form of @return ($i is positive-int ? non-empty-array : array) (don't forget the parentheses!)
    • Another possible form is with generic @template tags: @return (T is positive-int ? non-empty-array : array)
  • int-mask<...> and int-mask-of<...> types (#​1166), thanks @​rvanvelzen!
  • Allow global constants as PHPDoc types (#​1163), thanks @​rvanvelzen!
  • Update php-8-stubs to know about PHP 8.1 function signature changes, #​7017, #​6448
  • Make isset() and null-coalesce (??) operators consistent with each other (#​1223), thanks @​rajyan!
    • New option checkDynamicProperties to restore the original stricter behaviour (#​1234), thanks @​rajyan!

Bleeding edge 🔪

  • Fully static reflection engine
    • After feedback is gathered and processed, this will be enabled for everyone later in PHPStan 1.x release cycle.
  • Lower memory consumption thanks to breaking up of reference cycles
    • This is a BC break for rules that use 'parent', 'next', and 'previous' node attributes. Learn more »
    • In testing the memory consumption was reduced by 50–70 %.
  • ArrayUnpackingRule (level 3) (#​856), thanks @​canvural!
  • Rules for checking direct calls to __construct() (level 2) (#​1208), #​7022, thanks @​muno92!
  • checkMissingIterableValueType: false no longer does anything (phpstan/phpstan-src@50d0c8e)

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 🐛

Function signature fixes 🤖

phpstan/phpstan-strict-rules

v1.2.0

Compare Source

  • afbe1e3 - Bleeding edge - set checkDynamicProperties to true
  • 5fd5935 - Require PHPStan 1.6.0
  • 48af1b4 - chore(deps): update dependency slevomat/coding-standard to v7.1
  • 313a97a - Drop alias
  • fda0781 - Drop support for PHP 7.1, require PHPStan 1.5.0
  • 7c68f14 - Update workflow
  • a2ec629 - chore(deps): update dependency slevomat/coding-standard to v7.0.20
  • 6f79156 - chore(deps): update dependency slevomat/coding-standard to v7.0.19
  • 53a8867 - chore(deps): update actions/checkout action to v3
  • 21f7c1b - fix build after phpstan-src change
  • 32d667d - chore(deps): update dependency slevomat/coding-standard to v7
  • cb75e7c - Update renovate.json
  • e7c273e - Update lock-closed-issues.yml
  • 698c15b - chore(deps): update github-actions
  • 6878154 - chore(deps): update metcalfc/changelog-generator action to v1.0.1
  • c6d6ca0 - Delete dependabot.yml
  • b451fb4 - Update and rename renovate.json to .github/renovate.json
  • b36180e - chore(deps): add renovate.json
  • 47b03fb - docs(readme): improve "Enabling rules one-by-one"
  • 38008d0 - Update phpunit.xml
  • 8646e9d - Update release.yml
  • d883e37 - Tweet release action
  • 3468390 - Allow Composer plugins
  • d992449 - Composer > Remove --no-suggest
  • 4619c66 - Fixed incorrect branch alias

Configuration

📅 Schedule: "before 4am every weekday" (UTC).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by WhiteSource Renovate. View repository job log here.

@renovate renovate Bot added the maintenance Housekeeping label Apr 27, 2022
@renovate renovate Bot merged commit 7d876b9 into master Apr 27, 2022
@renovate renovate Bot deleted the renovate/phpstan branch April 27, 2022 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Housekeeping

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant