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:
parent
85f34f2aca
commit
71a99808fe
@ -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 . ')';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user