Skip to content

Add phpc lint for unsupported syntax with line numbers (#236)#241

Merged
PurHur merged 1 commit into
masterfrom
issue-236-phpc-lint
May 19, 2026
Merged

Add phpc lint for unsupported syntax with line numbers (#236)#241
PurHur merged 1 commit into
masterfrom
issue-236-phpc-lint

Conversation

@PurHur
Copy link
Copy Markdown
Owner

@PurHur PurHur commented May 19, 2026

Summary

Test plan

  • ./phpc lint -r 'foreach ([1] as $x) {}' reports line + #53
  • ./phpc lint -r '$a = $b ?? 1;' reports #99
  • ./phpc lint -r 'echo "ok";' exits 0
  • vendor/bin/phpunit test/unit/ (Docker php-compiler:22.04-dev)

Closes #236

Made with Cursor

Introduce LintCompiler/Linter that records CFG gaps instead of opaque
LogicExceptions, wire bin/lint.php and phpc lint with --json, and document
known unsupported constructs with tracking issue links.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur PurHur merged commit e36bf5f into master May 19, 2026
1 check failed
@PurHur PurHur deleted the issue-236-phpc-lint branch May 19, 2026 07:47
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.

DevEx: phpc lint reports unsupported Stmt/Expr before LogicException

1 participant