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.11.12 #9

Merged
merged 1 commit into from
Jul 13, 2019

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Jul 8, 2019

This PR contains the following updates:

Package Type Update Change
phpstan/phpstan require-dev patch 0.11.5 -> 0.11.12

Release Notes

phpstan/phpstan

v0.11.12

Compare Source

Fix inherited @return $this / @return static (56b3eb2), #​1648, #​2278

v0.11.11

Compare Source

Fixed when the tip of the day about inferrable private property type is showed (5c7d447), #​2276

v0.11.10

Compare Source

Improvements

  • Infer private property type from constructor (opt-in) (6771e62) - turn on with inferPrivatePropertyTypeFromConstructor: true
  • Handle @inheritdoc without curly braces (#​2054), thanks @​daniel-iwaniec!
  • Introducing 💡 Tips of the Day (0e3914e). Can be turned off with tipsOfTheDay: false.

Bugfixes

  • Fix the incosistency between Type::isSubtypeOf() and accepts() by introducing isAcceptedBy() (08e0288), #​2230, #​2267

v0.11.9

Compare Source

Improvements

  • Support array shapes in phpDocs (c4ed3c7), #​2173, thanks @​arnaud-lb for the work on phpdoc-parser (phpstan/phpdoc-parser#​30)!
    • Added array shapes to the built-in function signatures (f89d730)
    • Added precise callable signatures to the built-in function signatures (133e3b7)
  • Allow @var annotation above array destricturing (1302f31, a3812ef), #​2158
  • Support PhpAdapter for configurations (#​2166), thanks @​mglaman!
  • Virtual FileNode - it's now possible to write rules for example about declare(strict_types = 1) (ed81c3a)
  • Possibility to differentiate between writable and readable type in magic properties (#​1962), thanks @​hrach!
  • Better handling of BenevolentUnionType (697db4b)
  • PrintfParametersRule - work with constant string unions (01b9f60)
  • Support dynamic return type extension for New_ in classes without constructor (5fc3a8d), phpstan/phpstan-doctrine#​62
  • Infer missing typehint in closure based on the parameter the closure is passed to (53c9f3f)

Bleeding edge

See explanation in previous release notes.

  • Too wide private method return type - level 4 (178953d)
  • Too wide closure return type - level 4 (9155530)
  • Too wide function return type - level 4 (78e04aa)
  • Detect invalid types in @var annotation tag - level 2 (25101c4)
  • Detect unknown classes in @var tags - level 2 (42a8618)
  • Detect wrong variable names in @var tags - level 2 (d17e459)
  • Allow @var above more statement types (7d60950)

Bugfixes

Function signature fixes

v0.11.8

Compare Source

Improvements

Bugfixes

Function signature fixes

v0.11.7

Compare Source

Improvements

Bleeding edge

See explanation in previous release notes.

  • Validate parameters config section (54a125d)
  • Mixed with subtracted type cannot be accepted in the subtracted type (3d3e183)

Bugfixes

  • Removed irrelevant default Nette parameters (6b65c31)
  • Scope - support constants defined using the const keyword (63c7d13)
  • Nicer handling of config errors (2613b75)
  • Fixed coalesce operator - right side is not always processed (50b5941), #​2093
  • ObjectType::hasOffsetValueType() is maybe at most (aa08ef3), #​2093
  • Fixed unsetting non-constant array key from ConstantArrayType (4dc595c), #​2121
  • Consistent handling of recursive and nonexistent config files (7346583, 76e733c)

Function signature fixes

v0.11.6

Compare Source

Improvements

  • sprintf() dynamic return type extension (664215a)
  • InvalidThrowsPhpDocValueRule: allow @throws void phpDoc (#​2066), thanks @​pepakriz!
  • Define $container variable with DI container for autoload_files and bootstrap (4824bba)
  • PHPStan will always exit immediately when issued SIGINT (Ctrl-C) signal (#​2051), thanks @​slt!
  • Checkstyle error formatter uses more deterministic relative path helper (a80456d), #​2019
  • Improve InstantiationRule so that it understands expressions with constant strings (#​2091), thanks @​dmitrydymarchuk!
  • Allow phpDoc type hinting local static variables (#​2098), thanks @​iluuu1994!
  • ObjectType::setOffsetValueType() looks into ArrayAccess::offsetSet() method definition (#​1898), thanks @​adaamz!

Bleeding edge

See explanation in previous release notes.

  • Subtractable types - mixed, object and concrete class objects now understands 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.

Bugfixes

  • Fix Composer autoloading for phpstan-shim in global Composer installation and Docker image
  • Fixed %rootDir% in phpstan-shim (f17a5a5)
  • Fix array_fill analysis performance by falling back to ArrayType for large arrays (#​2088), thanks @​dsech!
    * Fixed a couple of problems with anonymous classes (4b52556, 6b9a80e), #​1839
  • Fix ternary operator with error suppression (#​2103), thanks @​iluuu1994!

Function signature fixes


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 if you modify the PR title to begin with "rebase!".

🔕 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 Renovate Bot. View repository job log here.

@abbadon1334 abbadon1334 merged commit 9322c63 into master Jul 13, 2019
@renovate renovate bot deleted the renovate/phpstan-phpstan-0.x branch July 13, 2019 13:43
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