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 3.15 #250

Closed dependabot-preview[bot] closed 4 years ago

dependabot-preview[bot] commented 4 years ago

Bumps vimeo/psalm from 3.6.4 to 3.15.

Release notes

Sourced from vimeo/psalm's releases.

Automatically add pure/immutable annotations

Features

This release brings a couple of features that are useful to fans of functional programming.

If you're unfamiliar with these concepts, or want to know how Psalm uses them, read this article first.

Automatic addition of @psalm-pure/@psalm-immutable annotations (#4036):

Running vendor/bin/psalm --alter --issues=MissingPureAnnotation,MissingImmutableAnnotation will add those annotations to any function, method or class that deserves it.

So

function sayHello(string $s): string {
    return 'Hello ' . $s;
}

is transformed into

/**
 * @psalm-pure
 */
function sayHello(string $s): string {
    return 'Hello ' . $s;
}

Note: running this command will not recursively add annotations, so if you have a chain of callers like

function one(string $s) { return two($s); }

function two(string $s) { return $s; }

running the command once will produce

function one(string $s) { return two($s); }

/**

  • @psalm-pure */ function two(string $s) { return $s; }

and running it a second time will produce

Commits
  • de6e7f3 Make reportInfo="false" flag better
  • f6b2d0c Revert trim changes
  • 0519487 Fix type coercion
  • 01140f1 Fix Psalm errors
  • 7fd1e1f Add more accomodations for TPositiveInt
  • 167e1c4 Fix erroneous Closure::__invoke return type
  • c7c0493 Fix #4093 - prevent redundant condition in presence of positive-int
  • 2160396 Config reportInfo to speed up analysis for big projects (#4095)
  • 66bbfea Add null as a possible type parameter to strval (#4100)
  • ffc279e Converted MissingPropertyType to property issue (#4099)
  • 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/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 4 years ago

Superseded by #251.