diablomedia / useragent-parser-comparison

Application to compare and benchmark UserAgent parsing libraries
MIT License
7 stars 4 forks source link

Bump vimeo/psalm from 3.6.4 to 4.1.1 #263

Closed dependabot-preview[bot] closed 3 years ago

dependabot-preview[bot] commented 4 years ago

Bumps vimeo/psalm from 3.6.4 to 4.1.1.

Release notes

Sourced from vimeo/psalm's releases.

More attribute checks

Features

More attribute checks

Psalm now checks that you're using attributes correctly (by verifying attribute targets).

int-mask and int-mask-of

This release also brings support for representing bitmasks concisely with the introduction of a new type int-mask.

int-mask<1, 2, 4> is automatically converted to 1|2|3|4|5|6|7.

Another new type, int-mask-of, allows you to represent masks of multiple values from a single source query

Given

class FileFlag {
    public const OPEN = 1;
    public const MODIFIED = 2;
    public const NEW = 4;
}

int-mask-of<FileFlag::*> is equivalent to int-mask<FileFlag::OPEN, FileFlag::MODIFIED, FileFlag::NEW>

Bugfixes

  • Psalm now supports multiline @extends and @implements docblock tags (#4453)
  • Psalm’s cache now gets busted in more situations when using a self-packaged Phar
  • Only treat two variables as the same if they were set in the same place (#4467)
  • Psalm now performs better inference after if (!class_exists($foo, false)) { return; } (#4466)

Support PHP 8 Attributes

Features

This adds basic support for PHP 8 attributes (#4367). Psalm checks attribute arguments, and also emits a UndefinedAttributeClass issue if the attribute cannot be found.

This version of Psalm can also be installed when using PHP 8.

Bugfixes

  • class getIterator calls are used inside loops (#3625)
  • allow Psalm to understand more assignments when evaluating implicit else (#4374)
  • promoted properties are always used in the constructor (#4386)
  • arraylike-object should be Countable too (#4398)
  • signature types (return & param types) weren't being invalidated when their use changed, now they are
  • allow multiple @psalm-assert-if-true on a single variable (#4414)
  • uses better path normalisation when resolveFromConfig="true" so that existing baselines need only small adjustments (#4410)
Commits
  • 16bfbd9 Fix function
  • 3d4e77b Fix int-mask-of expansion
  • 0922813 Use falsy value
  • 6922caf Fix #4466 use better differentiation for class_exists second param
  • 966b139 Fix dupe semicolons
  • 024d93b Fix #4467 - variables are only the same if they were set in the same location
  • f0a30b9 Invalidate child methods when signature changes
  • 6672204 Fix #4464 - bust cache when Psalm’s version changes, not just composer’s
  • 8f05cc9 Add aka
  • 4966754 Fix brackets
  • 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) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)
psalm-shepherd commented 4 years ago

Psalm found errors in other files

src/Command/Analyze.php:299:31 - Cannot access array value on non-array variable $this->comparison[$testName][$compareKey][$compareSubKey][$expectedValue][$parserName][$actualValue] of type int
src/Command/Analyze.php:299:31 - Cannot access array value on non-array variable $this->comparison[$testName][$compareKey][$compareSubKey][$expectedValue][$parserName][$actualValue]['count'] of type int
src/Command/Analyze.php:300:29 - Cannot access array value on non-array variable $this->comparison[$testName][$compareKey][$compareSubKey][$expectedValue][$parserName][$actualValue]['agents'] of type int
src/Command/Normalize.php:165:25 - Possibly undefined variable $data defined in try block
src/Command/Normalize.php:170:35 - Possibly undefined variable $data defined in try block
src/Command/Normalize.php:176:30 - Possibly undefined variable $data defined in try block
src/Command/Normalize.php:187:21 - Possibly undefined variable $data defined in try block
src/Command/Normalize.php:192:37 - Possibly undefined variable $data defined in try block
src/Command/Parse.php:209:21 - Found a redundant condition when evaluating $csvFile of type non-empty-string and trying to reconcile it with a non-falsy assertion
dependabot-preview[bot] commented 3 years ago

Superseded by #265.