### Install sebastian/complexity with Composer Source: https://github.com/sebastianbergmann/complexity/blob/main/README.md Demonstrates how to add the sebastian/complexity library to a PHP project using Composer. It shows both project dependency and development-time dependency installation. ```bash composer require sebastian/complexity ``` ```bash composer require --dev sebastian/complexity ``` -------------------------------- ### Removed Complexity Support Source: https://github.com/sebastianbergmann/complexity/blob/main/ChangeLog.md Lists versions where support for specific PHP versions and components like ParentConnectingVisitor has been removed. ```PHP This component is no longer supported on PHP 8.2 This component now requires PHP-Parser 5 This component is no longer supported on PHP 8.1 This component is no longer supported on PHP 7.3, PHP 7.4 and PHP 8.0 The ParentConnectingVisitor has been removed (it should have been marked as `@internal`) ``` -------------------------------- ### Fixed Exception Handling Source: https://github.com/sebastianbergmann/complexity/blob/main/ChangeLog.md Details the fix for SebastianBergmann\Complexity\Exception to correctly extend \Throwable. ```PHP SebastianBergmann\Complexity\Exception now correctly extends `\Throwable` ``` -------------------------------- ### Changed Complexity Compatibility Source: https://github.com/sebastianbergmann/complexity/blob/main/ChangeLog.md Highlights changes in compatibility with the nikic/php-parser library and updates to static analysis tools. ```PHP This component is now compatible with `nikic/php-parser` 5.0 This project now uses PHPStan instead of Psalm for static analysis ``` -------------------------------- ### Added Complexity Methods Source: https://github.com/sebastianbergmann/complexity/blob/main/ChangeLog.md Details new methods added to the Complexity and ComplexityCollection classes, enhancing functionality for analyzing code complexity. ```PHP ComplexityCollection::sortByDescendingCyclomaticComplexity() Complexity::isFunction() and Complexity::isMethod() ComplexityCollection::isFunction() and ComplexityCollection::isMethod() ComplexityCollection::mergeWith() ``` -------------------------------- ### Changed PHP Version Constraint Source: https://github.com/sebastianbergmann/complexity/blob/main/ChangeLog.md Documents the adjustment of the PHP version constraint in composer.json. ```PHP Changed PHP version constraint in `composer.json` from `^7.3 || ^8.0` to `>=7.3` ``` -------------------------------- ### Fixed Complexity Issues Source: https://github.com/sebastianbergmann/complexity/blob/main/ChangeLog.md Documents fixes for issues related to anonymous class processing and interface method handling in the ComplexityCalculatingVisitor. ```PHP Anonymous classes are not processed correctly #7: ComplexityCalculatingVisitor tries to process interface methods ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.