-
-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Field width 536870912 is too long #2144
Comments
Tried changing to: return new self(sprintf('%1024s%1024s', $this->value, (string)$right->value())); but no luck yet. |
This saved me: return new self(sprintf(
'%s%s',
substr($this->value, 0, 1024),
substr((string)$right->value(), 1024)
)); |
Still not sure what caused it. |
Yes that should definitely have been truncated, there us little to no value in storing the contents if the string |
would you be willing to create a PR? |
Sure, but I am not sure what the length should be. I am a bit overwhelmed at the moment - I've been putting off my PR about switches for enabling and disabling different language server services for a very long time now, but I hope in a couple of weeks I would be able to. |
no worries, but basically the length can be arbitrary, e.g. 255 chars, maybe adding |
Sounds good. |
should be fixed as of #2200 |
I keep getting this error for some reason:
Fatal error: Field width 536870912 is too long in /root/.shared_extensions/phpactor3/lib/WorseReflection/Core/Type/StringLiteralType.php on line 34
the code there is this:
The text was updated successfully, but these errors were encountered: