Skip to content

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
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

# Item Impact Complexity
F59 Send Twig, YAML, and XML documents to the server from Zed (Zed PR) Medium Low
P86 A Symfony app's generated config/reference.php is slow to parse Medium Medium
F27 Symfony route parameters (blocks full Symfony support) Medium Medium
F57 "Add translation" quick fix for an undeclared Symfony key Medium Medium
F58 Configured Twig roots and namespaces Low-Medium Medium
F31 Symfony Twig templates outside templates/ Low-Medium Medium
F66 Report Twig template diagnostics from analyze Low-Medium Low-Medium
F64 Report unknown parameters in YAML and XML configuration Low-Medium Low-Medium
F63 Check container parameters outside app.* Low-Medium Medium
F62 Check Symfony logout route names Low Low-Medium
F65 Check interpolated and listed Twig names Low Medium
F30 Symfony translations outside YAML, XLIFF, and the trans filter Low-Medium Medium
T71 A service #[AsDecorator] registers does not take over the ID Low-Medium Low
T54 Messenger handlers a service tag registers Low-Medium Medium
F61 Port TwigStan's tests Low-Medium Medium
T55 Symfony array parameters are typed as plain array Low Medium
F34 Template names a PHP wrapper builds Medium Medium-High
F38 Twig components Low-Medium Medium-High
F56 Live components (depends on F38) Low-Medium Medium-High
T68 A DQL field is typed by its property, not its column's type Low Medium
T69 IDENTITY() in a DQL SELECT is mixed Low Low-Medium
T65 The expression builder's fragments are not literal strings Low Low-Medium
F48 Symfony environment variables Medium Low-Medium
F24 Doctrine lenses miss attribute mappings and generic repositories Medium Medium
F25 Names a PHP configurator spells as strings Medium Medium
F45 Symfony events named by their class or a constant Medium Medium
F42 Symfony console arguments and options Medium Medium
F39 Report unknown Symfony configuration keys Medium Medium-High
F46 Symfony listener methods a tag or a default names Low-Medium Low-Medium
T52 Symfony return types an argument decides Low-Medium Medium
D30 Getting a private Symfony service from the container is not reported Low-Medium Medium
F40 Symfony configuration schemas the TreeBuilder walk misses Low-Medium Medium
F41 Symfony forms and validation beyond a form type's own data class Low-Medium Medium
F47 Symfony Messenger transports Low-Medium Medium
F49 Symfony security names Low-Medium Medium
D31 Doctrine mappings that disagree with the entity are not reported Low-Medium Medium-High
D40 A Doctrine entity mapped in XML or YAML is not checked for uninitialized properties Low Medium
T56 A DBAL result's row count ignores the connection's driver Low Low
F51 Class names in Twig's constant() and enum() Low Low-Medium
F52 Asset paths in Twig Low Low-Medium
T53 Doctrine collections narrowed by isEmpty() Low Medium
F23 Rename a class through its XML entity-escaped occurrences Low Medium
F53 Stimulus controllers in Twig Low Medium
F55 Symfony ExpressionLanguage strings Low Medium-High

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

# Item Impact Complexity
F59 Send Twig, YAML, and XML documents to the server from Zed (Zed PR) Medium Low
DR12 Translation placeholders Low-Medium Low-Medium
DR13 Module names and *.info.yml Low-Medium Low-Medium
DR14 Port PHPStan's Drupal extension tests Medium Medium
DR18 Warn on unknown entity type IDs Medium Low-Medium
DR19 Warn on unknown hook names Low-Medium Medium
DR20 Complete route names built in code Low-Medium Medium
DR22 Complete permissions built in code Low-Medium Medium
DR23 Warn on unknown permission names Medium Low-Medium
DR24 Warn on unknown theme hook names Low-Medium Medium-High
DR28 Plugin types a manager builds at run time Medium Medium
DR27 Plugin IDs in YAML Low-Medium Medium
DR29 Fields added by hooks Medium Medium-High
DR30 Warn on unknown field names (depends on DR29) Medium Low-Medium
DR31 Field names in entity queries and loadByProperties() Low-Medium Medium
DR32 '::method' callbacks in a form alter hook Low-Medium Low-Medium
DR33 Render callbacks that are not trusted Low-Medium Low
DR34 Callback parameter checks Low Low-Medium
DR35 Invokable classes and services as callbacks Low Low-Medium
DR36 Array callables that name their class in a string Low Low
DR37 Listener methods in subscriber maps Low-Medium Low-Medium

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

# Item Impact Complexity
L68 Port Larastan's type and rule tests High Medium
L1 Facade completion (upstream facade-documenter PRs) High High
L69 Benchmarks for Laravel string names and Blade Medium Low-Medium
L49 Unguarded Eloquent mass assignment diagnostic Medium Medium
L58 Laravel rate limiter names Medium Medium
L56 Typed Laravel connection names Medium Medium
BL20 Port Bladestan's tests Medium Medium
E7 Stub-based framework patches Medium Medium-High
L71 Inertia page props and asset helpers on a typed URL generator Low Low-Medium
L31 String-key rename, highlight, and semantic tokens Low-Medium Medium
L61 Resolve aliased facade imports during route discovery Low-Medium Medium
L67 Laravel refactoring intentions Low-Medium Medium
L57 Laravel queue names Low-Medium Medium
L8 withSum/withAvg/withMin/withMax aggregate properties Low-Medium High
L45 *_count properties are offered on every relationship Low-Medium High
L27 Legacy Controller@method action strings Low Low
L60 Read relation callback overrides and fallbacks from the declared signature Low Low-Medium
L29 Livewire and Volt component names (Livewire projects only) Low Low-Medium
L10 RedirectResponse::withX() dynamic methods Low Medium
L39 Unused view and translation key detection Low Medium

Type Inference

# Item Impact Complexity
T41 A reading of the callee's body overrides a declared @param-out Low-Medium Low
T58 new<T> is not supported Low-Medium Low-Medium
T62 A sealed hierarchy is not narrowed by ruling out its other members Medium Medium
T49 A closure passed to a constructor gets no parameter types from it Medium Medium
T59 T[K] on a class template is not resolved Medium Medium
T61 A regression that changes where a call resolves goes unnoticed Medium Medium
C13 self::/static:: inside a @require-extends trait does not see the required class's static members Low-Medium Medium
D23 A rebound closure's scope is added to the lexical one rather than replacing it Low-Medium Medium
T43 self::TypeAlias inside @extends's generic argument is not resolved Low Medium
T34 static::CONST over-narrows to the declaring class's value Medium Medium-High
C7 class_alias() support Low-Medium Medium-High
T29 Definite vs possible variable existence tracking Medium High
T46 Template arguments are not inferred from how the object is used later Medium High
T47 A closure assigned to a variable gets no parameter types from where it is used Medium High
C1 Array functions needing new code paths Medium High

Diagnostics

# Item Impact Complexity
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
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
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