# ChangeLog

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

## [4.0.1] - 2026-05-19

### Fixed

* [#6](https://github.com/sebastianbergmann/lines-of-code/issues/6): Lines with multiple comments are double-counted, yielding negative `$nonCommentLinesOfCode`

## [4.0.0] - 2025-02-07

### Removed

* This component is no longer supported on PHP 8.2

## [3.0.1] - 2024-07-03

### Changed

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

## [3.0.0] - 2024-02-02

### Removed

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

## [2.0.2] - 2023-12-21

### Changed

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

## [2.0.1] - 2023-08-31

### Changed

* Improved type information

## [2.0.0] - 2023-02-03

### Removed

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

## [1.0.3] - 2020-11-28

### Fixed

* Files that do not contain a newline were not handled correctly

### Changed

* A line of code is no longer considered to be a Logical Line of Code if it does not contain an `Expr` node

## [1.0.2] - 2020-10-26

### Fixed

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

## [1.0.1] - 2020-09-28

### Changed

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

## [1.0.0] - 2020-07-22

* Initial release

[4.0.1]: https://github.com/sebastianbergmann/lines-of-code/compare/4.0.0...4.0.1
[4.0.0]: https://github.com/sebastianbergmann/lines-of-code/compare/3.0...4.0.0
[3.0.1]: https://github.com/sebastianbergmann/lines-of-code/compare/3.0.0...3.0.1
[3.0.0]: https://github.com/sebastianbergmann/lines-of-code/compare/2.0...3.0.0
[2.0.2]: https://github.com/sebastianbergmann/lines-of-code/compare/2.0.1...2.0.2
[2.0.1]: https://github.com/sebastianbergmann/lines-of-code/compare/2.0.0...2.0.1
[2.0.0]: https://github.com/sebastianbergmann/lines-of-code/compare/1.0.3...2.0.0
[1.0.3]: https://github.com/sebastianbergmann/lines-of-code/compare/1.0.2...1.0.3
[1.0.2]: https://github.com/sebastianbergmann/lines-of-code/compare/1.0.1...1.0.2
[1.0.1]: https://github.com/sebastianbergmann/lines-of-code/compare/1.0.0...1.0.1
[1.0.0]: https://github.com/sebastianbergmann/lines-of-code/compare/f959e71f00e591288acc024afe9cb966c6cf9bd6...1.0.0
