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 wrong return types #460

Merged
merged 1 commit into from
Jul 30, 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
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
Loading