Simon Podlipsky
Simon Podlipsky
FYI I'm not using PHAR but composer dev dep as `icanhazstring/composer-unused` and have the same issue so it's not the PHAR issue I believe.
These are packages I explicitly `use` in my `src`/`tests` (psr-4 roots) that are detected as unused - `bluem/tree` - `gpslab/interval` - `fakerphp/faker` - `league/flysystem-sftp` - `nyholm/psr7` - `promphp/prometheus_client_php` - `symfony/process`
Ok my issue is related to https://github.com/composer-unused/composer-unused/issues/326 I guess.
jakoby core feature si myslim, vote up! 👍
@landsman *v březnu 2022 klid
Ok, identical approach here 👍  We can leave this open then I guess (?)
I found eg. this https://github.com/vimeo/psalm/blob/master/src/Psalm/Internal/Provider/ReturnTypeProvider/StrReplaceReturnTypeProvider.php Perhaps we should be able to port this logic into something like `thecodingmachine/safe-psalm-plugin`. WDYT?
Array unpacking with string keys should be supported and new array type inferred https://psalm.dev/r/a25339af39
I believe tslib must be added to the dependencies (example https://github.com/doug-martin/nestjs-query/pull/987/commits/308db2fbda301cc56987b35f42fce890dd0bf46a) since cjs/index.js requires it `const tslib_1 = require("tslib");`
This is not related to the lib.