This check compares the return type specified in the @return annotation of a function
or method doc comment with the types returned by the function and raises an issue if they
mismatch.
Loading history...
76
*/
77
public function weight()
78
{
79
return $this->options('weight');
80
}
81
82
83
/**
84
* Mark this menu item as the currently active one.
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: