1
0
Fork 0

Address feedback

pull/599/head
Declspeck 2018-03-10 17:02:06 +02:00
parent 334683ae75
commit 5921fd3e8c
No known key found for this signature in database
GPG Key ID: F0417663122A2189
2 changed files with 2 additions and 2 deletions

View File

@ -341,7 +341,7 @@ class CompletionProvider
foreach ($list->items as $item) {
// Remove ()
if (is_string($item->insertText) && substr($item->insertText, strlen($item->insertText) - 2) === '()') {
$item->insertText = substr($item->insertText, 0, strlen($item->insertText) - 2);
$item->insertText = substr($item->insertText, 0, -2);
}
}

View File

@ -280,7 +280,7 @@ class Index implements ReadableIndex, \Serializable
public function serialize()
{
return serialize([
'definitions' => iterator_to_array($this->getDefinitions(), true),
'definitions' => iterator_to_array($this->getDefinitions()),
'references' => $this->references,
'complete' => $this->complete,
'staticComplete' => $this->staticComplete