Add type hinting to methods parameters

This commit is contained in:
Molkobain
2020-10-22 15:28:26 +02:00
parent cfd9dba66e
commit e419060e8a
21 changed files with 147 additions and 92 deletions

View File

@@ -27,13 +27,13 @@ namespace Combodo\iTop\Form\Field;
*/
class CaseLogField extends TextAreaField
{
/** @var array */
protected $aEntries;
/**
* @param bool $bMustChange
* @return $this
* @inheritDoc
*/
public function SetMustChange($bMustChange)
public function SetMustChange(bool $bMustChange)
{
$this->SetMandatory($bMustChange);
return $this;
@@ -53,7 +53,7 @@ class CaseLogField extends TextAreaField
* @param array $aEntries
* @return \Combodo\iTop\Form\Field\TextAreaField
*/
public function SetEntries($aEntries)
public function SetEntries(array $aEntries)
{
$this->aEntries = $aEntries;
return $this;