Skip to content

Update phpstan/tally to ^1.0.1 - #7072

Merged
ondrejmirtes merged 2 commits into
2.3.xfrom
update-tally-1.0
Nov 14, 2026
Merged

ondrejmirtes merged 2 commits into
2.3.xfrom
update-tally-1.0

Conversation

@ondrejmirtes

@ondrejmirtes ondrejmirtes commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

Moves phpstan/tally from dev-release/1.x to the tagged 1.0.1 release.

Tally 1.0.0 replaces ExpectationSource::rewrite(): string with edits(): list<CodeEdit>, so AnalysedFileHeader::write() now returns the edit of the header comment at the top of each tests/bench/data file instead of the rewritten code. Without this, every vendor/bin/tally command fails with a fatal error.

1.0.0 required ext-posix, which broke installing phpstan-src on Windows; 1.0.1 requires it only for its own development. The Benchmarks workflow loads it, which tally run still needs.

Checked locally: tally run passes on a microbenchmark and on bug-13933.php, and for a copy of that file without its header comment, both the printed patch and tally accept write the header correctly.

ExpectationSource::rewrite() is replaced by edits(), which returns the
CodeEdit of the header comment instead of the rewritten file.

Amp-Thread-ID: https://ampcode.com/threads/T-01a1dc2a-acc9-71d3-bf5f-24be38444155
1.0.1 requires ext-posix only for its own development, so phpstan-src
installs on Windows again.

Amp-Thread-ID: https://ampcode.com/threads/T-01a1dc31-07ff-7750-b3ea-2915ebc9d89a
@ondrejmirtes ondrejmirtes changed the title Update phpstan/tally to ^1.0 Update phpstan/tally to ^1.0.1 Nov 14, 2026
@ondrejmirtes
ondrejmirtes merged commit 441799e into 2.3.x Nov 14, 2026
896 of 905 checks passed
@ondrejmirtes
ondrejmirtes deleted the update-tally-1.0 branch November 14, 2026 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant