Skip to content

TodoByPackageVersionRule uses PHPStan's InstalledVersions class #146

@ruudk

Description

@ruudk

Thanks for this amazing extension.

I just noticed that the TodoByPackageVersionRule is not working properly.

It's reading the installed versions from phar:///Volumes/CS/www/cosmos/vendor/phpstan/phpstan/phpstan.phar/vendor/composer/InstalledVersions.php

See

Image

This makes checks like this:

// TODO symfony/console:v7.3.0 test this should trigger

Worthless, because they are always compared to PHPStan's version of Console, which is:
https://github.com/phpstan/phpstan-src/blob/c0f2e9e9235db973784d88b107bc8c14ecb647d0/composer.json#L42

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions