Skip to content

Update phpstan packages

Mend Renovate requested to merge renovate/phpstan into master

This MR contains the following updates:

Package Type Update Change
phpstan/phpstan require-dev patch 0.12.3 -> 0.12.14
phpstan/phpstan-strict-rules require-dev patch 0.12.0 -> 0.12.2

Release Notes

phpstan/phpstan

v0.12.14

Compare Source

Bugfixes 🐛

Result cache fixes:

Improvements 🔧

  • Error "Ignored error pattern is expected to occur N times but occured M times" can no longer be ignored (phpstan/phpstan-src@304d472)
  • Report error "Ignored error pattern is expected to occur N times but occured only M times" even if only subset of project is analysed (phpstan/phpstan-src@4f53a82)
  • Report error "Ignored error pattern is expected to occur N times but occured only M times" as file-specific (phpstan/phpstan-src@eec492e)

Function signature fixes 🤖

v0.12.13

Compare Source

Fixed problem with result cache that caused it to not be invalidated when the main project configuration file is changed. (phpstan/phpstan-src@5b764c7), #​3036

v0.12.12

Compare Source

Major new features 🚀

Read more about this release at Medium.com!

Parallel analysis

PHPStan runs in multiple threads! This leads to huge performance gain roughly equivalent to the number of your CPU cores! This works on all operating systems and does not require any special PHP extension. This is enabled by default.

Result cache

PHPStan now analyses changed files only (since the last analysis) and the files depending on the changed files! This is enabled by default. Read more about it here.

Bleeding edge🔪

  • Rule for checking null-coalescing ?? operator issues - levels 1 and 4 (#​36), thanks @​leongersen!
  • Rule for checking additional issues like always-defined/never-defined properties, array offsets etc. in isset() - level 4 (phpstan/phpstan-src@25b61d9)

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.

Improvements 🔧

Bugfixes 🐛

Function signature fixes 🤖

v0.12.11

Compare Source

Improvements 🔧

Bugfixes 🐛

Function signature fixes 🤖

v0.12.10

Compare Source

Improvements 🔧

Bleeding edge🔪

PHPStan runs in multiple threads! This leads to huge performance gain roughly equivalent to the number of your CPU cores! This works on all operating systems and does not require any special PHP extension.

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.

Bugfixes 🐛

Function signature fixes 🤖

v0.12.9

Compare Source

Major new features 🚀

Support for custom type aliases (phpstan/phpstan-src@3151160)

Type aliases (also known as typedef) are a popular feature in other languages like TypeScript or C++. Using the following configuration in phpstan.neon will allow you to reference these types in your PHPDocs:

parameters:
    typeAliases:
        Name: 'string'
        NameResolver: 'callable(): string'
        NameOrResolver: 'Name|NameResolver'
/**
 * @​param NameOrResolver $arg
 */
function foo($arg)
{
    // $arg is string|(callable(): string)
}

The development of this feature was sponsored by @​tslettebo.

Several performance optimizations - you should see performance improvements between 10–20%:

Improvements 🔧

Bugfixes 🐛

Function signature fixes 🤖

v0.12.8

Compare Source

Improvements 🔧

Bugfixes 🐛

Function signature fixes 🤖

v0.12.7

Compare Source

v0.12.6

Compare Source

Improvements 🔧

Bleeding edge🔪

See explanation in previous release notes.

Bugfixes 🐛

Function signature fixes 🤖

  • curl_share_setopt() fix $value parameter type (#​97), thanks @​cs278!
  • Corrent return types for DOMDocument::saveHTMLFile and DOMDocument::saveXML (#​103), thanks @​Slamdunk!
  • mysqli_warning::next() will return bool (#​105), thanks @​voku!

v0.12.5

Compare Source

Improvements 🔧

Bugfixes 🐛

Function signature fixes 🤖

v0.12.4

Compare Source

You can now sponsor PHPStan development right here on GitHub! Does GitHub already have your 💳? Do you use PHPStan to find 🐛 before they reach production? Send a couple of 💸 a month my way too. Thank you!

Major new features 🚀

Improvements 🔧

Bugfixes 🐛

Function signature fixes 🤖

phpstan/phpstan-strict-rules

v0.12.2

Compare Source

v0.12.1

Compare Source


Renovate configuration

📅 Schedule: "after 4pm and before 11:59pm every weekday,after 9am and before 11:59pm every weekend" in timezone Europe/London.

🚦 Automerge: Disabled due to failing status checks.

Rebasing: Whenever MR is behind base branch, or you tick the rebase/retry checkbox.

👻 Immortal: This MR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this MR, check this box

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

Edited by Mend Renovate

Merge request reports