Skip to content

[12.x] Improve syntax highlighting for stub type files #55094

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

kayw-geek
Copy link
Contributor

This PR adds proper syntax highlighting for .stub files by configuring them to be recognized as PHP files in GitHub and other platforms that support Linguist.

The project contains 82 .stub files that lack proper syntax highlighting on GitHub. Without PHP syntax coloring, it's difficult to identify code structures, spot errors, and understand the code at a glance during reviews.

Before:

After:

@taylorotwell taylorotwell merged commit 3d9a670 into laravel:12.x Mar 20, 2025
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants