Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency phpstan/phpstan to v0.12.14 #22

Merged
merged 1 commit into from
Mar 3, 2020

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Aug 14, 2019

This PR contains the following updates:

Package Type Update Change
phpstan/phpstan require-dev minor 0.11.12 -> 0.12.14

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 🤖

v0.12.3

Compare Source

Improvements

Bugfixes

Function signature fixes

  • Add method signatures for MemcachePool (part of Memcache extension) (#​46), thanks @​fabacino!
  • Allow array only as argument for key(), current(), next(), prev(), reset() (#​53), thanks @​Slamdunk!
  • functionMap: fix return type of Phar::offsetGet() this is incorrectly written as int on php.net. (#​54), thanks @​dktapps!
  • ssh2-functions can return false on error (#​49), thanks @​Daeroni!
  • ImagickDraw color set methods accept string in addition of ImagickPixel (#​48), thanks @​Daeroni!
  • functionMap: fixed return types for ReflectionFunctionAbstract::getClosureScopeClass() and ReflectionFunctionAbstract::getClosureThis() (#​55), thanks @​dktapps!
  • Updates imagecropauto for optional parameters (#​56), thanks @​gms8994!
  • Do not mark array_replace and array_replace_recursive with nullable return type (phpstan/phpstan-src@21e9c13), #​2328

v0.12.2

Compare Source

v0.12.1

Compare Source

Improvements

Bugfixes

Function signature fixes

v0.12.0

Compare Source

This is a massive release! Check out the accompanying article on Medium.com for an overview of the major new features.

PHPStan 0.12 is brought to you by Gábor Hojtsy (@​gaborhojtsy):

PHPStan has already been tremendous help in our preparation for Drupal 9 across the whole Drupal ecosystem, as a backbone of drupal-check, Upgrade Status and drupalci deprecation testing. It allows us to find common patterns in deprecated API use, make critical tooling decisions and rally the community. Thank you!

Major new features

  • Generics (huge thanks to @​arnaud-lb!) See this article for more details on what they can do for you and how to start using them.
  • New level 6 - checking for missing typehints in function and method parameters and in properties. Previous level 6 is now level 7 and previous level 7 is now level 8.
  • Integer range types (#​2484), thanks @​JanTvrdik!
  • PHAR distribution by default - phpstan/phpstan Composer package now consists of a single PHAR file, similarly to the role previously handled by phpstan-shim repository which is now obsoleted. PHPStan development now happens at https://github.com/phpstan/phpstan-src.
  • Detection of methods and functions with no side effects called on separate lines - level 4. Functions like sprintf() and methods like DateTimeImmutable::setTime() called without reading the returned value are now detected.
  • Support for class-string and class-string<T> pseudotypes (phpstan/phpstan-src@77eb141, phpstan/phpstan-src@6262320)
  • Subtractable types - subtract subtypes from their supertype to find errors in code. mixed, object and concrete class objects now understand if their subtype is being subtracted from them. So for example a prior check for null on mixed now makes PHPStan understand that the type does not contain null anymore. This is especially useful for parent and child classes. See examples.
  • Check missing return in functions, methods, and closures - levels 0 and 3 (phpstan/phpstan-src@b149f8e)
  • Check for unreachable statements - level 4 (phpstan/phpstan-src@83078fe)
  • Check: new static() is safe only with final constructor or in final class - level 0 (phpstan/phpstan-src@3ebf508)
  • Check too wide return types on functions, closures and private methods (phpstan/phpstan-src@178953d, phpstan/phpstan-src@9155530, 78e04aa)
  • Various yield and generators related checks (phpstan/phpstan-src@c952192, phpstan/phpstan-src@96c57c6, phpstan/phpstan-src@83e1163)
  • Detect invalid types and wrong variable names in @var annotation tag - level 2 (phpstan/phpstan-src@25101c4, phpstan/phpstan-src@42a8618, phpstan/phpstan-src@d17e459)
  • Wrong 3rd party PHPDocs can now be overriden with custom stub files. Create PHP stub files like this and register them in your phpstan.neon using stubFiles config option. This feature can also be used to make non-generic classes and interfaces generic. Only PHPDocs are read from those files right now, nothing else.

BC breaks

  • Resolving relative paths in NEON according to config file placement (0c17a5b)
    • This means you no longer have to use ugly %rootDir%/../../../ in paths, but can use a relative path which is resolved relatively to the config file placement. So if you have phpstan.neon in the root of your project, you can reference your src/Foo.php file simply by src/Foo.php, no matter what the current working directory in your CLI prompt is.
  • Unknown config parameters are reported as errors. This prevents typos.
  • Docker image is based on official PHP Alpine image. See README on how to enable PHP extensions.

BC breaks for extension developers

Improvements and bugfixes

Link to range of commits on GitHub. Everything that has been merged and fixed so far is included in this release.

v0.11.19

Compare Source

Fixed regression - error in trait can be ignored by both the class context file path and the trait file path (63cc502), #​2532

v0.11.18

Compare Source

Bugfixes

  • BaselineNeonErrorFormatter - use deterministic simpleRelativePathHelper (38e8c90), #​2528
  • BaselineNeonErrorFormatter - fixed trait paths (445212b), #​2526

v0.11.17

Compare Source

Read more about the baseline in an article about this release!

What's new

  • Baseline feature using baselineNeon error formatter (286e526), #​2523, thanks @​marcelthole!
  • ignoreErrors - support for expected count in file path (c327552)
  • CLI option to allow Xdebug for debugging purposes (--xdebug). Xdebug is disabled by default. (3b379a3)

v0.11.16

Compare Source

Improvements

Bleeding edge

See explanation in previous release notes.

  • While loop - detect unreachable code after infinite loop (13af8bd)
  • Do-while - detect unreachable code after infinite loop (1d13005)

Bugfixes

  • Move PSR-4 to build/PHPStan to require-dev (#​2375), thanks [@&#8203

Renovate configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

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

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


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

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

@renovate renovate bot force-pushed the renovate/phpstan-phpstan-0.x branch from da95558 to 43a4c1b Compare August 17, 2019 14:46
@renovate renovate bot changed the title Update dependency phpstan/phpstan to v0.11.13 Update dependency phpstan/phpstan to v0.11.14 Aug 17, 2019
@renovate renovate bot force-pushed the renovate/phpstan-phpstan-0.x branch from 43a4c1b to 0106d6c Compare August 18, 2019 21:45
@renovate renovate bot changed the title Update dependency phpstan/phpstan to v0.11.14 Update dependency phpstan/phpstan to v0.11.15 Aug 18, 2019
@renovate renovate bot force-pushed the renovate/phpstan-phpstan-0.x branch 2 times, most recently from 1059ac6 to 627b166 Compare September 17, 2019 12:48
@renovate renovate bot changed the title Update dependency phpstan/phpstan to v0.11.15 Update dependency phpstan/phpstan to v0.11.16 Sep 17, 2019
@renovate renovate bot force-pushed the renovate/phpstan-phpstan-0.x branch from 627b166 to 01188a9 Compare October 20, 2019 13:32
@renovate renovate bot changed the title Update dependency phpstan/phpstan to v0.11.16 Update dependency phpstan/phpstan to v0.11.17 Oct 20, 2019
@renovate renovate bot force-pushed the renovate/phpstan-phpstan-0.x branch from 01188a9 to 612ec9e Compare October 21, 2019 21:53
@renovate renovate bot changed the title Update dependency phpstan/phpstan to v0.11.17 Update dependency phpstan/phpstan to v0.11.18 Oct 21, 2019
@renovate renovate bot force-pushed the renovate/phpstan-phpstan-0.x branch from 612ec9e to dfc28a3 Compare October 22, 2019 22:36
@renovate renovate bot changed the title Update dependency phpstan/phpstan to v0.11.18 Update dependency phpstan/phpstan to v0.11.19 Oct 22, 2019
@renovate renovate bot force-pushed the renovate/phpstan-phpstan-0.x branch from dfc28a3 to b10b98d Compare December 14, 2019 17:59
@renovate renovate bot changed the title Update dependency phpstan/phpstan to v0.11.19 Update dependency phpstan/phpstan to v0.12.3 Dec 14, 2019
@renovate renovate bot force-pushed the renovate/phpstan-phpstan-0.x branch from b10b98d to 29234aa Compare January 18, 2020 15:57
@renovate renovate bot changed the title Update dependency phpstan/phpstan to v0.12.3 Update dependency phpstan/phpstan to v0.12.5 Jan 18, 2020
@renovate renovate bot force-pushed the renovate/phpstan-phpstan-0.x branch from 29234aa to 697a76c Compare February 9, 2020 01:57
@renovate renovate bot changed the title Update dependency phpstan/phpstan to v0.12.5 Update dependency phpstan/phpstan to v0.12.9 Feb 9, 2020
@renovate renovate bot force-pushed the renovate/phpstan-phpstan-0.x branch from 697a76c to 492a569 Compare February 22, 2020 16:55
@renovate renovate bot changed the title Update dependency phpstan/phpstan to v0.12.9 Update dependency phpstan/phpstan to v0.12.11 Feb 22, 2020
@renovate renovate bot force-pushed the renovate/phpstan-phpstan-0.x branch from 492a569 to 5b68186 Compare March 3, 2020 19:07
@renovate renovate bot changed the title Update dependency phpstan/phpstan to v0.12.11 Update dependency phpstan/phpstan to v0.12.14 Mar 3, 2020
@renovate renovate bot force-pushed the renovate/phpstan-phpstan-0.x branch 4 times, most recently from 27660ad to 3557307 Compare March 3, 2020 20:29
@renovate renovate bot force-pushed the renovate/phpstan-phpstan-0.x branch from 3557307 to 158966b Compare March 3, 2020 21:09
@abbadon1334 abbadon1334 merged commit ede8c02 into master Mar 3, 2020
@renovate renovate bot deleted the renovate/phpstan-phpstan-0.x branch March 3, 2020 21:28
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.

None yet

2 participants