PHPantom — Roadmap¶
This document tracks planned work for PHPantom. Each item links to a domain document with full context. Items are grouped into time-boxed sprints (roughly 1-2 weeks each) and feature sets: one per framework, and one per area of the language server for everything else.
Guiding priorities: Completion accuracy → Type intelligence → Cross-file navigation → Diagnostics → Code actions → Performance.
Items inside each sprint and feature set are ordered by priority (top = do first): low-complexity items (easiest to assign, least implementation risk) before heavy lifts, dependencies before their dependents, and within the same complexity tier by impact descending.
Complexity measures how hard the task is to implement correctly, not how long it takes (time estimates are consistently wrong; skill required is not). Use it to decide who to assign: a Low-complexity item (e.g. adding a hundred repetitive docblock tags) is safe for a low-skill contributor even if it's tedious; a High-complexity item (e.g. a 50-line change to the forward walker) needs an experienced contributor even though it's short.
| Label | Scale |
|---|---|
| Impact | Critical, High, Medium-High, Medium, Low-Medium, Low |
| Complexity | Low (mechanical/boilerplate, no design decisions), Medium (self-contained, follows an existing pattern), Medium-High (spans modules, some new design), High (shared/core subsystem, correctness or performance tradeoffs), Very High (cross-cutting architecture, wide blast radius) |
Scheduled Sprints¶
Sprint 9 — Startup performance¶
| # | Item | Impact | Complexity |
|---|---|---|---|
| Clear refactoring gate | — | — | |
| T61 | A regression that changes where a call resolves goes unnoticed | Medium | Medium |
| P92 | Startup's file walks and resource indexing run on one core | Medium | Medium |
| P86 | A Symfony app's generated config/reference.php is slow to parse |
Medium | Medium |
| P91 | Parsing and merging of the full index take turns | Medium-High | Medium-High |
| L72 | Unknown Eloquent columns and relations in query strings | Medium-High | Medium |
| Release 1.1.0 |
Feature Sets¶
A feature set is the work toward one goal: making PHPantom fully usable for a framework, or improving one area of the language server. Feature sets are not time-boxed and not ordered against each other or the sprints; one is taken up when its users ask for it, and items move from a set into a sprint when they are scheduled. A framework's set opens with a demo project and a baseline from real code, so the support is tested against what its users write rather than built on spec.
An item may appear in more than one sprint or feature set when several depend on it (F59 serves Symfony and Drupal). When it ships, remove every row that names it.
Symfony & Twig¶
WordPress¶
| # | Item | Impact | Complexity |
|---|---|---|---|
| WP9 | The argument types the WordPress stubs declare | Medium | Low-Medium |
| WP3 | WordPress core for a plugin or theme opened on its own | Medium-High | Medium |
| WP15 | analyze leaves out a plugin's files outside its PSR-4 roots |
Medium | Low |
| WP6 | Template parts | Medium | Medium |
| E7 | Stub-based framework patches | Medium | Medium-High |
| WP5 | Hook callback parameter and return types | Medium-High | Medium-High |
| WP8 | Sage view composers | Medium | Medium |
| WP10 | Hook docblocks that do not match the call (depends on WP5) | Low-Medium | Medium |
| WP12 | Constants wp-config.php defines keep the value of one install |
Low | Low-Medium |
| WP11 | assertWPError() and assertNotWPError() narrow |
Low | Low |
| WP14 | wp_parse_args() of an object |
Low | Medium |
Drupal¶
Yii¶
| # | Item | Impact | Complexity |
|---|---|---|---|
| Y9 | Views a template renders by name | Medium | Medium |
| Y10 | The renderer's configured view path | Medium | Medium |
PHPUnit & Pest¶
| # | Item | Impact | Complexity |
|---|---|---|---|
| TS5 | Assertion libraries | Low-Medium | Low |
| TS10 | Benchmark for test code | Low-Medium | Low |
| TS8 | Port PHPStan's PHPUnit and Mockery extension tests | Medium | Low-Medium |
| TS9 | PHPUnit and Pest demo project | Medium | Low-Medium |
| TS11 | Mock unions in property docblocks | Medium | Low-Medium |
Laravel & Blade¶
Type Inference¶
Diagnostics¶
| # | Item | Impact | Complexity |
|---|---|---|---|
| F72 | A baseline for analyze |
Medium-High | Low-Medium |
| D29 | namespace and declare bodies break the reachability flow |
Low | Low-Medium |
| D19 | inaccessible_member cannot tell a property read from a write (includes PHP 8.4 private(set)) |
Medium | Medium |
| D16 | unreachable_match_arm ignores literal subject types |
Low-Medium | Medium |
| D20 | Foo::$bar and Foo::bar are the same span |
Low | Medium |
| D22 | Member provenance is recomputed instead of recorded | Medium | Medium-High |
| D50 | unused-parameters skips methods a subclass can override |
Low | Medium-High |
| D52 | incompatible_override only checks a static return type |
Medium | Medium-High |
| D53 | docblock_missing_null skips a tag that refines a nullable hint |
Low | Low |
| D45 | A promoted parameter's own @deprecated does not deprecate the property |
Low | Low |
Code Generation & Refactoring¶
| # | Item | Impact | Complexity |
|---|---|---|---|
| A16 | Snippet placeholder for extracted method name (lets the user type over the generated name immediately) | Medium | Medium |
| A43 | Update docblock generics | Medium | Medium |
| H13 | Declare missing property (native unknown-member diagnostic and PHPStan property.notFound) |
Medium | Medium |
| H15 | Template bound from tip — add @template T of X |
Medium | Medium |
| F17 | Wire class move to workspace/willRenameFiles |
Medium | Medium |
| A40 | Generate method from call | High | Medium-High |
| A41 | Create class from non-existing name | High | Medium-High |
| FX7 | add_return_type — generate @return docblocks from function bodies |
Medium-High | Medium-High |
| H16 | match.unhandled — add missing match arms |
Medium | Medium-High |
| F22 | Merge a namespace onto one that shares a class name | Low-Medium | Medium-High |
Cleanup & Modernize¶
| # | Item | Impact | Complexity |
|---|---|---|---|
| FX3 | phpstan.return.unusedType — remove unused type from return union |
Medium | Low |
| H19 | property.unused / method.unused — remove unused member |
Low | Low |
| H23 | instanceof.alwaysTrue — remove redundant instanceof check |
Low | Low |
| H24 | catch.neverThrown — remove unnecessary catch clause |
Low | Low |
| D5 | External tool diagnostic suppression actions | Low | Low |
| A25 | strpos → str_contains (PHP 8.0+) |
Medium | Medium |
| H4 | assign.byRefForeachExpr — unset by-reference foreach variable |
Medium | Medium |
| FX2 | unused_variable — remove unused variables |
Medium | Medium |
| A29 | Simplify boolean return (if (cond) return true; return false; → return cond;) |
Low-Medium | Medium |
| A45 | Simplify with ?: (replace $x ? $x : $y with $x ?: $y) |
Low-Medium | Medium |
| A46 | Convert nested calls to the pipe operator (PHP 8.5+) | Low-Medium | Medium |
| D28 | "Remove unreachable code" is wired to PHPStan only | Low-Medium | Medium |
| A47 | Convert a getter or setter method into a property hook (PHP 8.4+) | Low | Medium |
| A31 | Remove always-else (extract guard clause) | Low-Medium | Medium-High |
| A37 | Simplify with ?-> (replace null-checked chains with the nullsafe operator) |
Low-Medium | Medium-High |
| A38 | Convert if/elseif chain to match |
Low-Medium | Medium-High |
Editing Experience¶
| # | Item | Impact | Complexity |
|---|---|---|---|
| F7 | Evaluatable expression support (DAP integration) | Low-Medium | Low |
| F16 | On-type } brace de-indent |
Low | Low |
| S2 | Closure / arrow function parameter signature help | Medium | Medium |
| N1 | Template engine (type-aware snippets) | Medium | Medium |
| C8 | Filesystem proximity as an affinity tiebreaker | Low-Medium | Medium |
| C3 | Go-to-definition for array shape keys via bracket access | Low-Medium | Medium |
| C10 | Deprecation markers on class-name completions from all sources | Low | Medium |
| C12 | The implicit $value of a set hook is not offered by variable completion |
Low | Medium |
| F70 | A label at a call of a closure value binds nothing | Low | Medium |
| F71 | Hover on a parameter at its declaration | Low | Low |
| F74 | Hover does not show a declaration's attributes | Low | Low |
| F75 | Hover leaves out asymmetric visibility | Low | Low-Medium |
| F76 | PHP 8.6 parameter doc comments are not read | Low | Low-Medium |
| S4 | Named argument awareness in active parameter | Low | Medium |
| S5 | Language construct signature help and hover | Low | Medium |
| X7 | Recency tracking | Medium | Medium-High |
| C11 | Smarter member ordering after -> / :: |
Medium | High |
| N2 | N-gram prediction from PHP corpus | Medium | Very High |
| N3 | Fine-tuned GGUF sidecar model | Medium | Very High |
Editors & Distribution¶
| # | Item | Impact | Complexity |
|---|---|---|---|
| F59 | Send Twig, YAML, and XML documents to the server from Zed (Zed PR) | Medium | Low |
| F14 | Helix upstream PR | Low-Medium | Low |
| F11 | Windows code signing | Medium | Medium |
| F73 | An MCP server for agents without LSP support | Low-Medium | Medium |
| F12 | IntelliJ / PHPStorm plugin | High | Medium-High |
Indexing & Configuration¶
| # | Item | Impact | Complexity |
|---|---|---|---|
| X14 | Forward Zed's file_scan_exclusions and file_types (waiting on zed#66121) |
Low | Low |
| X18 | Watch [indexing] include and stub paths outside the workspace |
Low-Medium | Medium |
| X13 | Decide how workspace-wide edits treat excluded files | Low-Medium | Medium |
| X22 | Read YAML files with a parser | Low-Medium | Medium-High |
| X23 | Read XML files with a parser | Low-Medium | Medium-High |
| X2 | Parallel file processing — remaining work | Low-Medium | Medium-High |
| X12 | Say when an exclude hid the class a diagnostic names | Low-Medium | Medium-High |