Update some tests.

This commit is contained in:
James Cole
2020-01-05 19:29:28 +01:00
parent 465947dddf
commit 39d61feede
26 changed files with 211 additions and 140 deletions

View File

@@ -95,12 +95,12 @@ class Note extends Model
}
/**
* @param string $value
* @param string|null $value
*
* @return string
* @return string|null
*/
public function getTextAttribute(string $value): string
public function getTextAttribute(?string $value): ?string
{
return htmlspecialchars_decode($value, ENT_QUOTES);
return null === $value ? null : htmlspecialchars_decode($value, ENT_QUOTES);
}
}