Open SamMousa opened 5 months ago
Add missing imports automatically (or decide that we want copy paste friendly docs and just add missing imports to the examples)
I think we should have copy/paste friendly docs
I'm ready to push the PR, what branch should I target?
2.19.x please.
Originally posted by @greg0ire in https://github.com/doctrine/orm/issues/11492#issuecomment-2160922838
I might be able to help set this up. Started on a proof of concept extractor already.
The idea is simple:
.rst
file crudely extracting PHP code blocks.phpstan
to analyse the code.The extractor above also adds a comment to know where we got it from:
I'll look into creating a github action that just does this for all RST files in a directory.