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,7 +29,7 @@
|
||||
|
||||
namespace Espo\Core\Field;
|
||||
|
||||
use RuntimeException;
|
||||
use InvalidArgumentException;
|
||||
|
||||
/**
|
||||
* A phone number value. Immutable.
|
||||
@@ -44,7 +44,7 @@ class PhoneNumber
|
||||
public function __construct(string $number)
|
||||
{
|
||||
if ($number === '') {
|
||||
throw new RuntimeException("Empty phone number.");
|
||||
throw new InvalidArgumentException("Empty phone number.");
|
||||
}
|
||||
|
||||
$this->number = $number;
|
||||
@@ -144,6 +144,8 @@ class PhoneNumber
|
||||
|
||||
/**
|
||||
* Create with a number.
|
||||
*
|
||||
* @throws InvalidArgumentException
|
||||
*/
|
||||
public static function create(string $number): self
|
||||
{
|
||||
@@ -152,6 +154,8 @@ class PhoneNumber
|
||||
|
||||
/**
|
||||
* Create from a number and type.
|
||||
*
|
||||
* @throws InvalidArgumentException
|
||||
*/
|
||||
public static function createWithType(string $number, string $type): self
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user