Skip to content

Add PhpVersion::__construct to BC promise #8582

Open
phpstan/phpstan-src
#4022
@janedbal

Description

@janedbal

Bug report

Doing new PhpVersion(80_000) causes Creating new PHPStan\Php\PhpVersion is not covered by backward compatibility promise. The class might change in a minor PHPStan version., but I think it should be preferred way to test different PHP versions in PHPStan rules tests. Like here.

Code snippet that reproduces the problem

new PhpVersion(80_000);

Expected output

No error produced

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