Fix existing inline PHP snippets#3206
Open
mnocon wants to merge 1 commit into
Open
Conversation
|
Preview of modified files: Too many files modified in a single PR, preview link list is skipped. (295 files > 150) |
|
mnocon
commented
May 18, 2026
| ```php | ||
| use Symfony\Component\HttpFoundation\Request; | ||
|
|
||
| /** @var \Symfony\Component\HttpFoundation\Request $request */ |
Contributor
Author
02b34ef to
c72a5c4
Compare
code_samples/ change report
|
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.



This PR fixes the existing inlined PHP code samples, using the following tools:
To avoid triggering the PHPStan baselined error every time the Markdown content around a code sample changes, the line-numbered files are renamed to use sha-256 as the filename.
This way, PHPStan correctly remembers the checked file even if the content around (and thus, line numbers) change.