mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #11495] feat(ci): implement automated syntax and static analysers for code samples in docs #13059
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/doctrine/orm/pull/11495
State: closed
Merged: No
This implements what was discussed in https://github.com/doctrine/orm/issues/11494.
It works roughly as follows:
.rstfiles in thedocs/folder.<?php.Locally you can improve existing blocks by looking for issues in the baseline. Alternatively you can edit the
docs/extract.phpand remove hashes from the$badBlocksarray, this will lead to new errors for you to solve.Extract blocks locally by doing
php docs/extract.php docs/extracted_blocks.Then run
vendor/bin/phpstan -b phpstan-docs.neon.Of course, before executing anything locally, read the source of
docs/extract.php.