---
title: "egulias/email-validator 4.0.0 Breaking Changes on Packagist"
description: "What each egulias/email-validator release removed, renamed or changed: 8 breaking changes in 1 version on Packagist, each with its source."
canonical_url: https://since.dev/packages/packagist/egulias/email-validator
last_updated: 2026-12-04
---

# egulias/email-validator breaking changes

egulias/email-validator 4.0.0 (January 7, 2023) is its newest release with breaking changes, 8 of them. The first: Removed Egulias\\EmailValidator\\EmailLexer::$lookahead. Every breaking API change we have recorded in egulias/email-validator on Packagist: 8 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.0.5`, released November 22, 2026. MIT license. [Source repository](https://github.com/egulias/EmailValidator)

Packages on Packagist run on PHP. [PHP end of life dates](https://since.dev/calendar/php.md).

## egulias/email-validator 4.0.0 breaking changes

egulias/email-validator 4.0.0, released January 7, 2023: 8 breaking changes.

- **Removed** `Egulias\EmailValidator\EmailLexer::$lookahead`  

Egulias\\EmailValidator\\EmailLexer::$lookahead was removed in egulias/email-validator 4.0.0 [packagist.org](https://packagist.org/packages/egulias/email-validator#4.0.0)
- **Removed** `Egulias\EmailValidator\EmailLexer::$token`  

Egulias\\EmailValidator\\EmailLexer::$token was removed in egulias/email-validator 4.0.0 [packagist.org](https://packagist.org/packages/egulias/email-validator#4.0.0)
- **Signature changed** `Egulias\EmailValidator\EmailLexer::$previous`  

Was protected $previous; now protected Token $previous. [packagist.org](https://packagist.org/packages/egulias/email-validator#4.0.0)
- **Signature changed** `Egulias\EmailValidator\EmailLexer::getPrevious`  

Was public function getPrevious() : array; now public function getPrevious(): Token. [packagist.org](https://packagist.org/packages/egulias/email-validator#4.0.0)
- **Signature changed** `Egulias\EmailValidator\EmailLexer::getType`  

Was protected function getType(&$value); now protected function getType(&$value): int. [packagist.org](https://packagist.org/packages/egulias/email-validator#4.0.0)
- **Signature changed** `Egulias\EmailValidator\Parser\DomainPart::checkDomainPartExceptions`  

Was protected function checkDomainPartExceptions(array $prev, bool $hasComments) : Result; now protected function checkDomainPartExceptions(Token $prev, bool $hasComments): Result. [packagist.org](https://packagist.org/packages/egulias/email-validator#4.0.0)
- **Signature changed** `Egulias\EmailValidator\Result\InvalidEmail::$reason`  

Was protected $reason; now protected Reason $reason. [packagist.org](https://packagist.org/packages/egulias/email-validator#4.0.0)
- **Signature changed** `Egulias\EmailValidator\Warning\Warning::__toString`  

Was public function \_\_toString(); now public function \_\_toString(): string. [packagist.org](https://packagist.org/packages/egulias/email-validator#4.0.0)

## 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.
