> For the complete documentation index, see [llms.txt](https://senselab.gitbook.io/senselab-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://senselab.gitbook.io/senselab-docs/vendor/sebastian/complexity/changelog.md).

# ChangeLog

All notable changes are documented in this file using the [Keep a CHANGELOG](https://keepachangelog.com/) principles.

## [4.0.1](https://github.com/sebastianbergmann/complexity/compare/4.0.0...4.0.1) - 2024-07-03

### Changed

* This project now uses PHPStan instead of Psalm for static analysis

## [4.0.0](https://github.com/sebastianbergmann/complexity/compare/3.2...4.0.0) - 2024-02-02

### Removed

* This component now requires PHP-Parser 5
* This component is no longer supported on PHP 8.1

## [3.2.0](https://github.com/sebastianbergmann/complexity/compare/3.1.0...3.2.0) - 2023-12-21

### Added

* `ComplexityCollection::sortByDescendingCyclomaticComplexity()`
* Support for `match` arms

### Changed

* This component is now compatible with `nikic/php-parser` 5.0

## [3.1.0](https://github.com/sebastianbergmann/complexity/compare/3.0.1...3.1.0) - 2023-09-28

### Added

* `Complexity::isFunction()` and `Complexity::isMethod()`
* `ComplexityCollection::isFunction()` and `ComplexityCollection::isMethod()`
* `ComplexityCollection::mergeWith()`

### Fixed

* Anonymous classes are not processed correctly

## [3.0.1](https://github.com/sebastianbergmann/complexity/compare/3.0.0...3.0.1) - 2023-08-31

### Fixed

* [#7](https://github.com/sebastianbergmann/complexity/pull/7): `ComplexityCalculatingVisitor` tries to process interface methods

## [3.0.0](https://github.com/sebastianbergmann/complexity/compare/2.0.2...3.0.0) - 2023-02-03

### Removed

* This component is no longer supported on PHP 7.3, PHP 7.4 and PHP 8.0

## [2.0.2](https://github.com/sebastianbergmann/complexity/compare/2.0.1...2.0.2) - 2020-10-26

### Fixed

* `SebastianBergmann\Complexity\Exception` now correctly extends `\Throwable`

## [2.0.1](https://github.com/sebastianbergmann/complexity/compare/2.0.0...2.0.1) - 2020-09-28

### Changed

* Changed PHP version constraint in `composer.json` from `^7.3 || ^8.0` to `>=7.3`

## [2.0.0](https://github.com/sebastianbergmann/complexity/compare/1.0.0...2.0.0) - 2020-07-25

### Removed

* The `ParentConnectingVisitor` has been removed (it should have been marked as `@internal`)

## [1.0.0](https://github.com/sebastianbergmann/complexity/compare/70ee0ad32d9e2be3f85beffa3e2eb474193f2487...1.0.0) - 2020-07-22

* Initial release


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://senselab.gitbook.io/senselab-docs/vendor/sebastian/complexity/changelog.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
