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

chore(deps): update dependency vimeo/psalm to v3.11.5 #66

Merged
merged 1 commit into from
May 27, 2020

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 27, 2020

This PR contains the following updates:

Package Type Update Change
vimeo/psalm require-dev patch 3.11.4 -> 3.11.5

Release Notes

vimeo/psalm

v3.11.5

Compare Source

Features

Import @​psalm-type annotations into classes

Added support for importing @psalm-type annotations from one class to another based on a suggestion from @​malukenho (in #​2924)

Given a class Phone that defines a @psalm-type annotation on a class:

<?php
/**
 * @&#8203;psalm-type PhoneType = array{phone: string}
 */
class Phone {
    /**
     * @&#8203;psalm-return PhoneType
     */
    public function toArray(): array {
        return ["phone" => "Nokia"];
    }
}

You can reference that type with the @psalm-import-type annotation:

/**
 * @&#8203;psalm-import-type PhoneType from Phone
 */
class User {
    /**
     * @&#8203;psalm-return PhoneType
     */
    function toArray(): array {
        return array_merge([], (new Phone)->toArray());
    }
}   
Other features
  • Psalm now detects a number of unused magic methods (e.g. __get, __set) (#​3236)
  • Psalm now continues its analysis after encountering undefined variables (#​3366)
  • @​dereuromark added a pretty-print option for JSON output
  • Language Server: @​joehoyle added variable assignment hover information (#​3401)

Bugfixes

  • Prevent crashes in method type parsing (#​3340), when @mixin type can't be found (#​3452), when throwing an exception without a known alias (#​3465), and when yielded type tokenisation fails (#​3430)
  • Prevent notice due to empty function id (#​3354)
  • The Phar now doesn’t prefix any Psalm classes (#​3152, #​2904, #​2652)
  • @​nobuf added support for inferring that an object can be cast after is_callable([$var, '__isString']) (#​3372)
  • Psalter: @​orklah added a fix that avoids updating docblocks when no changes are made (#​3374)
  • @​ragboyjr fixed return type inference (based on docblock return type) for arrow functions (#​3376)
  • Eliminate null after > 0 check (#​3388)
  • @​SignpostMarv added numeric-string inference when casting a numeric type to a string (#​3390)
  • @​EvgeniiR helped improve analysis of possibly-correct clone expressions (#​3382)
  • @​orklah improved inference for array_sum (#​3395)
  • Language Server: @​joehoyle fixed bugs around getting symbol information for array shapes (#​3400)
  • Remove possibly-undefined array keys when merging (#​3393)
  • Allow conditional return types with func_num_args() in namespaces (#​3423)
  • Don’t add null to return type as part of reflection when using docblock templates (#​3419)
  • Allow falsy reconciliation for templated params (#​3426)
  • Always treat $this as static-y (#​3417)
  • Flesh out static references in Closure():static return types (#​3415)
  • Prevent a function param typed with a "0"|"1" from accepting a numeric-string type (#​3440)
  • Allow isset checks on undefined static properties (#​3460)
  • Allow conditional return type inference with func_get_args() on instance methods (#​3453)
  • @​still-dreaming-1 improved plugin handling for AfterAnalysisInterface (#​3461)
  • Improve handling of templated @mixin annotation (#​3458)
  • Improve handling of array_key_exists checks (#​3463)

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.

@elvishp2006 elvishp2006 merged commit 9910d47 into master May 27, 2020
@renovate renovate bot deleted the renovate/vimeo-psalm-3.x branch May 27, 2020 18:03
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.

2 participants