chore: Update copyright year from 2025 to 2026 across core files
- Updated copyright headers in 3,055 core application files - Changed 'Copyright (C) 2014-2025' to 'Copyright (C) 2014-2026' - Added 123 new files from EspoCRM core updates - Removed 4 deprecated files - Total changes: 61,637 insertions, 54,283 deletions This is a routine maintenance update for the new year 2026.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
* This file is part of EspoCRM.
|
||||
*
|
||||
* EspoCRM – Open Source CRM application.
|
||||
* Copyright (C) 2014-2025 EspoCRM, Inc.
|
||||
* Copyright (C) 2014-2026 EspoCRM, Inc.
|
||||
* Website: https://www.espocrm.com
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
@@ -29,9 +29,9 @@
|
||||
|
||||
namespace Espo\Core\Field;
|
||||
|
||||
use RuntimeException;
|
||||
use InvalidArgumentException;
|
||||
|
||||
use FILTER_VALIDATE_EMAIL;
|
||||
use const FILTER_VALIDATE_EMAIL;
|
||||
|
||||
/**
|
||||
* An email address value. Immutable.
|
||||
@@ -42,14 +42,17 @@ class EmailAddress
|
||||
private bool $isOptedOut = false;
|
||||
private bool $isInvalid = false;
|
||||
|
||||
/**
|
||||
* @throws InvalidArgumentException
|
||||
*/
|
||||
public function __construct(string $address)
|
||||
{
|
||||
if ($address === '') {
|
||||
throw new RuntimeException("Empty email address.");
|
||||
throw new InvalidArgumentException("Empty email address.");
|
||||
}
|
||||
|
||||
if (!filter_var($address, FILTER_VALIDATE_EMAIL)) {
|
||||
throw new RuntimeException("Not valid email address '{$address}'.");
|
||||
throw new InvalidArgumentException("Not valid email address '$address'.");
|
||||
}
|
||||
|
||||
$this->address = $address;
|
||||
@@ -129,6 +132,8 @@ class EmailAddress
|
||||
|
||||
/**
|
||||
* Create from an address.
|
||||
*
|
||||
* @throws InvalidArgumentException
|
||||
*/
|
||||
public static function create(string $address): self
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user