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.17.1 #255

Closed dependabot-preview[bot] closed 4 years ago

dependabot-preview[bot] commented 4 years ago

Bumps vimeo/psalm from 3.6.4 to 3.17.1.

Release notes

Sourced from vimeo/psalm's releases.

Fix preg_split

3.17.0 added a potentially-erroneous return type when a non-zero $flags param is passed to preg_split. This fixes things.

A bunch of bugfixes

Features

Bugfixes

Fixed XML generation

3.16 broke XML output, this is now fixed (#4252).

Other bugfixes

  • @DanielBadura added a stub for random_int, providing better inference (#4199)
  • Improved signatures for preg_match_all (#4202) and @orklah helped improve preg_split
  • Treat func_num_args as pure (#4215)
  • Fix __invoke declaration crash (#4210)
  • Allow hinting arrow function return types (#4209)
  • Add checks for if ((bool) $foo) (#4206)
  • Fix crash with some class-string property assignments (#4198)
  • @aheart fixed bugs with JUnit generation (#4234)
  • @danog added a bunch of stubs for Spl* classes (#4255)
  • allowMissingFiles was fixed by @ddeboer (#4259)
  • prevent crash after analysing file that defines a class twice (#4264)
  • prevent an infinite loop when analysing a closure unioned with invokable class (#4266)
  • @marcosh added more stubs for array functions (#4271)
  • prevent crash when annotating the intersection of arrays (#4287)
  • Fix reported property id for multiple MissingConstructor issues on a single class (#4297)
  • Prevent crash when trying to negate a positive-numeric assertion (#4306)
  • Fix return types for a few callmap-provided functions (#4309)
  • Prevent a class name validation check on a string argument to a class-string|Foo union (#4310)

Also thanks to @orklah for many linting PRs, and to @weirdan for very good triaging

A smattering of things

Features

New PHPStorm-optimised output format

Added a phpstorm report format that displays errors in a manner that PHPStorm can parse more easily (#4085) – thanks @the-toster (with additional help from @Rarst)

Detection of strpos issues

Psalm will now raise two separate issues for the following code:

</tr></table> ... (truncated)
Commits
  • 8f21179 Do arithmetic for preg_split arguments
  • a6c73a9 Improve preg_split return more
  • 33e3758 Fix #4252 - fix xml generation
  • 662e2ea Fix #4274 - don’t ignore mixed union in array_shift operation
  • dfa8854 Fix #4310 - prevent literal class check on union
  • 042cc06 Add slash
  • c23ef78 Fix #4309 - improve reuse of callmap callable inference
  • 58426d3 Add better return type for preg_split
  • 3887506 Don’t merge array and Traversable to iterable when there are intersections
  • f5ed655 Add changes from PHPStan‘s functionmap
  • 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 #257.