psalm-plugin-phpunit icon indicating copy to clipboard operation
psalm-plugin-phpunit copied to clipboard

A PHPUnit plugin for Psalm

Results 30 psalm-plugin-phpunit issues
Sort by recently updated
recently updated
newest added

Adds support for PHPUnit `#[Test]` attribute Closes: #144

If I use the attribute `#[Test]` instead of `testSomething()`, the error `PossiblyUnusedMethod` is not suppressed.

enhancement

When using `@covers`, I would expect psalm to realize that a method is in use, even tho, it is not directly called. AFAIR, `@psalm-api` does mark methods as used as...

Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. Release notes Sourced from actions/checkout's releases. v4.0.0 What's Changed Update default runtime to node20 by @​takost in actions/checkout#1436 Support fetching without the --progress option...

dependencies

I have a question regarding the need to duplicate the types specified in `@return` in a data provider. Given the following test: ```php

Public methods used as data providers are marked as unused when using PHPUnit 10's new `#[DataProvider]` syntax. This also applies to `#[Test]`, `#[Before]`, etc.

enhancement

Previously Psalm would return lists as instances of Type\Atomic\TList. Recently it started returning TKeyedArray with fallback_params instead.

Heya! :) Please excuse this slightly provocative question. The reason I'm asking this is to point out that the readme has literally zero info what this does, only that it's...

This code is valid https://psalm.dev/r/e1d61bda01 But when I use `assertArrayHasKey` and `assertCount`, the offset are reported as possibly undefined. It would be great to tell psalm that ``` assertArrayHasKey work...

The provider docblock line is set [here](https://github.com/psalm/psalm-plugin-phpunit/blob/5dd3be04f37a857d52880ef6af2524a441dfef24/src/Hooks/TestCaseHandler.php#L168), but `$line` is actually the byte offset in the file, not the line number.