Skip to content

Commit

Permalink
Fix wrong return types
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Halfar committed Jul 26, 2024
1 parent 0dc2ee1 commit 8b53c33
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
22 changes: 11 additions & 11 deletions src/ChronosInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -1245,7 +1245,7 @@ public function endOfWeek(): self;
* to indicate the desired dayOfWeek, ex. static::MONDAY.
*
* @param int|null $dayOfWeek The day of the week to move to.
* @return mixed
* @return static
*/
public function next(?int $dayOfWeek = null);

Expand All @@ -1256,7 +1256,7 @@ public function next(?int $dayOfWeek = null);
* to indicate the desired dayOfWeek, ex. static::MONDAY.
*
* @param int|null $dayOfWeek The day of the week to move to.
* @return mixed
* @return static
*/
public function previous(?int $dayOfWeek = null);

Expand All @@ -1267,7 +1267,7 @@ public function previous(?int $dayOfWeek = null);
* to indicate the desired dayOfWeek, ex. static::MONDAY.
*
* @param int|null $dayOfWeek The day of the week to move to.
* @return mixed
* @return static
*/
public function firstOfMonth(?int $dayOfWeek = null);

Expand All @@ -1278,7 +1278,7 @@ public function firstOfMonth(?int $dayOfWeek = null);
* to indicate the desired dayOfWeek, ex. static::MONDAY.
*
* @param int|null $dayOfWeek The day of the week to move to.
* @return mixed
* @return static
*/
public function lastOfMonth(?int $dayOfWeek = null);

Expand All @@ -1290,7 +1290,7 @@ public function lastOfMonth(?int $dayOfWeek = null);
*
* @param int $nth The offset to use.
* @param int $dayOfWeek The day of the week to move to.
* @return mixed
* @return static|false
*/
public function nthOfMonth(int $nth, int $dayOfWeek);

Expand All @@ -1301,7 +1301,7 @@ public function nthOfMonth(int $nth, int $dayOfWeek);
* to indicate the desired dayOfWeek, ex. static::MONDAY.
*
* @param int|null $dayOfWeek The day of the week to move to.
* @return mixed
* @return static
*/
public function firstOfQuarter(?int $dayOfWeek = null);

Expand All @@ -1312,7 +1312,7 @@ public function firstOfQuarter(?int $dayOfWeek = null);
* to indicate the desired dayOfWeek, ex. static::MONDAY.
*
* @param int|null $dayOfWeek The day of the week to move to.
* @return mixed
* @return static
*/
public function lastOfQuarter(?int $dayOfWeek = null);

Expand All @@ -1324,7 +1324,7 @@ public function lastOfQuarter(?int $dayOfWeek = null);
*
* @param int $nth The offset to use.
* @param int $dayOfWeek The day of the week to move to.
* @return mixed
* @return static|false
*/
public function nthOfQuarter(int $nth, int $dayOfWeek);

Expand All @@ -1335,7 +1335,7 @@ public function nthOfQuarter(int $nth, int $dayOfWeek);
* to indicate the desired dayOfWeek, ex. static::MONDAY.
*
* @param int|null $dayOfWeek The day of the week to move to.
* @return mixed
* @return static
*/
public function firstOfYear(?int $dayOfWeek = null);

Expand All @@ -1346,7 +1346,7 @@ public function firstOfYear(?int $dayOfWeek = null);
* to indicate the desired dayOfWeek, ex. static::MONDAY.
*
* @param int|null $dayOfWeek The day of the week to move to.
* @return mixed
* @return static
*/
public function lastOfYear(?int $dayOfWeek = null);

Expand All @@ -1358,7 +1358,7 @@ public function lastOfYear(?int $dayOfWeek = null);
*
* @param int $nth The offset to use.
* @param int $dayOfWeek The day of the week to move to.
* @return mixed
* @return static|false
*/
public function nthOfYear(int $nth, int $dayOfWeek);

Expand Down
22 changes: 11 additions & 11 deletions src/Traits/ModifierTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@ public function endOfWeek(): ChronosInterface
* to indicate the desired dayOfWeek, ex. ChronosInterface::MONDAY.
*
* @param int|null $dayOfWeek The day of the week to move to.
* @return mixed
* @return static
*/
public function next(?int $dayOfWeek = null)
{
Expand All @@ -1103,7 +1103,7 @@ public function next(?int $dayOfWeek = null)
* to indicate the desired dayOfWeek, ex. ChronosInterface::MONDAY.
*
* @param int|null $dayOfWeek The day of the week to move to.
* @return mixed
* @return static
*/
public function previous(?int $dayOfWeek = null)
{
Expand All @@ -1123,7 +1123,7 @@ public function previous(?int $dayOfWeek = null)
* to indicate the desired dayOfWeek, ex. ChronosInterface::MONDAY.
*
* @param int|null $dayOfWeek The day of the week to move to.
* @return mixed
* @return static
*/
public function firstOfMonth(?int $dayOfWeek = null)
{
Expand All @@ -1139,7 +1139,7 @@ public function firstOfMonth(?int $dayOfWeek = null)
* to indicate the desired dayOfWeek, ex. ChronosInterface::MONDAY.
*
* @param int|null $dayOfWeek The day of the week to move to.
* @return mixed
* @return static
*/
public function lastOfMonth(?int $dayOfWeek = null)
{
Expand All @@ -1156,7 +1156,7 @@ public function lastOfMonth(?int $dayOfWeek = null)
*
* @param int $nth The offset to use.
* @param int $dayOfWeek The day of the week to move to.
* @return mixed
* @return static|false
*/
public function nthOfMonth(int $nth, int $dayOfWeek)
{
Expand All @@ -1174,7 +1174,7 @@ public function nthOfMonth(int $nth, int $dayOfWeek)
* to indicate the desired dayOfWeek, ex. ChronosInterface::MONDAY.
*
* @param int|null $dayOfWeek The day of the week to move to.
* @return mixed
* @return static
*/
public function firstOfQuarter(?int $dayOfWeek = null)
{
Expand All @@ -1191,7 +1191,7 @@ public function firstOfQuarter(?int $dayOfWeek = null)
* to indicate the desired dayOfWeek, ex. ChronosInterface::MONDAY.
*
* @param int|null $dayOfWeek The day of the week to move to.
* @return mixed
* @return static
*/
public function lastOfQuarter(?int $dayOfWeek = null)
{
Expand All @@ -1209,7 +1209,7 @@ public function lastOfQuarter(?int $dayOfWeek = null)
*
* @param int $nth The offset to use.
* @param int $dayOfWeek The day of the week to move to.
* @return mixed
* @return static|false
*/
public function nthOfQuarter(int $nth, int $dayOfWeek)
{
Expand All @@ -1228,7 +1228,7 @@ public function nthOfQuarter(int $nth, int $dayOfWeek)
* to indicate the desired dayOfWeek, ex. ChronosInterface::MONDAY.
*
* @param int|null $dayOfWeek The day of the week to move to.
* @return mixed
* @return static
*/
public function firstOfYear(?int $dayOfWeek = null)
{
Expand All @@ -1244,7 +1244,7 @@ public function firstOfYear(?int $dayOfWeek = null)
* to indicate the desired dayOfWeek, ex. ChronosInterface::MONDAY.
*
* @param int|null $dayOfWeek The day of the week to move to.
* @return mixed
* @return static
*/
public function lastOfYear(?int $dayOfWeek = null)
{
Expand All @@ -1261,7 +1261,7 @@ public function lastOfYear(?int $dayOfWeek = null)
*
* @param int $nth The offset to use.
* @param int $dayOfWeek The day of the week to move to.
* @return mixed
* @return static|false
*/
public function nthOfYear(int $nth, int $dayOfWeek)
{
Expand Down

0 comments on commit 8b53c33

Please sign in to comment.