@@ -935,7 +935,7 @@ public function endOfDay(bool $microseconds = false): ChronosInterface
935935 public function startOfMonth (): ChronosInterface
936936 {
937937 if (static ::class === ChronosDate::class) {
938- trigger_error ('2.5 startOfMonth() will be removed in 3.x. ' , E_USER_DEPRECATED );
938+ trigger_error ('2.5 startOfMonth() will be removed in 3.x. Use firstOfMonth() instead. ' , E_USER_DEPRECATED );
939939 }
940940
941941 return $ this ->modify ('first day of this month midnight ' );
@@ -949,7 +949,7 @@ public function startOfMonth(): ChronosInterface
949949 public function endOfMonth (): ChronosInterface
950950 {
951951 if (static ::class === ChronosDate::class) {
952- trigger_error ('2.5 endOfMonth() will be removed in 3.x. ' , E_USER_DEPRECATED );
952+ trigger_error ('2.5 endOfMonth() will be removed in 3.x. Use lastOfMonth() instead. ' , E_USER_DEPRECATED );
953953 }
954954
955955 return $ this ->modify ('last day of this month, 23:59:59 ' );
@@ -963,7 +963,7 @@ public function endOfMonth(): ChronosInterface
963963 public function startOfYear (): ChronosInterface
964964 {
965965 if (static ::class === ChronosDate::class) {
966- trigger_error ('2.5 startOfYear() will be removed in 3.x. ' , E_USER_DEPRECATED );
966+ trigger_error ('2.5 startOfYear() will be removed in 3.x. Use firstOfYear() instead. ' , E_USER_DEPRECATED );
967967 }
968968
969969 return $ this ->modify ('first day of january midnight ' );
@@ -977,7 +977,7 @@ public function startOfYear(): ChronosInterface
977977 public function endOfYear (): ChronosInterface
978978 {
979979 if (static ::class === ChronosDate::class) {
980- trigger_error ('2.5 endOfYear() will be removed in 3.x. ' , E_USER_DEPRECATED );
980+ trigger_error ('2.5 endOfYear() will be removed in 3.x. Use lastOfYear() instead. ' , E_USER_DEPRECATED );
981981 }
982982
983983 return $ this ->modify ('last day of december, 23:59:59 ' );
0 commit comments