Skip to content

Add the missing PHP opening tag to the Volt class-based example - #951

Merged
pushpak1300 merged 2 commits into
laravel:mainfrom
sulimanbenhalim:fix/volt-class-based-php-tag
Aug 18, 2026
Merged

Add the missing PHP opening tag to the Volt class-based example#951
pushpak1300 merged 2 commits into
laravel:mainfrom
sulimanbenhalim:fix/volt-class-based-php-tag

Conversation

@sulimanbenhalim

Copy link
Copy Markdown
Contributor

The class-based example closes with ?> but never opens with <?php, so copying it verbatim gives you a file that prints the PHP as text.

Four snippets in .ai/ contain ?>. The other three all open properly:

livewire/4  Single-File Component   <?php ... ?>
folio       Render Hook Example     <?php ... ?>
volt        Functional Component    <?php ... ?>
volt        Class-based Component          ... ?>

The tagless snippets elsewhere are fragments and have no ?> either, so they're consistent. This one is the only unbalanced snippet in the repo.

@pushpak1300
pushpak1300 merged commit 1b1d014 into laravel:main Aug 18, 2026
22 checks passed
@sulimanbenhalim
sulimanbenhalim deleted the fix/volt-class-based-php-tag branch August 18, 2026 14:37
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