This fixes #178, where closures were not examined for type hints when fetching the type of local variables. Next to that, the regex was updated as it was generating problems if the first type hint was a FQCN prefixed by a slash (in that case it could not determine the type of the variable from the first parameter type hint correctly).
I also fixed an issue where the line text kept getting larger and larger because all the text in the range from the line to the cursor position was fetched. This probably never caused any problems because the regexes (regices?) were matching the first part of the string anyway and the other parts of the string, that were wrongly included, were already checked for the same regex. The fix should also improve performance a bit because there is less text to scan.
Hello
This fixes #178, where closures were not examined for type hints when fetching the type of local variables. Next to that, the regex was updated as it was generating problems if the first type hint was a FQCN prefixed by a slash (in that case it could not determine the type of the variable from the first parameter type hint correctly).
I also fixed an issue where the line text kept getting larger and larger because all the text in the range from the line to the cursor position was fetched. This probably never caused any problems because the regexes (regices?) were matching the first part of the string anyway and the other parts of the string, that were wrongly included, were already checked for the same regex. The fix should also improve performance a bit because there is less text to scan.