Skip to content

@assert =T $x should be supported #10665

@mvorisek

Description

@mvorisek

Feature request

repro: https://phpstan.org/r/9b3e8609-2d32-452c-aef3-79cca1a66569

Currently TestCase::assertTrue(true) is reported as always true, but TestCase::assertSame('x', 'x') is not.

assertions were introduced in phpstan/phpstan-src#1317 and this was already discussed in phpstan/phpstan-src#1317 (comment).

At least = should be supported for strict type equality to make the assertion more consistent with psalm.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions