Markus Staab
Markus Staab
I will give it a try, thanks
@sanmai I will come back to you after dust settled in phpstan-src infection integration and I can give you a few easy commands to test it
While walking I had another idea on how we could tackle the underlying problem. Maybe phpstan can/could/should generate its own coverage report based on our assumptions we already have for...
> As long as I have made a guard/check that the output is an array, PHPstan should be aware that the array shape exists? In your given example you did...
please put your code with more context into https://phpstan.org/try and reproduce the error you see
I wonder whether its actually a class loading problem, because of the "non standard" directory layout
diving deeper: reason for the exception is, that the container can only resolve 6 parameters, while the constructor expects 7: the `CiDetectorInterface` type cannot be resolved
commenting out this line makes it work: https://github.com/infection/infection/blob/f0cafe0fd8c94674ad04e3e6e4c4e28713292f17/bin/infection#L90
I see the root problem now. because of this autoloader (comment above), the project autoloader is invoked ealier than infections own autoloader. and since phpstan-src declares a dependency on `"ondram/ci-detector":...
(And not prefixing infection deps)