Skip to content

Update dependency psalm/plugin-phpunit to v1 - #29

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/psalm-plugin-phpunit-1.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/psalm-plugin-phpunit-1.x

Conversation

@renovate

@renovate renovate Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
psalm/plugin-phpunit ^0.22.0 → ^1.0.0 age adoption passing confidence

Release Notes

psalm/psalm-plugin-phpunit (psalm/plugin-phpunit)

v1.2.0

Compare Source

What's Changed

Features

Full Changelog: psalm/psalm-plugin-phpunit@1.1.0...1.2.0

v1.1.0

Compare Source

Psalter now fixes UnspecificNullAssertion, UnspecificBooleanAssertion and UnspecificEqualsAssertion:

vendor/bin/psalter --issues=UnspecificNullAssertion,UnspecificBooleanAssertion,UnspecificEqualsAssertion
-$this->assertSame(null, $value);
+$this->assertNull($value);
-$this->assertSame(false, $flag, 'Must be false');
+$this->assertFalse($flag, 'Must be false');
-$this->assertEquals(1, $int);
+$this->assertSame(1, $int);

Add --dry-run to preview the changes as a diff without writing them.

This release requires Psalm 7.3 or newer (psalm/psalm-plugin-api ^0.4.2); Psalm 7.2 keeps resolving 1.0.0.

What's Changed

Full Changelog: psalm/psalm-plugin-phpunit@1.0.0...1.1.0

v1.0.0

Compare Source

Upgrading from 0.2X

  • Requirements: PHP 8.2, PHPUnit 11 and Psalm 7.2 or newer. Projects on PHP 8.1, PHPUnit 10 or Psalm 6 keep using 0.22, which still gets bug fixes.
  • PHPUnit 12 and newer ignore metadata in docblocks, and so does the plugin: @test, @dataProvider, @covers and the other tags are reported as IgnoredDocblockMetadata, which names the attribute to use (#[Test], #[DataProvider], #[CoversClass], ...). They no longer make a method a test or a data provider.
  • Data providers are checked more closely:
    • string-keyed datasets are matched to the test parameters by name (InvalidNamedArgument, TooFewArguments);
    • providers with only a native return type (: iterable, : array, : \Generator) have their datasets checked against the type Psalm infers from the provider's body. Where that is not possible they are reported as MixedReturnStatement, asking for a @return type.
  • New issues:
    • UnspecificEqualsAssertion, UnspecificNullAssertion, UnspecificBooleanAssertion and UnspecificCountAssertion (errorLevel="1" only) suggest assertSame() over assertEquals() for two values of one scalar type, and assertNull(), assertTrue() / assertFalse() and assertCount() over assertSame();
    • MissingParentCall reports setUp(), tearDown() and the other hook overrides that never call parent::;
    • InvalidPhpUnitAnnotation reports docblock tags that PHPUnit drops (/** @dataProvider*/, @group(slow));
    • UndefinedClass, UndefinedMethod and UndefinedFunction report missing #[Covers*] / @covers targets and ->method('typo') on mocks.

UnspecificEqualsAssertion can be numerous in older test suites. Rector's AssertEqualsToSameRector fixes it, or it can be turned off:

<issueHandlers>
    <PluginIssue name="UnspecificEqualsAssertion" errorLevel="suppress"/>
</issueHandlers>

What's Changed

Details
Requirements
  • Require PHP 8.2 and PHPUnit 11 (#​202)
  • Drop code for PHPUnit versions before 11 (#​204)
  • Report docblock metadata that PHPUnit 12 ignores (#​210)
New checks
  • Suggest assertNull(), assertTrue() / assertFalse() and assertCount() over assertSame() (#​198)
  • Suggest assertSame() over assertEquals() for two values of one scalar type (#​208)
  • Suggest assertTrue() / assertFalse() over assertEquals(true|false, ...) (#​233)
  • Type createMockForIntersectionOfInterfaces() and createStubForIntersectionOfInterfaces() (#​207)
  • Support #[DataProviderExternal] (#​211)
  • Report undefined methods in ->method('...') on mocks (#​212)
  • Report undefined methods in ->method('...') on unions of mocks (#​231)
  • Report setUp() and tearDown() overrides that don't call the parent (#​215)
  • Report assertPreConditions() and assertPostConditions() overrides that don't call the parent (#​229)
  • Match string-keyed datasets to test parameters by name (#​213)
  • Report string-keyed datasets combined with a dependency that passes a value (#​236)
  • Report positional dataset entries after named ones (#​238)
  • Narrow test parameter types from data providers (#​225)
  • Check that #[Covers*] and @covers targets exist (#​224)
  • Check datasets of #[DataProviderClosure] providers (#​242)
  • Check datasets of providers without a @return type (#​275)
  • Report prophesize() without ProphecyTrait (#​258)
  • Report #[DataProvider('Other::method')] as an undefined provider, like PHPUnit (#​235)
  • Report malformed PHPUnit annotations instead of a missing provider (#​209)
  • Report malformed PHPUnit annotations in the class docblocks of used traits (#​234)
  • Honour @psalm-suppress for data provider and dataset issues (#​257)
  • Ignore the docblock of a method that has any PHPUnit attribute (#​263)
Fixes
  • Read PHPUnit tags in docblocks that also have an unknown @psalm tag (#​232)
  • Report non-static providers implemented by a child of an abstract test case (#​241)
  • Report assertion suggestions in either argument order (#​253)
  • Don't report methods PHPUnit runs as hooks as unused (#​259)
  • Honour setUp() and #[Before] from traits for MissingConstructor (#​260)
  • Don't check data providers of non-public test methods (#​261)
  • Check providers typed iterable<V> or Generator<V> (#​262)
  • Fix TooFewArguments for list<T> datasets (#​264)
  • Report provider arguments that need a coercion as ArgumentTypeCoercion (#​265)
  • Expand imported type aliases in provider checks (#​266)
  • Report mixed dataset values as MixedArgument (#​271)
  • Don't report InvalidArgument for test parameters typed with the method's own templates (#​270)
  • Don't report MixedArgumentTypeCoercion for closure parameters typed with the method's own templates (#​277)
Development
  • Move 1.x development to master (#​228)
  • Use assertSame() in external provider fixtures (#​230)
  • Bump prophecy-phpunit and php_codesniffer dev constraints (#​237)
  • Split TestCase.feature into one feature file per area (#​243)
  • Build the Behat config in Context instead of copying it into every scenario (#​254)
  • Lint the Behat scenarios for checks that silently assert nothing (#​255)
  • Replace PHP_CodeSniffer with PHP-CS-Fixer (#​273)
  • Apply PHP-CS-Fixer (#​276)

Full Changelog: psalm/psalm-plugin-phpunit@0.22.2...1.0.0


Configuration

📅 Schedule: (in timezone UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

Read more information about the use of Renovate Bot within Laminas.

@renovate renovate Bot added the renovate label Nov 15, 2026
@renovate

renovate Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor Author

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: composer.lock
Loading composer repositories with package information
Dependency vimeo/psalm is also a root requirement. Package has not been listed as an update argument, so keeping locked at old version. Use --with-all-dependencies (-W) to include root dependencies.
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires psalm/plugin-phpunit ^1.0.0 -> satisfiable by psalm/plugin-phpunit[1.3.1].
    - psalm/plugin-phpunit 1.3.1 requires vimeo/psalm ^7.8 || dev-master -> found vimeo/psalm[7.8.0, 7.9.0] but it conflicts with your root composer.json require (^6.13).

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

@renovate
renovate Bot force-pushed the renovate/psalm-plugin-phpunit-1.x branch from c0b6d7f to 3e934ed Compare November 15, 2026 16:53
| datasource | package              | from   | to    |
| ---------- | -------------------- | ------ | ----- |
| packagist  | psalm/plugin-phpunit | 0.22.2 | 1.2.0 |


Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@renovate
renovate Bot force-pushed the renovate/psalm-plugin-phpunit-1.x branch from 3e934ed to 9b150e9 Compare November 16, 2026 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants