You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following component example should reproduce the error:
<?php
use Closure;
use Livewire\Volt\Component;
new class extends Component {
//
public function test(): Closure
{
return function () {
echo "Hello World";
};
}
}; ?>
<div>
Hello World
</div>
The text was updated successfully, but these errors were encountered:
Volt Version
v1.3.3
Laravel Version
v10.27.0
PHP Version
8.2
Database Driver & Version
Postgres 14
Description
When including a top-level PHP class, such as
Closure
, Volt components throw an error when accessed in the browserSteps To Reproduce
The following component example should reproduce the error:
The text was updated successfully, but these errors were encountered: