Repository navigation
feat(flow-php/web): type-aware playground autocompletion - #2724
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 1.x #2724 +/- ##
============================================
+ Coverage 87.01% 90.58% +3.57%
- Complexity 2982 31419 +28437
============================================
Files 2260 2226 -34
Lines 95436 90642 -4794
============================================
- Hits 83043 82111 -932
+ Misses 12393 8531 -3862
🚀 New features to boost your workflow:
|
- one completer resolves receiver types across chains, variables and static calls; replaces the 4 generated completers - DSL functions and classes auto-import, plus named arguments, variables and Class:: members - hover docs, parameter hints and Cmd/Ctrl+click to DSL and API docs; Tab accepts suggestions - api:dump exports every class reachable from the DSL; code samples link methods to API docs - playground formats with the Mago WASM build instead of php-cs-fixer - removed stale psalm/phpstan/php-cs-fixer references and the inlined DSL json on every page
- build pg-query-ext before generating docs - refuse to build docs with the arrow or flow_php extensions loaded - regenerate api.json and playground completions without those extensions
- docs read classes and DSL functions from source, independent of loaded extensions - default values exported as source instead of evaluated, docs job no longer needs pg-query-ext - removed the arrow/flow_php guard from bin/docs.php - regenerated dsl.json, api.json and playground completions
…etion - php:dump exports functions and classes of the playground PHP extensions from phpstorm stubs - PHP built-ins complete without imports in global code and link to the PHP manual - just docs regenerates the playground completion, checked by the docs job - plain characters in docblocks shown by the completion
norberttech
force-pushed
the
playground-autocompletion
branch
from
November 4, 2026 17:27
36b6ef1 to
57af1a8
Compare
- require phpstan ^2.1.34 in dev, older phars bundle a php-parser too old for Better Reflection - mutation tests pass a PR diff that generates no mutations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves: #xxx
Change Log
Added
flow-php/web- Type-aware playground autocompletion for Flow API methods, DSL functions, classes and static membersflow-php/web- Automatic use imports for completed DSL functions and classesflow-php/web- Playground hover docs, parameter hints, named argument and variable completionflow-php/web- Cmd/Ctrl+click in playground opens DSL, API or PHP manual documentationflow-php/web- Playground autocompletion for PHP functions and classes available in the playgroundFixed
flow-php/web- Code samples link methods to their API documentation instead of same-named DSL functionsChanged
flow-php/web- Playground formats code with Mago instead of PHP-CS-Fixerflow-php/web- API dump covers every class reachable from DSL functionsflow-php/web- Tab accepts the selected playground suggestionflow-php/flow- Docs are built from source with Better Reflection, independent of loaded extensionsRemoved
flow-php/web- DSL definitions inlined into every pageflow-php/flow- Stale psalm, phpstan and php-cs-fixer referencesDeprecated
Security