Jonathan Vollebregt

Results 27 comments of Jonathan Vollebregt

Ran into this issue again today: https://psalm.dev/r/4dc5b3559b I might try a PR if I have time

The main practical issue is that it's not currently possible to call `new static()` at all. No combination of interfaces or abstract classes will allow a `new static()` construction without...

I didn't see that. That actually solved the `new static()` problem (After I cleared the psalm cache since it was still showing up) I tested that in the sandbox and...

Idea: On entering a container position the transit ghosts at all possible positions (So 0, 1, 2... total container.length + 1 positions) and make a list of their coordinates, then...

Done in b5841ee834121b5f3399184466b8ac43956885fa

I think the reason I didn't do this is because it would require checks on arrays, strings, and objects too. (eg. `__invoke`) Performance performance... If you want to implement this...

> was actually thinking of a simple `if (is_callable($var)) {...}` check, and let PHP do the detection Yeah I had the same idea, but right now all we need to...

> Perhaps it is better to have it as an optional plugin and configurable to what types to scan since you know what types of callbacks your project is using....

> I don't feel confident enough in my Kint knowledge (yet) to create a new plugin. Have you seen the [guide](https://kint-php.github.io/kint/writing-plugins/#example)? > That can be considered one of the worst-case...

If they're related to native PHP features I include them in core, I only advise to make separate repos for them if they're integration with a third party system or...