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

Use static instead of CarbonInterface return type in doclocks #3047

Merged
merged 1 commit into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Carbon/Traits/Rounding.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
*
* Depends on the following methods:
*
* @method CarbonInterface copy()
* @method CarbonInterface startOfWeek(int $weekStartsAt = null)
* @method static copy()
* @method static startOfWeek(int $weekStartsAt = null)
*/
trait Rounding
{
Expand Down
15 changes: 7 additions & 8 deletions src/Carbon/Traits/Week.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

namespace Carbon\Traits;

use Carbon\CarbonInterface;
use Carbon\CarbonInterval;

/**
Expand All @@ -30,14 +29,14 @@
*
* Depends on the following methods:
*
* @method CarbonInterface addWeeks(int $weeks = 1)
* @method CarbonInterface copy()
* @method CarbonInterface dayOfYear(int $dayOfYear)
* @method static addWeeks(int $weeks = 1)
* @method static copy()
* @method static dayOfYear(int $dayOfYear)
* @method string getTranslationMessage(string $key, ?string $locale = null, ?string $default = null, $translator = null)
* @method CarbonInterface next(int|string $modifier = null)
* @method CarbonInterface startOfWeek(int $day = null)
* @method CarbonInterface subWeeks(int $weeks = 1)
* @method CarbonInterface year(int $year = null)
* @method static next(int|string $modifier = null)
* @method static startOfWeek(int $day = null)
* @method static subWeeks(int $weeks = 1)
* @method static year(int $year = null)
*/
trait Week
{
Expand Down
Loading