-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ce1274e
commit 00811ac
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,8 @@ | |
/** | ||
* @author Thomas Rabaix <[email protected]> | ||
* | ||
* @psalm-import-type FieldDescriptionOptions from FieldDescriptionInterface | ||
* | ||
* @phpstan-template T of object | ||
* @phpstan-extends AbstractTaggedAdmin<T> | ||
* @phpstan-implements AdminInterface<T> | ||
|
@@ -2961,6 +2963,12 @@ final public function hasTemplateRegistry(): bool | |
return null !== $this->templateRegistry; | ||
} | ||
|
||
/** | ||
* NEXT_MAJOR: Move this phpdoc to the interface. | ||
* | ||
* @psalm-param FieldDescriptionOptions $options | ||
* @phpstan-param array<string, mixed> $options | ||
*/ | ||
final public function createFieldDescription(string $propertyName, array $options = []): FieldDescriptionInterface | ||
{ | ||
$fieldDescriptionFactory = $this->getFieldDescriptionFactory(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters