Skip to content

Conversation

@lmottasin
Copy link
Contributor

@lmottasin lmottasin commented Feb 28, 2025

Issue #54831

Summary

This PR updates the docblock to correctly reference the named argument usage of Date::today(timezone: 'UTC') instead of Date::today(tz: 'UTC'), which throws the following exception:
Error: Unknown named parameter $tz.

Changes

  • Updated the docblock to reflect the correct named argument timezone, aligning with Carbon/Factory, which consistently uses $timezone.
    Reference: Carbon/Factory.php#L40
  • Fixed an invalid namespace in the method annotation:
     @method \Symfony\Component\Translation\TranslatorInterface getTranslator()

Changed it to:

 @method \Symfony\Contracts\Translation\TranslatorInterface getTranslator()

Reference: Carbon/Factory.php#L23

…latorInterface' to 'Symfony\Contracts\Translation\TranslatorInterface'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants