Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix date scalar try to parse Illuminate\\Support\\Carbon as string #2470

Merged
merged 8 commits into from
Mar 1, 2024

Conversation

danbka33
Copy link
Contributor

@danbka33 danbka33 commented Nov 14, 2023

  • Added or updated tests
  • Documented user facing changes
  • Updated CHANGELOG.md

Changes

Checks the input parameter of the tryParsingDate method and if it is an object of type IlluminateCarbon, then returns it.

Copy link
Collaborator

@spawnia spawnia left a comment

Choose a reason for hiding this comment

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

Thanks for getting this started, looks good in principle.

src/Schema/Types/Scalars/DateScalar.php Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
tests/Unit/Schema/Types/Scalars/DateScalarTestBase.php Outdated Show resolved Hide resolved
@spawnia spawnia added the bug An error within Lighthouse label Nov 28, 2023
@spawnia
Copy link
Collaborator

spawnia commented Nov 28, 2023

This pull request definitely makes sense, but #1606 describes a different problem.

@danbka33
Copy link
Contributor Author

@spawnia all done

@spawnia spawnia merged commit 80adc58 into nuwave:master Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error within Lighthouse
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants