Markus Staab

Results 1115 comments of Markus Staab
trafficstars

we worked arround it on our end. I think it could be still a problem

the main point IMO would be to automatically unsubsribe on `__destruct()`, as we experienced problems in our queue server running out of resources because the php client never unsubscribed. >...

@Hackwar please create a reproduction for your problem, either on phpstan.org/try or even a small reproducing repository in case it does not work on phpstan.org/try

I tried similar things in https://github.com/phpstan/phpstan-src/pull/2277 I think you can get inspiration about a few more cases which need to be handled here in the linked PR. beware: ondrej might...

A good start would be to formulate expectations, e.g. in the [playground](https://phpstan.org/try) Write code as you would in your codebase and add `assertType` assertions to express which types you expect,...

In deinem beispiel würd ich keinen error werfen.. es geht ja nicht um sicherheit o.ä. Sondern rein um lesbarkeit

bei escaping von klassen-konstanten die keine quotes enthalten, könnte man generell auch auf escaping verzichten (normale globale konstanten sind bzgl. konkretem wert auf schwierig zu ermitteln, da sie ggf. in...

Please see https://phpstan.org/blog/phpstan-1-9-0-with-phpdoc-asserts-list-type#describe-type-of-current-object-after-calling-a-method I think this might work

the example in https://phpstan.org/r/7f3666b1-2b89-4de3-9271-7023e25dbb53 does not run into internal errors on my machine. @dhaeckel would be great if you could provide a small repository which reproduces your problem

I have a wild guess. @dhaeckel has a php version which has ext-filter disabled. the example at https://phpstan.org/r/7f3666b1-2b89-4de3-9271-7023e25dbb53 shows that constants will be re-defined with wrong types, e.g. `FILTER_VALIDATE_INT` with...