mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 11:03:50 +00:00
DX: rector rules upt to PHP 74
This commit is contained in:
@@ -61,12 +61,8 @@ class DocGeneratorTemplateType extends AbstractType
|
||||
$sub = $builder
|
||||
->create('options', null, ['compound' => true])
|
||||
->addModelTransformer(new CallbackTransformer(
|
||||
static function (array $data) use ($context) {
|
||||
return $context->adminFormTransform($data);
|
||||
},
|
||||
static function (array $data) use ($context) {
|
||||
return $context->adminFormReverseTransform($data);
|
||||
}
|
||||
static fn(array $data) => $context->adminFormTransform($data),
|
||||
static fn(array $data) => $context->adminFormReverseTransform($data)
|
||||
));
|
||||
$context->buildAdminForm($sub);
|
||||
$builder->add($sub);
|
||||
|
@@ -17,6 +17,6 @@ class ObjectReadyException extends RuntimeException
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct('object is already ready', 6698856);
|
||||
parent::__construct('object is already ready', 6_698_856);
|
||||
}
|
||||
}
|
||||
|
@@ -19,7 +19,7 @@ class RelatedEntityNotFoundException extends RuntimeException
|
||||
{
|
||||
parent::__construct(
|
||||
sprintf('Related entity not found: %s, %s', $relatedEntityClass, $relatedEntityId),
|
||||
99876652,
|
||||
99_876_652,
|
||||
$previous
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user