Skip to content

Commit b0321ab

Browse files
authored
Merge pull request #460 from Harfusha/2.x
Fix wrong return types
2 parents 0dc2ee1 + 8b53c33 commit b0321ab

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

src/ChronosInterface.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,7 +1245,7 @@ public function endOfWeek(): self;
12451245
* to indicate the desired dayOfWeek, ex. static::MONDAY.
12461246
*
12471247
* @param int|null $dayOfWeek The day of the week to move to.
1248-
* @return mixed
1248+
* @return static
12491249
*/
12501250
public function next(?int $dayOfWeek = null);
12511251

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

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

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

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

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

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

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

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

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

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

src/Traits/ModifierTrait.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,7 +1083,7 @@ public function endOfWeek(): ChronosInterface
10831083
* to indicate the desired dayOfWeek, ex. ChronosInterface::MONDAY.
10841084
*
10851085
* @param int|null $dayOfWeek The day of the week to move to.
1086-
* @return mixed
1086+
* @return static
10871087
*/
10881088
public function next(?int $dayOfWeek = null)
10891089
{
@@ -1103,7 +1103,7 @@ public function next(?int $dayOfWeek = null)
11031103
* to indicate the desired dayOfWeek, ex. ChronosInterface::MONDAY.
11041104
*
11051105
* @param int|null $dayOfWeek The day of the week to move to.
1106-
* @return mixed
1106+
* @return static
11071107
*/
11081108
public function previous(?int $dayOfWeek = null)
11091109
{
@@ -1123,7 +1123,7 @@ public function previous(?int $dayOfWeek = null)
11231123
* to indicate the desired dayOfWeek, ex. ChronosInterface::MONDAY.
11241124
*
11251125
* @param int|null $dayOfWeek The day of the week to move to.
1126-
* @return mixed
1126+
* @return static
11271127
*/
11281128
public function firstOfMonth(?int $dayOfWeek = null)
11291129
{
@@ -1139,7 +1139,7 @@ public function firstOfMonth(?int $dayOfWeek = null)
11391139
* to indicate the desired dayOfWeek, ex. ChronosInterface::MONDAY.
11401140
*
11411141
* @param int|null $dayOfWeek The day of the week to move to.
1142-
* @return mixed
1142+
* @return static
11431143
*/
11441144
public function lastOfMonth(?int $dayOfWeek = null)
11451145
{
@@ -1156,7 +1156,7 @@ public function lastOfMonth(?int $dayOfWeek = null)
11561156
*
11571157
* @param int $nth The offset to use.
11581158
* @param int $dayOfWeek The day of the week to move to.
1159-
* @return mixed
1159+
* @return static|false
11601160
*/
11611161
public function nthOfMonth(int $nth, int $dayOfWeek)
11621162
{
@@ -1174,7 +1174,7 @@ public function nthOfMonth(int $nth, int $dayOfWeek)
11741174
* to indicate the desired dayOfWeek, ex. ChronosInterface::MONDAY.
11751175
*
11761176
* @param int|null $dayOfWeek The day of the week to move to.
1177-
* @return mixed
1177+
* @return static
11781178
*/
11791179
public function firstOfQuarter(?int $dayOfWeek = null)
11801180
{
@@ -1191,7 +1191,7 @@ public function firstOfQuarter(?int $dayOfWeek = null)
11911191
* to indicate the desired dayOfWeek, ex. ChronosInterface::MONDAY.
11921192
*
11931193
* @param int|null $dayOfWeek The day of the week to move to.
1194-
* @return mixed
1194+
* @return static
11951195
*/
11961196
public function lastOfQuarter(?int $dayOfWeek = null)
11971197
{
@@ -1209,7 +1209,7 @@ public function lastOfQuarter(?int $dayOfWeek = null)
12091209
*
12101210
* @param int $nth The offset to use.
12111211
* @param int $dayOfWeek The day of the week to move to.
1212-
* @return mixed
1212+
* @return static|false
12131213
*/
12141214
public function nthOfQuarter(int $nth, int $dayOfWeek)
12151215
{
@@ -1228,7 +1228,7 @@ public function nthOfQuarter(int $nth, int $dayOfWeek)
12281228
* to indicate the desired dayOfWeek, ex. ChronosInterface::MONDAY.
12291229
*
12301230
* @param int|null $dayOfWeek The day of the week to move to.
1231-
* @return mixed
1231+
* @return static
12321232
*/
12331233
public function firstOfYear(?int $dayOfWeek = null)
12341234
{
@@ -1244,7 +1244,7 @@ public function firstOfYear(?int $dayOfWeek = null)
12441244
* to indicate the desired dayOfWeek, ex. ChronosInterface::MONDAY.
12451245
*
12461246
* @param int|null $dayOfWeek The day of the week to move to.
1247-
* @return mixed
1247+
* @return static
12481248
*/
12491249
public function lastOfYear(?int $dayOfWeek = null)
12501250
{
@@ -1261,7 +1261,7 @@ public function lastOfYear(?int $dayOfWeek = null)
12611261
*
12621262
* @param int $nth The offset to use.
12631263
* @param int $dayOfWeek The day of the week to move to.
1264-
* @return mixed
1264+
* @return static|false
12651265
*/
12661266
public function nthOfYear(int $nth, int $dayOfWeek)
12671267
{

0 commit comments

Comments
 (0)