Skip to content

Commit

Permalink
Merge pull request #2931 from tarlepp/chore(deps)/psalm-major-update
Browse files Browse the repository at this point in the history
Chore(deps) - Psalm major version update
  • Loading branch information
tarlepp authored Feb 7, 2025
2 parents f16d70a + 8528805 commit 6b73943
Show file tree
Hide file tree
Showing 4 changed files with 1,307 additions and 191 deletions.
3 changes: 3 additions & 0 deletions src/Utils/JSON.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ class JSON
* @see http://php.net/manual/en/function.json-encode.php
* @see http://php.net/manual/en/function.json-last-error.php
*
* @psalm-suppress FalsableReturnStatement
* @psalm-suppress InvalidFalsableReturnType
*
* @param mixed $input The value being encoded. Can be any type except a resource.
* @param int|null $options Bitmask consisting of JSON_HEX_QUOT, JSON_HEX_TAG, JSON_HEX_AMP, JSON_HEX_APOS,
* JSON_NUMERIC_CHECK, JSON_PRETTY_PRINT, JSON_UNESCAPED_SLASHES, JSON_FORCE_OBJECT,
Expand Down
2 changes: 2 additions & 0 deletions tests/Unit/Utils/JSONTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ public static function dataProviderTestThatDecodeThrowsAnExceptionOnMalformedJso
/**
* Data provider for 'testThatEncodeThrowsAnExceptionOnInvalidUtfCharacters'.
*
* @psalm-suppress MoreSpecificReturnType
*
* @return Generator<array{0: string}>
*/
public static function dataProviderTestThatEncodeThrowsAnExceptionOnInvalidUtfCharacters(): Generator
Expand Down
8 changes: 4 additions & 4 deletions tools/03_psalm/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
},
"require-dev": {
"roave/security-advisories": "dev-latest",
"psalm/plugin-phpunit": "0.19.0",
"psalm/plugin-symfony": "5.2.6",
"vimeo/psalm": "5.26.1",
"weirdan/doctrine-psalm-plugin": "2.9.0"
"psalm/plugin-phpunit": "0.19.2",
"psalm/plugin-symfony": "5.2.7",
"vimeo/psalm": "6.1.0",
"weirdan/doctrine-psalm-plugin": "2.10.0"
},
"config": {
"allow-plugins": true,
Expand Down
Loading

0 comments on commit 6b73943

Please sign in to comment.