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
<?php
use Leaf\UI;
use Leaf\UI\Component;
require __DIR__ . '/vendor/autoload.php';
class Counter extends Component
{
public $count = 0;
public $key = 'Counter';
public function increment()
{
$this->count++;
}
public function decrement()
{
$this->count--;
}
public function render()
{
return UI::view('view.html');
}
}
UI::render(new Counter());
Fatal error: Cannot use ::class with dynamic class name in vendor\leafs\ui\src\UI.php on line 46
The text was updated successfully, but these errors were encountered:
Fatal error: Cannot use ::class with dynamic class name in vendor\leafs\ui\src\UI.php on line 46
The text was updated successfully, but these errors were encountered: