-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
Volt Version
1.7
Laravel Version
12.22.1
PHP Version
8.2
Database Driver & Version
No response
Description
I’m new to Laravel and have encountered a strange problem. Whenever I modify a Volt file, a random 1 sometimes appears in one of the compiled view files inside storage/framework/views/ (e.g. d08f51f93114ffb167dbbbc90fba96eb.php). This causes the application to throw the following error:
ParseError
syntax error, unexpected integer "1"
An example of the problematic generated code is:
public function 1Handler()
{
$arguments = [static::$__context, $this, func_get_args()];
return (new Actions\CallListener('1'))->execute(...$arguments);
}Steps To Reproduce
I have a repo at https://github.com/nilspolek/laravel-volt-bug that contains this bug. I think it is because im using the on method (I probably do it wrong though) but I don't think I should ever encounter such behavior

Metadata
Metadata
Assignees
Labels
No labels