src/Repository/Model/Shoutbox.php
syntax error, unexpected 'int' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)
Open
Open
private int $user = 0;
- Exclude checks
The parameter $object_id is not named in camelCase. Open
Open
public function setObjectId(int $object_id): Shoutbox
{
$this->object_id = $object_id;
return $this;
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The parameter $object_type is not named in camelCase. Open
Open
public function setObjectType(string $object_type): Shoutbox
{
$this->object_type = $object_type;
return $this;
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
Expected 0 spaces after opening bracket; newline found Open
Open
if (
- Exclude checks