psalm 5.1

This commit is contained in:
Farhad Safarov 2022-12-12 06:43:40 +03:00
parent 44f61e2016
commit 16398e69d2
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@
"php": "^7.4 || ^8.0", "php": "^7.4 || ^8.0",
"ext-simplexml": "*", "ext-simplexml": "*",
"symfony/framework-bundle": "^5.0 || ^6.0", "symfony/framework-bundle": "^5.0 || ^6.0",
"vimeo/psalm": "^5.0" "vimeo/psalm": "^5.1"
}, },
"require-dev": { "require-dev": {
"symfony/form": "^5.0 || ^6.0", "symfony/form": "^5.0 || ^6.0",

View File

@ -7,9 +7,9 @@ interface DenormalizerInterface
/** /**
* @template TObject of object * @template TObject of object
* @template TType of string|class-string<TObject> * @template TType of string|class-string<TObject>
* @psalm-param mixed $data *
* @psalm-param TType $type * @psalm-param TType $type
* @psalm-return (TType is class-string<TObject> ? TObject : mixed) * @psalm-return (TType is class-string<TObject> ? TObject : mixed)
*/ */
public function denormalize($data, string $type, string $format = null, array $context = []); public function denormalize(mixed $data, string $type, string $format = null, array $context = []);
} }