Repository navigation
chore(deps): bump phpstan/phpstan from 2.1.45 to 2.2.16 - #6
dependabot[bot] wants to merge 1 commit into
Conversation
|
Left open (gamma, Dependabot run): |
26b558f to
2fe528c
Compare
|
@dependabot rebase |
Bumps [phpstan/phpstan](https://github.com/phpstan/phpstan-phar-composer-source) from 2.1.45 to 2.2.16. - [Commits](https://github.com/phpstan/phpstan-phar-composer-source/commits) --- updated-dependencies: - dependency-name: phpstan/phpstan dependency-version: 2.2.16 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2fe528c to
af3b855
Compare
|
Triage note (not a merge). I rebased this PR (it was BEHIND) and re-ran CI; it is still red. Leaving it open — the blocker is a version pin in CI state after the rebase: run Root cause:
|
|
Addendum to the above — I checked the Rector config, so here is a concrete warning about the bump.
->withPaths([
__DIR__ . '/src',
__DIR__ . '/examples',
__DIR__ . '/bin',
__DIR__ . '/tests',
])Rector 2.3.9 → 2.6.7 is 19 patch releases across a minor bump, and the new sets/rules added along the way (including Also worth knowing: |
…1.45 to 2.2.16 (#24) ## What changed Bump `rector/rector` from `2.3.9` to `2.6.7` and `phpstan/phpstan` from `2.1.45` to `2.2.16` together, with `composer.lock` regenerated. Rector 2.3.9 reads the private `$container` property of `PHPStan\Parser\RichParser`, and that property no longer exists from PHPStan 2.2.6 on, so every Rector below 2.5.8 dies with `MissingPrivatePropertyException` before analysing a single file. That is what made the `phpstan/phpstan` 2.1.45 -> 2.2.16 Dependabot bump (#6) fail `lint` and `ci-ok`. Rector 2.6.7 requires `phpstan/phpstan ^2.2.14`, so the two bumps cannot land apart. Dev dependencies stay pinned exactly, in the style the file already uses. The runtime `packages` array in the lock is empty and unchanged; only `packages-dev` moves. **No source file changes.** Rector 2.6.7 reports an empty autofix across `src`, `examples` and `tests` even though 25 releases of rules apply to this config, so there is nothing to revert and no `CHANGELOG.md` entry: a dev-tool bump is not user-visible here. Closes #23 ## How it was tested - `composer update rector/rector phpstan/phpstan --with-all-dependencies` resolves both pins; `composer why phpstan/phpstan` shows `rector/rector 2.6.7 requires phpstan/phpstan (^2.2.14)`. - `bin/lint.sh` green end to end: composer validate and audit, PHP-CS-Fixer, PHPStan level 9 (`[OK] No errors`), Rector dry run (`[OK] Rector is done!`), shellcheck. - `vendor/bin/phpunit` green: 24 tests, 46 assertions (14 unit + 10 integration). The integration suite ran against a real libpiper built with `make build-libpiper` on this host. - Both tools were negative-controlled so a silent pass could not be mistaken for a clean run: a temporary probe file made Rector fire `SimplifyIfReturnBoolRector`, `RemoveAlwaysElseRector` and `RemoveUnusedPrivateMethodRector`, and a temporary return-type violation made PHPStan report `return.type`. Both probes were deleted; `git status src/` is clean. - Reproduced the original failure in a scratch copy on rector 2.3.9 + PHPStan 2.2.16 to confirm the two bumps really are coupled. - Independent review (Opus, round 1): ACCEPT. ## Checklist - [x] Tests added or updated, and all checks pass _(no test changes: no source behaviour changed; the existing suite covers it and was run)_ - [x] `CHANGELOG.md` updated under `[Unreleased]` _(deliberately not: no user-visible change)_ - [x] Documentation updated _(not needed)_ - [x] Everything is written in English - [x] The PR title is a Conventional Commit (`feat: ...`, `fix: ...`)
|
Closing this in favour of a merged pull request: the same bump is already on
and took Worth noting for the next occurrence: Composer does not catch this. Superseded by #24, merged as
Per |
|
OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting If you change your mind, just re-open this PR and I'll resolve any conflicts on it. |
Bumps phpstan/phpstan from 2.1.45 to 2.2.16.
Commits