yiisoft / json

JSON encoding and decoding
https://www.yiiframework.com/
BSD 3-Clause "New" or "Revised" License
26 stars 8 forks source link

Update vimeo/psalm requirement from ^4.2 to ^4.3 #22

Closed dependabot[bot] closed 3 years ago

dependabot[bot] commented 3 years ago

Updates the requirements on vimeo/psalm to permit the latest version.

Release notes

Sourced from vimeo/psalm's releases.

4.3.0

Features

  • UnusedConstructor is now a separate issue from UnusedMethod. This allows people to use the private constructor pattern to prevent instantiation of classes that just have static methods (#4656)
  • RedundantCast is now a separate issue from RedundantCondition. It is now emitted for more redundant casts thanks to @orklah adding better detection (#4695)
  • @odoucet added support for the CodeClimate output format (#4387)
  • @weirdan added a test to ensure all new Psalm annotations are documented (#4723)
  • RedundantPropertyInitializationCheck is now emitted for isset checks on class properties that Psalm thinks should be defined. This allows users who prefer to initialize properties outside constructors to silence just that issue (#4732)

Bugfixes

Psalter

  • @orklah added support for adding static return types when running in PHP 8 (#4641)
  • @orklah added support for adding int|string phpdoc standin for array-key (#4645)
  • @orklah added support for adding string phpdoc standin for Foo::class (#4651)
  • use union types in PHP 8 wherever possible (#4643)

Taint analysis

PHP 8 compatibility

  • Promoted properties are always treated as initialised (#4615)
  • Flag invalid attribute arguments (#4611)
  • Ensure classes used as attributes themselves have the Attribute attribute (#4475)
  • Ensure the Attribute attribute is only valid on classes (#4609)
  • @orklah fixed param names on core functions to enable named-argument calling in PHP 8 (#4745)
  • @orklah fixed return type additions when returning from finally (#4746)

Miscellaneous

  • Allow the Phar to run in PHP 7.2 (#4640)
  • Prevent crash with recursively-defined @psalm-type in root namespace (#4653)
  • @staabm made many file-based functions impure (#4674, #4676, #4679, #4678)
  • @erikjwaxx narrowed the return type for $a <=> $b (#4680)
  • @orklah prevented the use of illegal array keys (#4660)
  • @BenMorel added a better return type for `PDOStatement::fetchObject' (#4682)
  • treat isset like !== null when the variable is defined (#4699)
  • @orklah fixed an incorrect cast to int when the integer is very large (#4702)
  • @LeSuisse fixed a bug in the taink sink map (#4703)
  • @orklah fixed reconciliation of is_object($some_iterable) (#4712)
  • use correct keys when a list with a known length is compared to an array (#3017)
  • template types are no longer substituted when they’re defined on the same class (#4733)
  • provide better support for nested template type definitions (#4731)
  • @orklah ensured that non-emptiness is treated as a docblock-level assertion (#4736)
  • @orklah added much better typing for bitshift operators (#4740)

... (truncated)

Commits
  • 6f91655 Ref #4753 - allow int literals to inform key type
  • db8a3ab Fix #4751 - allow MethodSignatureMismatch to be overridable when info comes f...
  • e2bb02e Don’t suggest a potential value that’s undefined
  • b64eb6d Break out array_key_exists tests
  • a2b20f0 Fix #4752 - add property base assertions too
  • 496ce46 Break out method
  • f0876b8 Avoid false-positives while analysing memoised coalesce
  • 394eceb Memoize coalesce expression in more scenarios
  • 928fdda Don’t do new isset conversion on try-set vars
  • 1feca32 Fix loading imported functions
  • Additional commits viewable in compare view


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)