Skip to content

Conversation

@sgammon
Copy link
Member

@sgammon sgammon commented Nov 5, 2025

Draft Powered by Pull Request Badge

Summary

Adds support for PHP through a Truffle implementation. Very experimental; more coming soon.

Signed-off-by: Sam Gammon <[email protected]>
Signed-off-by: Sam Gammon <[email protected]>
@sgammon sgammon added this to the Release R18: Beta milestone Nov 5, 2025
@sgammon sgammon self-assigned this Nov 5, 2025
@sgammon sgammon added the feature Large PRs or issues with full-blown features label Nov 5, 2025
@sgammon sgammon added 🚧 WIP Works-in-progress. Blocks merge 🧪 labs Experimental work lang:php labels Nov 5, 2025
@sgammon sgammon added this to Elide Nov 5, 2025
@sgammon sgammon moved this to In Progress in Elide Nov 5, 2025
@codecov
Copy link

codecov bot commented Nov 5, 2025

Codecov Report

❌ Patch coverage is 68.41505% with 1939 lines in your changes missing coverage. Please review.
✅ Project coverage is 44.03%. Comparing base (e88fb61) to head (6b3f5f0).
⚠️ Report is 21 commits behind head on main.

Files with missing lines Patch % Lines
...ava/elide/lang/php/parser/PhpExpressionParser.java 77.68% 111 Missing and 70 partials ⚠️
...ain/java/elide/lang/php/parser/PhpClassParser.java 77.97% 60 Missing and 51 partials ⚠️
...java/elide/lang/php/parser/PhpStatementParser.java 84.04% 37 Missing and 56 partials ⚠️
...ain/java/elide/lang/php/parser/PhpTraitParser.java 65.73% 59 Missing and 27 partials ⚠️
...src/main/java/elide/lang/php/parser/PhpParser.java 70.96% 44 Missing and 28 partials ⚠️
...src/main/java/elide/lang/php/runtime/PhpClass.java 81.64% 28 Missing and 21 partials ⚠️
...lide/lang/php/nodes/builtin/JsonEncodeBuiltin.java 4.25% 45 Missing ⚠️
...hp/nodes/expression/PhpCompoundAssignmentNode.java 51.13% 32 Missing and 11 partials ⚠️
.../main/java/elide/lang/php/runtime/PhpTypeHint.java 42.25% 37 Missing and 4 partials ⚠️
...lide/lang/php/nodes/builtin/JsonDecodeBuiltin.java 4.76% 40 Missing ⚠️
... and 134 more
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1734      +/-   ##
==========================================
+ Coverage   40.00%   44.03%   +4.03%     
==========================================
  Files         888     1057     +169     
  Lines       37072    43219    +6147     
  Branches     5685     6918    +1233     
==========================================
+ Hits        14829    19030    +4201     
- Misses      20305    21712    +1407     
- Partials     1938     2477     +539     
Flag Coverage Δ
jvm 44.03% <68.41%> (+4.03%) ⬆️
lib 44.03% <68.41%> (+4.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...kotlin/elide/tool/cli/cmd/repl/ToolShellCommand.kt 30.22% <100.00%> (+0.08%) ⬆️
...-php/src/main/java/elide/lang/php/PhpLanguage.java 100.00% <100.00%> (ø)
.../java/elide/lang/php/nodes/PhpBuiltinRootNode.java 100.00% <100.00%> (ø)
...n/java/elide/lang/php/nodes/PhpExpressionNode.java 100.00% <100.00%> (ø)
...main/java/elide/lang/php/nodes/PhpNodeFactory.java 100.00% <100.00%> (ø)
...rc/main/java/elide/lang/php/nodes/PhpRootNode.java 100.00% <100.00%> (ø)
...lang/php/nodes/expression/PhpArrayLiteralNode.java 100.00% <100.00%> (ø)
...ng/php/nodes/expression/PhpBooleanLiteralNode.java 100.00% <100.00%> (ø)
...lide/lang/php/nodes/expression/PhpClosureNode.java 100.00% <100.00%> (ø)
...elide/lang/php/nodes/expression/PhpConcatNode.java 100.00% <100.00%> (ø)
... and 162 more

... and 2 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7aa2162...6b3f5f0. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Signed-off-by: Sam Gammon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Large PRs or issues with full-blown features 🧪 labs Experimental work lang:php 🚧 WIP Works-in-progress. Blocks merge

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

2 participants