Menu
Why am I getting this error? I’m following a tutorial.
Parse error: syntax error, unexpected ‘int’ (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in C:wamp64wwwproduct.php on line 5
“`
<?php
class Product {
private int $id;
private string $title;
private float $price;
private int $availableQuantity;