Grldk

Results 8 comments of Grldk

Would love this as well

Thanks for your reply. Unfortunately marking affected classes as final is not an option in all cases. I still think this is a bug.

But wouldn't the `static` part of the docblock result in a `Illuminate\Support\Collection|Illuminate\Database\Eloquent\Collection` type after the map function? Or is this a phpstan bug?

I am not really versed enough in phpstan/larastan to understand that code.. But the scenario we're talking about here is not covered by those tests..

Ah sorry, maybe should have reacted in that issue. Looks like I'm still getting the same error: ``` TypeError: e.replace is not a function at Dt (/var/www/.vscode-server/extensions/sanderronde.phpstan-vscode-3.1.4/out/server.js:74:2725) at /var/www/.vscode-server/extensions/sanderronde.phpstan-vscode-3.1.4/out/server.js:74:2689 at...

I can't seem to be able to ignore that error in any way. I tried your suggestions but they still lead to the extension erroring out.

Hmm. I should have noticed that there were two errors... Trying that suggestion returns another error though: ``` [check:1] PHPStan process exited succesfully undefined:1 SyntaxError: Unexpected end of JSON input...

> if any errors were ignored, this error does not cause a check to fail. But it does seem iffy to just ignore PHPStan exiting with an actual error (not...