Markus Staab
Markus Staab
I would agree that deprecation and removal of this feature would be the way to go for the following reasons: - per class isolation can also be achieved by running...
> Sorry but I think I'm gonna need your help to debug this one :) I am happy to help. you helped me so much in the past, thats the...
I found the problem. it seems to be a filesystem permission problem. running `sudo composer self-update` made it work
See above. „The phar“ is this file ``` ➜ infection git:(upstan) ls -la /usr/local/bin/composer -rwxr-xr-x 1 root wheel 3125332 Sep 20 13:02 /usr/local/bin/composer ``` Installed like described on https://getcomposer.org/doc/00-intro.md#globally
After the upgrade completed with sudo, I get the same error when trying a rollback: ``` ➜ phpunit git:(main) ✗ composer self-update --rollback Rolling back to version 2025-08-21_11-29-39-2.8.11. PHP Fatal...
got this stacktrace: ``` #43335 /Users/m.staab/dvl/phpstan-src/src/Type/UnionType.php(1130): PHPStan\Type\TypeTraverser->mapInternal(Object(PHPStan\Type\ClosureType)) #43336 /Users/m.staab/dvl/phpstan-src/src/Type/TypeTraverser.php(58): PHPStan\Type\UnionType->traverse(Array) #43337 /Users/m.staab/dvl/phpstan-src/src/Reflection/ResolvedFunctionVariantWithOriginal.php(296): PHPStan\Type\TypeTraverser->traverseInternal(Object(PHPStan\Type\UnionType)) #43338 /Users/m.staab/dvl/phpstan-src/src/Type/TypeTraverser.php(52): PHPStan\Reflection\ResolvedFunctionVariantWithOriginal->PHPStan\Reflection\{closure}(Object(PHPStan\Type\UnionType), Array) #43339 /Users/m.staab/dvl/phpstan-src/src/Type/ConditionalType.php(139): PHPStan\Type\TypeTraverser->mapInternal(Object(PHPStan\Type\UnionType)) #43340 /Users/m.staab/dvl/phpstan-src/src/Type/TypeTraverser.php(58): PHPStan\Type\ConditionalType->traverse(Array) #43341 /Users/m.staab/dvl/phpstan-src/src/Reflection/ResolvedFunctionVariantWithOriginal.php(296): PHPStan\Type\TypeTraverser->traverseInternal(Object(PHPStan\Type\ConditionalType)) #43342 /Users/m.staab/dvl/phpstan-src/src/Type/TypeTraverser.php(52): PHPStan\Reflection\ResolvedFunctionVariantWithOriginal->PHPStan\Reflection\{closure}(Object(PHPStan\Type\ConditionalType), Array)...
You can either use php-src builtin reflection https://www.php.net/manual/en/reflectionclass.getparentclass.php or https://github.com/Roave/BetterReflection in case you do not want to load/execute code
infection tells the extension which file was modified and the extension tells infection a list of file-paths (~~maybe a phpunit `--filter` condition - not exactly sure~~). I guess a file-list...
Maybe it would even be useful to implement this on PHPUnit itself as a new cli option: Something like `--filter-class='My\Filter\FilterClass'` which can programatically determine what tests to run. (So it...
> Do you mean that `My\Filter\FilterClass` in this case is not SUT, but the class that is actually called by PHPUnit and returns what tests to run so that PHPUnit...