v2.0.0 — PHP 8.1+, modern API, same scores - #11
Merged
Merged
Conversation
…or handling; add migration guide and static analysis support.
… update documentation and migration guide
…ward compatibility and migration details
Add the v2 API: SentimentResult, analyze(), analyzeMany(), withLexicon()
…n; fix license link in README
…d forkers sections
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merges the v2 line into
master.masterbecomes a PHP 8.1+ codebase.Anyone tracking
dev-masterwill need PHP 8.1;1.xremains maintained forolder runtimes.
Scores are unchanged
tests/fixtures/baseline.jsonis byte-identical to1.3.0across all 355pinned cases, verified on PHP 8.1–8.4. This is a modernization, not a scoring
release.
What's in it
(
failOnDeprecation="true"enforces it)analyze(),analyzeMany(),withLexicon(),SentimentResult— all opt-in;
getSentiment()is unchanged and still returns the same arrayMIGRATION.mdenumerating every accepted breakNOTICE.md— attribution and MIT license for the bundled VADER lexicons,which previously shipped with no stated provenance
Verification
composer matrix --fresh— fresh dependency install per versiongit diff 1.3.0 -- tests/fixtures/baseline.jsonempty