Skip to content

feat: allow Carbon as meta type#81

Merged
ictbeheer merged 4 commits intomainfrom
feat/carbon-meta
Mar 19, 2026
Merged

feat: allow Carbon as meta type#81
ictbeheer merged 4 commits intomainfrom
feat/carbon-meta

Conversation

@ictbeheer
Copy link
Member

No description provided.

@github-actions
Copy link

github-actions bot commented Mar 17, 2026

Coverage report for commit: 0218463
File: coverage.xml

Cover ┌─────────────────────────┐ Freq.
   0% │ ███████████████████████ │ 73.3%
  10% │ ███░░░░░░░░░░░░░░░░░░░░ │  6.7%
  20% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  30% │ ███░░░░░░░░░░░░░░░░░░░░ │  6.7%
  40% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  50% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  60% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  70% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  80% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  90% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
 100% │ █████░░░░░░░░░░░░░░░░░░ │ 13.3%
      └─────────────────────────┘
 *Legend:* █ = Current Distribution 
Summary - Lines: 11.11% | Methods: 7.69%
FilesLinesMethodsBranches
src/Attributes
   Meta.php--100.00%
   MetaPrefix.php--100.00%
   TaxonomyPrefix.php--100.00%
   Terms.php--100.00%
src/Contracts
   PostDataInterface.php100.00%100.00%100.00%
src/Enums
   PostStatus.php--100.00%
src
   ImageData.php--100.00%
   PostData.php9.82%7.69%100.00%
   TermData.php--100.00%
   UserData.php--100.00%
src/Mappers
   PostPrefixMapper.php--100.00%
   UserPrefixMapper.php--100.00%
src/Normalizers
   WPPostNormalizer.php--100.00%
src/Providers
   DataServiceProvider.php100.00%100.00%100.00%
src/Traits
   HasMeta.php26.47%-100.00%

🤖 comment via lucassabreu/comment-coverage-clover

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for casting meta fields into Carbon date objects when populating Data objects via the HasMeta trait.

Changes:

  • Import Carbon\CarbonImmutable in HasMeta.
  • Add meta-value casting logic to convert specific date string formats into CarbonImmutable instances.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Copy link

@mvdhoek1 mvdhoek1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wel een beetje diep genest allemaal in dit bestand...

@ictbeheer ictbeheer merged commit 61c17f4 into main Mar 19, 2026
5 checks passed
@ictbeheer ictbeheer deleted the feat/carbon-meta branch March 19, 2026 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants