erunion / mill

☴ An annotation-based DSL for documenting a REST API.
MIT License
39 stars 2 forks source link

chore(deps-dev): Bump vimeo/psalm from 3.8.3 to 3.9.3 #270

Closed dependabot-preview[bot] closed 4 years ago

dependabot-preview[bot] commented 4 years ago

Bumps vimeo/psalm from 3.8.3 to 3.9.3.

Release notes

Sourced from vimeo/psalm's releases.

Adjust config flag behaviour for mixed issues

Version 3.9.0 essentially changed the default reporting level for a host of Mixed issues.

In retrospect this was not the best idea – people saw a (non-error-related) number go up (because of all the newly-reported mixed issues), and people don't like numbers going up.

So this reverts that behaviour – any project that had totallyTyped="false" before will show the same errors & info as it did in 3.8.

This also introduces new flag reportMixedIssues (documented here) that allows more fine-grained control than totallyTyped offers.

Fix a few incompatibilities introduced in 3.9.0

Psalm had an existing issue where it failed to detect the bug in the following code:

class A {
  public function __toString() { return (string) rand(0, 10); }
}

function foo(A $a) { if ($a === "1" || $a === "2") {} // this will never work }

Fixing this unearthed a few potential bugs added in 3.9.0 – out of an abundance of caution I'm doing another point release.

Allow totallyTyped config flag to work again

This fixes vimeo/psalm#2832

Improve initialisation

Running psalm --init can be confusing for first-timers.

When you run --init in the latest version it will scan your project to figure out the most appropriate starting level (here's an exhaustive list of all the error levels, and what they mean: https://psalm.dev/docs/running_psalm/error_levels/).

Instead of creating a large config file with a lot of issues, Psalm will now just make a note of the error level at the top of the file (this approach is modelled after PHPStan, which has used it for a number of years).

Other features

  • calling assert(...) on an value right after assigning to it cancels out any MixedAssignment issues (#2442)
  • this adds lowercase-string for when you want the type system to enforce a given string's lowercased-ness. Mainly used for Psalm internals.
  • Psalm will now automatically run in multiple processes wherever possible

Bugfixes

  • A few small bugfixes when using --diff mode
  • Fixed an issue when overriding FilterIterator::accept – thanks @weirdan! (#2761)
  • Allow properties with generic types to be initialised to equivalent objects with empty generic params (#2771)
  • Add support for multiple closure params when calling array_map (#2772)
  • Warn about possible paradoxes in assert calls (#2742)
  • Prevent checkstyle being corrupted when using Shepherd - thanks @staabm! (#2778)
  • Improve templating for method calls on objects that implement template params (#2764)
... (truncated)
Commits
  • 2e4154d Add better defaults and documentation
  • c9494c4 Hide mixed issues if totallyTyped="false"
  • 23b9331 Hide mixed errors if your error level is >= 3
  • aea3382 Fix #1555 - allow phantom class constants
  • 520b646 Add suppressMixedIssues config flag to hide mixed issues
  • 87d8947 Fix phpcs
  • eadf2f8 Improve the reported error when a worker crashes
  • 0e23fab Detect bugs similar to that which caused #2832
  • 9230b42 Ors can still be created directly from conditions
  • 6e80887 Use better return type for SimpleXMLElement::offsetGet
  • 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 use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@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 your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)
dependabot-preview[bot] commented 4 years ago

Superseded by #274.