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,24 +29,22 @@
|
||||
|
||||
namespace Espo\Hooks\Common;
|
||||
|
||||
use Espo\Core\Hook\Hook\BeforeSave;
|
||||
use Espo\Core\ORM\Entity as CoreEntity;
|
||||
use Espo\ORM\Entity;
|
||||
use Espo\Core\FieldProcessing\NextNumber\BeforeSaveProcessor as Processor;
|
||||
use Espo\Core\FieldProcessing\NextNumber\Processor as Processor;
|
||||
use Espo\ORM\Repository\Option\SaveOptions;
|
||||
|
||||
class NextNumber
|
||||
/**
|
||||
* @implements BeforeSave<CoreEntity>
|
||||
*/
|
||||
class NextNumber implements BeforeSave
|
||||
{
|
||||
public function __construct(private Processor $processor)
|
||||
{}
|
||||
|
||||
/**
|
||||
* @param array<string, mixed> $options
|
||||
*/
|
||||
public function beforeSave(Entity $entity, array $options): void
|
||||
public function beforeSave(Entity $entity, SaveOptions $options): void
|
||||
{
|
||||
if (!$entity instanceof CoreEntity) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->processor->process($entity, $options);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user