proget-hq / phpstan-yii2

Yii2 extension for PHPStan
MIT License
52 stars 17 forks source link

Advertise support for PHP 8.0 #35

Closed EtienneBruines closed 3 years ago

EtienneBruines commented 3 years ago

When actually installing this on PHP 8.0, it still cannot due to php-cs-fixer. But, that's out-of-scope for this phpstan-yii2 project, meaning that this project is actually compatible.

  Problem 1
    - friendsofphp/php-cs-fixer is locked to version v2.16.7 and an update of this package was not requested.
    - friendsofphp/php-cs-fixer v2.16.7 requires php ^7.1 -> your php version (8.0.0) does not satisfy that requirement.

Composer will automatically allow installing it then, once php-cs-fixer has been updated as well.

EtienneBruines commented 3 years ago

How do we bring composer.lock up-to-date in this repo?

  Problem 1
    - yiisoft/yii2[2.0.15, ..., 2.0.15.1] require bower-asset/jquery 3.2.*@stable | 3.1.*@stable | 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> found bower-asset/jquery[3.5.1] but it does not match the constraint.
    - yiisoft/yii2[2.0.16, ..., 2.0.18] require bower-asset/jquery 3.3.*@stable | 3.2.*@stable | 3.1.*@stable | 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> found bower-asset/jquery[3.5.1] but it does not match the constraint.
    - yiisoft/yii2[2.0.19, ..., 2.0.35] require bower-asset/jquery 3.4.*@stable | 3.3.*@stable | 3.2.*@stable | 3.1.*@stable | 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> found bower-asset/jquery[3.5.1] but it does not match the constraint.
    - yiisoft/yii2[2.0.36, ..., 2.0.39.3] require bower-asset/jquery 3.5.*@stable | 3.4.*@stable | 3.3.*@stable | 3.2.*@stable | 3.1.*@stable | 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> found bower-asset/jquery[3.5.1] in lock file but not in remote repositories, make sure you avoid updating this package to keep the one from lock file.
    - Root composer.json requires yiisoft/yii2 ^2.0.15 -> satisfiable by yiisoft/yii2[2.0.15, ..., 2.0.39.3].
EtienneBruines commented 3 years ago

@marmichalski @akondas anything I can do to help this project?

akondas commented 3 years ago

You can try to run composer update --lock

EtienneBruines commented 3 years ago

Thank you for your reply.

That requires composer to have access to bower-asset, which is currently not defined in the composer.json file. See https://github.com/proget-hq/phpstan-yii2/pull/35#issuecomment-737243765

Could we add this to the composer.json file?

"repositories": [
    {
        "type": "composer",
        "url": "https://asset-packagist.org"
    }
]
EtienneBruines commented 3 years ago

@akondas that would then result in the current commit.

marmichalski commented 3 years ago

Thanks 🥰

akondas commented 3 years ago

New release?