Skip to content

Commit

Permalink
Merge pull request #3047 from philbates35/issue-3046-fix-docblocks
Browse files Browse the repository at this point in the history
Use static instead of CarbonInterface return type in doclocks
  • Loading branch information
kylekatarnls authored Jul 1, 2024
2 parents 871f2ca + 6e1cfa7 commit 57e6792
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
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

0 comments on commit 57e6792

Please sign in to comment.