dantleech

Results 873 comments of dantleech
trafficstars

class members are all methods, constants and properties of a class

oh i see. not sure. maybe the completion doesn't take into account `$`

![image](https://user-images.githubusercontent.com/530801/189378178-e3557e35-3cb5-44e6-948f-59633ec76cad.png) not sure if this was fixed in code or phpactor, but seems to work for me

do you mean to invoke the LSP references on the virtual property? that's not something i've considered but possible I guess.

Have tried, with a stating point of 104MB project. - Serializing with JSON (saves 2MB) - bz|gzcompressing the data (saves ~4MB) - Removing file paths (saves ~2MB) Other observations: -...

The reported size by `du` is 3-4x the sum of the index files. In the 600MB case the size of the index is around 200MB. I'm not sure what can...

this is done via. a Twig extension: https://github.com/phpactor/phpactor/blob/7ee57283e926539c3934dca0a91f3fea8bbb2d74/lib/Extension/LanguageServerHover/Twig/TwigFunctions.php#L15 I think the logic can be slightly different (i.e. not using the same code) but similar (it would act on "aggregate" types...

Yeah, I guess it's just a variant on extract method.

For me one use case for lambdas is removing temporary variables - in which case the otherwise temporary variables would be parameters, while everything else would be `use`. But anyway,...

``` $foo = $this->foobar()->barfoo(); if (false === $this->doFoo($foo)) { throw new \Exception('Foo is not a foo' . $foo); } return $foo; ``` has the temporary var `$foo` which polutes the...