mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-03-12 17:07:45 +00:00
Apply new rector rules regarding to PHP version to 8.4
This commit is contained in:
@@ -76,11 +76,11 @@ use Symfony\Component\Validator\Constraints as Assert;
|
||||
#[DiscriminatorMap(typeProperty: 'type', mapping: ['thirdparty' => ThirdParty::class])]
|
||||
class ThirdParty implements TrackCreationInterface, TrackUpdateInterface, \Stringable
|
||||
{
|
||||
final public const KIND_CHILD = 'child';
|
||||
final public const string KIND_CHILD = 'child';
|
||||
|
||||
final public const KIND_COMPANY = 'company';
|
||||
final public const string KIND_COMPANY = 'company';
|
||||
|
||||
final public const KIND_CONTACT = 'contact';
|
||||
final public const string KIND_CONTACT = 'contact';
|
||||
|
||||
/**
|
||||
* [fr] Sigle.
|
||||
@@ -757,7 +757,7 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface, \Strin
|
||||
}
|
||||
|
||||
$categories = \array_filter($typesAndCategories, static fn ($item) => $item instanceof ThirdPartyCategory);
|
||||
$categoriesHashes = \array_map(static fn (ThirdPartyCategory $c) => \spl_object_hash($c), $categories);
|
||||
$categoriesHashes = \array_map(\spl_object_hash(...), $categories);
|
||||
|
||||
foreach ($categories as $c) {
|
||||
$this->addCategory($c);
|
||||
|
||||
Reference in New Issue
Block a user