Skip to content

Commit 9344dca

Browse files
turegjorupclaude
andcommitted
6869: Fix FieldCollection::new() removed in EasyAdmin 5.x
Use plain constructor instead of the removed static factory method, fixing PHPStan staticMethod.notFound errors. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 9a88a00 commit 9344dca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Trait/ExportCrudControllerTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function export(AdminContext $context): Response
4747

4848
assert($this instanceof AbstractCrudController);
4949
// Lifted from self::index().
50-
$fields = FieldCollection::new($this->configureFields(Crud::PAGE_INDEX));
50+
$fields = new FieldCollection($this->configureFields(Crud::PAGE_INDEX));
5151
$context->getCrud()->setFieldAssets($this->getFieldAssets($fields));
5252
$filters = $this->filterFactory->create($context->getCrud()->getFiltersConfig(), $fields,
5353
$context->getEntity());

0 commit comments

Comments
 (0)