Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

Build(deps-dev): Bump vimeo/psalm from 3.10.1 to 3.11.0 #220

Merged
merged 1 commit into from
Apr 12, 2020

Conversation

dependabot-preview[bot]
Copy link
Contributor

Bumps vimeo/psalm from 3.10.1 to 3.11.0.

Release notes

Sourced from vimeo/psalm's releases.

Conditional types & faster --diff mode

Features

Conditional Return Types

Psalm now supports conditional return types.

Improved --diff mode

Psalm's --diff mode should now produce all the same issues that running without --diff does (#3024, #3032)

Additionally, it should now run much faster for small changesets.

With this change, --diff-methods is now implied when running --diff.

Improve detection of problematic array types

Previously when dealing with arrays the mixed type subsumed everything in its path. Since Psalm converts any bare PHP array types to array<array-key, mixed>, that mixed type can hide real bugs, such as in the following code: https://psalm.dev/r/a97351e870 (this corresponds to code that caused an outage on vimeo.com).

This version of Psalm introduces slightly more careful array handling, and allows unions on mixed inside arrays in certain circumstances to allow you to catch more of these sorts of errors.

Other features

  • @psalm-property-read and @psalm-property-write are now supported as prefixed versions of @property-read and @property-write - thanks @iggyvolz (#3013)
  • Psalter can now be run without using cache (via --no-cache) - thanks @orklah!
  • You can now use a @psalm-trace annotation to figure out what type Psalm infers for a given variable – thanks @m0003r (#3080, #3106)
  • Docblock inheritance for function params is now just position-dependent, not name dependent as previously (#2722)

Bugfixes

  • improve handling of templated assertions when calling array_filter (#3008)
  • fix templating of properties (#3027, #3035)
  • @return static is now enforced in places it should have been, but was not
  • variables set in conditional branches of while expressions are now more completely understood (#3034)
  • Psalter don’t suggest hard return types for functions that don’t always return (#3030)
  • Allow __invoke to be called on unions with non-objects (#3033)
  • Allow inheritance from classes that only exist in stubs (#2191)
  • Fix class constant access rules for constant defined in subclass (#3014)
  • Use a better method for determining switch case complexity, preventing crashes (#2728)
  • @LeSuisse updated the return value of zip_open
  • Improve handling of generators (#3058, #3057)
  • Prevent array_key_exists calls from changing the array type (#3061)
  • Allow comparing self-returning trait methods in 7.4 without a MethodSignatureMismatch (#3042)
  • Perform more intelligent templating for callable arrays passed to array_map (#3039)
  • Improve handling of intersection types when merging templated types (#3082)
  • Psalm now infers template upper and lower bounds correctly, and will present more useful error messages when they don’t match (#3084)
  • Improve handling of elseif clauses (#3091)
  • Forget what's been asserted in methods when checking constructor initialisation (#3096)
  • @Ocramius improved the return type for ReflectionProperty::getType() (#3093)
  • @lhchavez added the ability to annotate intersections of arrays in docblocks (#3064)
... (truncated)
Commits
  • 5bc9b09 Allow memoisation of ArrayAccess::offsetGet
  • 5988149 Prevent checking assertions on $this-> types, always accessible
  • 9c129f3 Suppress issue for now
  • 547efcc Prevent ArrayAccess on object from being memoised
  • c733d6d Only perform assertions where the property type is known
  • 110df3e Fix ProjectAnalyzer test
  • 95ec189 Remove Amp stubs
  • 370ffa2 Fix #3117 - invalidate all caches when composer lockfile changes
  • 77270dc Getters automagic (#3122)
  • ee50542 Allow users to disable caching full files
  • 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.10.1 to 3.11.0.
- [Release notes](https://github.com/vimeo/psalm/releases)
- [Commits](vimeo/psalm@3.10.1...3.11.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
@codecov
Copy link

codecov bot commented Apr 12, 2020

Codecov Report

Merging #220 into master will not change coverage by %.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##              master      #220   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
  Complexity        41        41           
===========================================
  Files              4         4           
  Lines            159       159           
===========================================
  Hits             159       159           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1cd702a...3ff8755. Read the comment docs.

@ergebnis-bot ergebnis-bot self-requested a review April 12, 2020 19:37
@ergebnis-bot ergebnis-bot self-assigned this Apr 12, 2020
@ergebnis-bot ergebnis-bot merged commit 0e37fb6 into master Apr 12, 2020
@ergebnis-bot ergebnis-bot deleted the dependabot/composer/vimeo/psalm-3.11.0 branch April 12, 2020 19:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant