forked from eatvio/eatvio-infra
make static-analyse code
This commit is contained in:
@@ -3,22 +3,23 @@
|
||||
namespace App\Livewire;
|
||||
|
||||
use Livewire\Component;
|
||||
use Illuminate\View\View;
|
||||
|
||||
class Counter extends Component
|
||||
{
|
||||
public $count = 0;
|
||||
public int $count = 0;
|
||||
|
||||
public function inc()
|
||||
public function inc(): void
|
||||
{
|
||||
$this->count++;
|
||||
}
|
||||
|
||||
public function dec()
|
||||
public function dec(): void
|
||||
{
|
||||
$this->count--;
|
||||
}
|
||||
|
||||
public function render()
|
||||
public function render(): View
|
||||
{
|
||||
return view('livewire.counter');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user