Always specify parameter type. This is a good practice.
class User { public function withName($name) {} // <-- Missing parameter type }