Bibi
Bibi
Yes, with this change, Pslam does not more complain about invalid argument.
Hello, I open this error again because Pslam complains about the following code: ```php private function getDefaultPermissions(): FlagBag { return FlagBag::from(Permissions::Execute , Permissions::Write, Permissions::Read); } ``` `Argument 2 of Elao\Enum\FlagBag::from...
OK. I tested with a new specific PHPStan annotation and it's work for both (PHPStan and Pslam): ```php /** * @param class-string|T $enumOrType * * @phpstan-return FlagBag * * @psalm-template...
Any news about this ? Thanks
It is not working for me. I tried with the following annotations (using a new named template): ```php /** * @template E of \BackedEnum * * @param class-string $enumType *...
It's just matter of update depencies in `package.json` : Before: ```json "glob": "^7.1.6" ``` After: ```json "glob": "^11.0.1" ```
It's correct. But no definition exist for the `reduce()` function in the collections stub.
FYI: Please see how is implemented in [phpstan/phpstan-doctrine v1.5.5](https://github.com/phpstan/phpstan-doctrine/releases/tag/1.5.5)
This is my simple test with an array: ```php public function testNamerWithArray(): void { $prop = new PropertyMapping( 'image', 'imageName', [ 'namer' => DummyNamer::class, ] ); $object = [ 'image'...