Skip to content

Spurious deprecated to string call (issue #212) - #228

Closed
funivan wants to merge 3 commits into
masterfrom
spurious-deprecated-to-string-call-ivan
Closed

Spurious deprecated to string call (issue #212)#228
funivan wants to merge 3 commits into
masterfrom
spurious-deprecated-to-string-call-ivan

Conversation

@funivan

@funivan funivan commented Aug 30, 2026

Copy link
Copy Markdown
Owner

Summary

  • Fixes cast detection for method calls in ToStringCallInspection so (string)$another->returnsBlaFoo(); is not incorrectly flagged as a deprecated __toString call.
  • Adds a regression test covering this case.

Recreated from #213 (originally by @HenkPoley) under my own account.

Test plan

  • ./gradlew test

Fix cast detection for method calls in ToStringCallInspection so
(string)$another->returnsBlaFoo() is not incorrectly flagged.

Co-Authored-By: Henk Poley <HenkPoley@gmail.com>
@mergify

mergify Bot commented Aug 30, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@funivan funivan closed this Aug 30, 2026
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