1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Increase max length of strings

This commit is contained in:
Brown 2019-03-12 13:15:20 -04:00
parent 85f34f2aca
commit 71a99808fe

View File

@ -36,8 +36,8 @@ class TLiteralString extends TString
public function getId()
{
$no_newline_value = preg_replace("/\n/m", '\n', $this->value);
if (strlen($this->value) > 50) {
return 'string(' . substr($no_newline_value, 0, 50) . '...' . ')';
if (strlen($this->value) > 80) {
return 'string(' . substr($no_newline_value, 0, 80) . '...' . ')';
}
return 'string(' . $no_newline_value . ')';
}