What common mistake is the user making in the provided PHP code snippet?

The common mistake in the provided PHP code snippet is that the user is trying to access class properties directly without creating an instance of the class. To fix this issue, the user needs to instantiate the class using the "new" keyword before accessing its properties. Here is the corrected PHP code snippet:

class User {
    public $name = 'John';
    public $age = 30;
}

$user = new User();
echo $user->name; // Output: John
echo $user->age; // Output: 30