Skip to main content
The PHP extractor maps tree-sitter PHP CST nodes to canonical concepts. Class, method, and function names come from the standard name field; property names come from the property element’s name field, keeping the $.

Detected concepts

Example

Renaming a method:
old.php
new.php
Running differens old.php new.php:

Example: change the body

Keep the declaration name and change what it does:
The report groups the value edit under its containing declaration. Use --format=json to inspect the underlying action and context, or --format=llm for a compact report with source locations.

Known limitations

  • Heredoc and nowdoc bodies are string literals; changes inside them report as value changes, not line edits.
  • Attribute syntax is parsed structurally; attribute argument edits report as value changes.