Skip to content

Releases: shipmonk-rnd/composer-dependency-analyser

1.5.3

22 Apr 13:35
00b5023
Compare
Choose a tag to compare

Fixes

  • Ensure output of junit format is valid xml (#129)
  • Check invalid cli options combinations (#131)

1.5.2

17 Apr 08:39
701b485
Compare
Choose a tag to compare

Fixes

  • Fix unknown function false positive in multi-attribute usages (#124)

1.5.1

11 Apr 12:42
82b9f82
Compare
Choose a tag to compare

Fixes

  • Fix wrong detection of attribute name when aliased import or FQN is used (#121)

1.5.0

11 Apr 07:58
da9eb49
Compare
Choose a tag to compare

New features

  • 馃殌 support function detection (#71)
    • no more unused dependency false positive for packages with functions only!
  • support junit format output via --format=junit (#110) (by @reinfi)

Fixes

  • Better error message for invalid autoload paths in composer.json (#117)

1.4.0

19 Mar 16:12
da787b1
Compare
Choose a tag to compare

New features:

  • Ability to scan codebase outside of installed folder (#93)
    • This allows usage of composer-bin-plugin, easy scans of codebases with PHP < 7.2, composer's global install, single install in monorepo and similar approaches
  • Ability to dump usages of a package via --dump-usages symfony/console (#88)
    • Handy when verifying reported issues

Improvements:

  • Support absolute path in --composer-json and --config (#98)
  • Ensure ext-tokenizer is present (#104)

1.3.1

06 Mar 08:41
b67036e
Compare
Choose a tag to compare

Fixes:

  • Fix false-positive when FQN reference of a non-lowercase function is used (#90)

1.3.0

05 Mar 11:36
e7db687
Compare
Choose a tag to compare

Improvements

  • Performance boost of 40-60% depending on a project (#65, #66)

New features

  • Support multiple composer class loaders (#82)
    • This allows proper analysis in libraries extending PHPStan (example)

Fixes

  • Fix edgecase where use Trait is treated as use statement (#69)

1.2.1

16 Feb 10:51
d44a0ec
Compare
Choose a tag to compare

Fixes

  • File extension does not apply for directly listed files (#61, #62)

1.2.0

15 Feb 15:02
ad19bac
Compare
Choose a tag to compare

New features

  • Detect even classes inside phar archives (e.g. PHPStan classes) (#51)
  • Remove requirement to call composer dump-autoload -a before execution (#53, #57)
  • Output run summary even when issue is found (#58)

Fixes

  • Fix false positive when \array or \callable is used (#46)
  • Fix unknown class report when package uses autoload.files composer section even for classes (#50)
  • Fix duplicate file scan when autoload paths overlap (#52)
  • Fix path miscategorization when dev path is inside prod one (#54)

1.1.0

12 Feb 11:12
076e2a3
Compare
Choose a tag to compare

New features

  • Support classmap autoload sections in composer.json (#40)