Jan Barášek

Results 34 comments of Jan Barášek

@GrahamCampbell Sorry for late answer, but I must make some performance testing. Speed is same +/- 5 %, my suggestion does not change speed.

@staabm Thank you for the example, however I think there is still a case where PhpStan is not reporting the correct result. For example, I call a user method in...

Real example is here: https://phpstan.org/r/3a219790-5e24-4d7e-b245-cc9e9dbc510d and here: https://github.com/baraja-core/structured-api/blob/831ac15a87b21911d3af63761378406b3ef49f0c/src/ApiManager.php#L353

Ok, real example is here: https://phpstan.org/r/ed660810-bbd7-492e-b430-b47f79f35f55 and demo here: https://3v4l.org/Y4kq0 The main problem is that you can't decide what exception will be thrown when the method is called dynamically.

It means the array definition has not been forgoten.

Now I think it can be solved by [Package Manager](https://github.com/baraja-core/package-manager) (not the official solution).

@dg Moved. I thought canonize() should be deprecated (from the last version).

I don't know how to better represent this (if at all). When obtaining the current Request from the DI, it should be possible to verify that the Request was created...

@mabar I think it can be solved by trait or SmartObject events.