---
title: "sebastian/lines-of-code 5.0.0 Breaking Changes on Packagist"
description: "What each sebastian/lines-of-code release removed, renamed or changed: 8 breaking changes in 4 versions on Packagist, each with its source."
canonical_url: https://since.dev/packages/packagist/sebastian/lines-of-code
last_updated: 2026-12-04
---

# sebastian/lines-of-code breaking changes

sebastian/lines-of-code 5.0.0 (February 6, 2026) is its newest release with breaking changes. The first: sebastian/lines-of-code 5.0.0 drops support for PHP 8.3. Every breaking API change we have recorded in sebastian/lines-of-code on Packagist: 8 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `5.0.2`, released July 9, 2026. BSD-3-Clause license. [Source repository](https://github.com/sebastianbergmann/lines-of-code)

Its 5.0.0 release drops [PHP 8.3](https://since.dev/calendar/php/8.3.md). [PHP end of life dates](https://since.dev/calendar/php.md).

- From [4.0.0](#v-4-0-0) to [5.0.0](#v-5-0-0): 1 breaking change in 1 version.
- From [2.0.0](#v-2-0-0) to [5.0.0](#v-5-0-0): 7 breaking changes in 3 versions.

## sebastian/lines-of-code 5.0.0 breaking changes

sebastian/lines-of-code 5.0.0, released February 6, 2026: 1 breaking change.

- **Removed**  

This release no longer supports PHP 8.3, so users on PHP 8.3 must stay on version 4.0.1 or upgrade PHP. [github.com](https://github.com/sebastianbergmann/lines-of-code/releases/tag/5.0.0)

## sebastian/lines-of-code 4.0.0 breaking changes

sebastian/lines-of-code 4.0.0, released February 7, 2025: 3 breaking changes.

- **Removed**  

This release no longer supports PHP 8.2. Stay on version 3.0.1 if you must run on PHP 8.2. [github.com](https://github.com/sebastianbergmann/lines-of-code/releases/tag/4.0.0)
- **Removed** `SebastianBergmann\LinesOfCode\NegativeValueException`  

SebastianBergmann\\LinesOfCode\\NegativeValueException was removed in sebastian/lines-of-code 4.0.0 [packagist.org](https://packagist.org/packages/sebastian/lines-of-code#4.0.0)
- **Signature changed** `SebastianBergmann\LinesOfCode\LineCountingVisitor::enterNode`  

Was public function enterNode(Node $node): void; now public function enterNode(Node $node): null. [packagist.org](https://packagist.org/packages/sebastian/lines-of-code#4.0.0)

## sebastian/lines-of-code 3.0.0 breaking changes

sebastian/lines-of-code 3.0.0, released February 2, 2024: 3 breaking changes.

- **Removed**  

This component is no longer supported on PHP 8.1. Users on PHP 8.1 must stay on an earlier version or upgrade PHP. [github.com](https://github.com/sebastianbergmann/lines-of-code/blob/3.0.0/ChangeLog.md)
- **Configuration changed**  

The component needs PHP-Parser 5. Projects pinned to PHP-Parser 4 must upgrade it to use this release. [github.com](https://github.com/sebastianbergmann/lines-of-code/blob/3.0.0/ChangeLog.md)
- **Signature changed** `SebastianBergmann\LinesOfCode\LinesOfCode`  

Was final class LinesOfCode; now final readonly class LinesOfCode. [packagist.org](https://packagist.org/packages/sebastian/lines-of-code#3.0.0)

## sebastian/lines-of-code 2.0.0 breaking changes

sebastian/lines-of-code 2.0.0, released February 3, 2023: 1 breaking change.

- **Removed**  

The package no longer supports PHP 7.3, PHP 7.4 and PHP 8.0. Users on those PHP versions must stay on 1.x or upgrade PHP. [github.com](https://github.com/sebastianbergmann/lines-of-code/blob/2.0.0/ChangeLog.md)

## Related packages

- [sebastian/cli-parser](https://since.dev/packages/packagist/sebastian/cli-parser.md)
- [sebastian/code-unit](https://since.dev/packages/packagist/sebastian/code-unit.md)
- [sebastian/code-unit-reverse-lookup](https://since.dev/packages/packagist/sebastian/code-unit-reverse-lookup.md)
- [sebastian/comparator](https://since.dev/packages/packagist/sebastian/comparator.md)
- [sebastian/complexity](https://since.dev/packages/packagist/sebastian/complexity.md)
- [sebastian/diff](https://since.dev/packages/packagist/sebastian/diff.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
