Skip to content

Commit

Permalink
Fixed Link's PHP type
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Dec 3, 2024
1 parent 00a6feb commit e0cf58b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Unreleased

- Fixed a bug where asset, category, and entry sources defined by the `EVENT_REGISTER_SOURCES` event didn’t have any custom fields available to them, unless the `EVENT_REGISTER_FIELD_LAYOUTS` event was also used to define the available field layouts for the event-defined source. ([#16256](https://github.com/craftcms/cms/discussions/16256))
- Fixed a bug where Link fields were getting `string` types in `CustomFieldBehavior` rather than `craft\fields\data\LinkData`.

## 5.5.4 - 2024-12-02

Expand Down
2 changes: 1 addition & 1 deletion src/fields/Link.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public static function icon(): string
*/
public static function phpType(): string
{
return 'string|null';
return sprintf('\\%s|null', LinkData::class);
}

/**
Expand Down

0 comments on commit e0cf58b

Please sign in to comment.