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

Build(deps-dev): Bump vimeo/psalm from 3.11.2 to 3.11.4 #66

Merged
merged 1 commit into from
May 11, 2020

Conversation

dependabot-preview[bot]
Copy link
Contributor

Bumps vimeo/psalm from 3.11.2 to 3.11.4.

Release notes

Sourced from vimeo/psalm's releases.

Fix loop unset crash introduced by 3.11.3

Use of unset inside a loop on variables initialised before the loop was entered resulted in a crash after a change in 3.11.3

Add more comprehensive support for conditional types

Features

func_num_args() in conditional types

Having added support for conditional types in 3.11.0, this release fleshes out that support, adding the ability (among other things) to return different values based on the number of passed arguments.

You can use func_num_args() in your definition to change the function's behaviour.

/**
  * @return (func_num_args() is 0 ? false : string)
 */
function zeroArgsFalseOneArgString(string $s = "") {
    if (func_num_args() === 0) {
        return false;
    }
    return $s;
}
zeroArgsFalseOneArgString(); // type inferred as false
zeroArgsFalseOneArgString(""); // type inferred as string
zeroArgsFalseOneArgString("hello"); // type inferred as string

Improved inference for date calls

Psalm now understands when the date function can return a numeric string.

Language Server options

@pristinesource added a bunch of additional language server options in #3161

Constructor initialisation method checks

In #3201 @weirdan pointed out that there was problem with Psalm's property initialisation checks when a public or protected method that initialises a property is overridden in a subclass, such that the property initialisation never takes place. Psalm was ignorant of issue.

With this release, if you initialise a property in a public or protected method, that method has to be declared final or Psalm will complain that the property isn't properly initialised.

Templated @mixin

@mixin SomeTemplate is now valid, as is @mixin SomeGenericClass<int> (#3237) – thanks @mr-feek for help here!

Improved RecursiveIteratorIterator return types

As part of the above, Psalm now has a better understanding of RecursiveIteratorIterator calls (#3228)

... (truncated)
Commits
  • 58e1d8e Fix test with unset in loop
  • 3554aa4 Fix crash newly introduced
  • 8133022 Improve rendering of tuples
  • 8bfe917 Add the is_list flag to object-like tuples
  • eefd2e7 Use generic function definition for sscanf
  • 8f2f261 Improve refactor
  • 5f4d162 Break out type expander into separate class
  • 7dd1823 fix: code location is nullable (#3334)
  • fa601f9 update proc_open() types for PHP 7.4 (#3333)
  • 48da7a4 Fix issues found with Vimeo’s code
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in the .dependabot/config.yaml file in this repo:

  • Update frequency
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Bumps [vimeo/psalm](https://github.com/vimeo/psalm) from 3.11.2 to 3.11.4.
- [Release notes](https://github.com/vimeo/psalm/releases)
- [Commits](vimeo/psalm@3.11.2...3.11.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
@ergebnis-bot ergebnis-bot self-requested a review May 11, 2020 19:37
@ergebnis-bot ergebnis-bot self-assigned this May 11, 2020
@ergebnis-bot ergebnis-bot merged commit b8b1cc0 into master May 11, 2020
@ergebnis-bot ergebnis-bot deleted the dependabot/composer/vimeo/psalm-3.11.4 branch May 11, 2020 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant