feat: add Date.addMonths
method
#2149
Annotations
6 errors and 18 warnings
Execute (PHP 8.3 with lowest deps)
Process completed with exit code 1.
|
Execute (PHP 8.2 with highest deps)
Process completed with exit code 1.
|
Execute (PHP 8.3 with highest deps)
Process completed with exit code 1.
|
Execute (PHP 8.2 with lowest deps)
Process completed with exit code 1.
|
Execute (PHP 8.2 with locked deps)
Process completed with exit code 1.
|
Execute (PHP 8.3 with locked deps)
Process completed with exit code 1.
|
Execute (PHP 8.3 with lowest deps)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Execute (PHP 8.3 with lowest deps):
lib/Date.php#L119
Escaped Mutant for Mutator "GreaterThan":
@@ @@
}
$month = $this->month + $increment;
$year = $this->year;
- while ($month > 12) {
+ while ($month >= 12) {
$month -= 12;
$year++;
}
|
Execute (PHP 8.3 with lowest deps):
lib/Date.php#L131
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
$month -= 12;
$year++;
}
- return new self($year, $month, \min($this->day, (int) DateTimeFactory::immutableFromFormat('Y-m-d', \sprintf('%02d-%02d-%02d', $year, $month, 1))->format('t')));
+ return new self($year, $month, \min($this->day, (int) DateTimeFactory::immutableFromFormat('Y-m-d', \sprintf('%02d-%02d-%02d', $year, $month, 2))->format('t')));
}
public function offsetByDays(int $days): self
{
|
Execute (PHP 8.2 with highest deps)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Execute (PHP 8.2 with highest deps):
lib/Date.php#L119
Escaped Mutant for Mutator "GreaterThan":
@@ @@
}
$month = $this->month + $increment;
$year = $this->year;
- while ($month > 12) {
+ while ($month >= 12) {
$month -= 12;
$year++;
}
|
Execute (PHP 8.2 with highest deps):
lib/Date.php#L131
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
$month -= 12;
$year++;
}
- return new self($year, $month, \min($this->day, (int) DateTimeFactory::immutableFromFormat('Y-m-d', \sprintf('%02d-%02d-%02d', $year, $month, 1))->format('t')));
+ return new self($year, $month, \min($this->day, (int) DateTimeFactory::immutableFromFormat('Y-m-d', \sprintf('%02d-%02d-%02d', $year, $month, 2))->format('t')));
}
public function offsetByDays(int $days): self
{
|
Execute (PHP 8.3 with highest deps)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Execute (PHP 8.3 with highest deps):
lib/Date.php#L119
Escaped Mutant for Mutator "GreaterThan":
@@ @@
}
$month = $this->month + $increment;
$year = $this->year;
- while ($month > 12) {
+ while ($month >= 12) {
$month -= 12;
$year++;
}
|
Execute (PHP 8.3 with highest deps):
lib/Date.php#L131
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
$month -= 12;
$year++;
}
- return new self($year, $month, \min($this->day, (int) DateTimeFactory::immutableFromFormat('Y-m-d', \sprintf('%02d-%02d-%02d', $year, $month, 1))->format('t')));
+ return new self($year, $month, \min($this->day, (int) DateTimeFactory::immutableFromFormat('Y-m-d', \sprintf('%02d-%02d-%02d', $year, $month, 2))->format('t')));
}
public function offsetByDays(int $days): self
{
|
Execute (PHP 8.2 with lowest deps)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Execute (PHP 8.2 with lowest deps):
lib/Date.php#L119
Escaped Mutant for Mutator "GreaterThan":
@@ @@
}
$month = $this->month + $increment;
$year = $this->year;
- while ($month > 12) {
+ while ($month >= 12) {
$month -= 12;
$year++;
}
|
Execute (PHP 8.2 with lowest deps):
lib/Date.php#L131
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
$month -= 12;
$year++;
}
- return new self($year, $month, \min($this->day, (int) DateTimeFactory::immutableFromFormat('Y-m-d', \sprintf('%02d-%02d-%02d', $year, $month, 1))->format('t')));
+ return new self($year, $month, \min($this->day, (int) DateTimeFactory::immutableFromFormat('Y-m-d', \sprintf('%02d-%02d-%02d', $year, $month, 2))->format('t')));
}
public function offsetByDays(int $days): self
{
|
Execute (PHP 8.2 with locked deps)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Execute (PHP 8.2 with locked deps):
lib/Date.php#L119
Escaped Mutant for Mutator "GreaterThan":
@@ @@
}
$month = $this->month + $increment;
$year = $this->year;
- while ($month > 12) {
+ while ($month >= 12) {
$month -= 12;
$year++;
}
|
Execute (PHP 8.2 with locked deps):
lib/Date.php#L131
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
$month -= 12;
$year++;
}
- return new self($year, $month, \min($this->day, (int) DateTimeFactory::immutableFromFormat('Y-m-d', \sprintf('%02d-%02d-%02d', $year, $month, 1))->format('t')));
+ return new self($year, $month, \min($this->day, (int) DateTimeFactory::immutableFromFormat('Y-m-d', \sprintf('%02d-%02d-%02d', $year, $month, 2))->format('t')));
}
public function offsetByDays(int $days): self
{
|
Execute (PHP 8.3 with locked deps)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Execute (PHP 8.3 with locked deps):
lib/Date.php#L119
Escaped Mutant for Mutator "GreaterThan":
@@ @@
}
$month = $this->month + $increment;
$year = $this->year;
- while ($month > 12) {
+ while ($month >= 12) {
$month -= 12;
$year++;
}
|
Execute (PHP 8.3 with locked deps):
lib/Date.php#L131
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
$month -= 12;
$year++;
}
- return new self($year, $month, \min($this->day, (int) DateTimeFactory::immutableFromFormat('Y-m-d', \sprintf('%02d-%02d-%02d', $year, $month, 1))->format('t')));
+ return new self($year, $month, \min($this->day, (int) DateTimeFactory::immutableFromFormat('Y-m-d', \sprintf('%02d-%02d-%02d', $year, $month, 2))->format('t')));
}
public function offsetByDays(int $days): self
{
|