feat(tcp): support TLS/SSL #941
Annotations
1 error and 10 warnings
mutation tests (8.3, ubuntu-latest)
Process completed with exit code 2.
|
mutation tests (8.3, ubuntu-latest):
src/Psl/DateTime/DateTime.php#L140
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
*
* @psalm-mutation-free
*/
- public static function todayAt(int $hours, int $minutes, int $seconds = 0, int $nanoseconds = 0, ?Timezone $timezone = null) : DateTime
+ public static function todayAt(int $hours, int $minutes, int $seconds = 1, int $nanoseconds = 0, ?Timezone $timezone = null) : DateTime
{
return self::now($timezone)->withTime($hours, $minutes, $seconds, $nanoseconds);
}
|
mutation tests (8.3, ubuntu-latest):
src/Psl/DateTime/DateTime.php#L140
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
*
* @psalm-mutation-free
*/
- public static function todayAt(int $hours, int $minutes, int $seconds = 0, int $nanoseconds = 0, ?Timezone $timezone = null) : DateTime
+ public static function todayAt(int $hours, int $minutes, int $seconds = 0, int $nanoseconds = 1, ?Timezone $timezone = null) : DateTime
{
return self::now($timezone)->withTime($hours, $minutes, $seconds, $nanoseconds);
}
|
mutation tests (8.3, ubuntu-latest):
src/Psl/DateTime/DateTime.php#L169
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
*
* @psalm-suppress ImpureMethodCall
*/
- public static function fromParts(Timezone $timezone, int $year, Month|int $month, int $day, int $hours = 0, int $minutes = 0, int $seconds = 0, int $nanoseconds = 0) : self
+ public static function fromParts(Timezone $timezone, int $year, Month|int $month, int $day, int $hours = 1, int $minutes = 0, int $seconds = 0, int $nanoseconds = 0) : self
{
if ($month instanceof Month) {
$month = $month->value;
|
mutation tests (8.3, ubuntu-latest):
src/Psl/DateTime/DateTime.php#L169
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
*
* @psalm-suppress ImpureMethodCall
*/
- public static function fromParts(Timezone $timezone, int $year, Month|int $month, int $day, int $hours = 0, int $minutes = 0, int $seconds = 0, int $nanoseconds = 0) : self
+ public static function fromParts(Timezone $timezone, int $year, Month|int $month, int $day, int $hours = 0, int $minutes = 1, int $seconds = 0, int $nanoseconds = 0) : self
{
if ($month instanceof Month) {
$month = $month->value;
|
mutation tests (8.3, ubuntu-latest):
src/Psl/DateTime/DateTime.php#L169
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
*
* @psalm-suppress ImpureMethodCall
*/
- public static function fromParts(Timezone $timezone, int $year, Month|int $month, int $day, int $hours = 0, int $minutes = 0, int $seconds = 0, int $nanoseconds = 0) : self
+ public static function fromParts(Timezone $timezone, int $year, Month|int $month, int $day, int $hours = 0, int $minutes = 0, int $seconds = 1, int $nanoseconds = 0) : self
{
if ($month instanceof Month) {
$month = $month->value;
|
mutation tests (8.3, ubuntu-latest):
src/Psl/DateTime/DateTime.php#L169
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
*
* @psalm-suppress ImpureMethodCall
*/
- public static function fromParts(Timezone $timezone, int $year, Month|int $month, int $day, int $hours = 0, int $minutes = 0, int $seconds = 0, int $nanoseconds = 0) : self
+ public static function fromParts(Timezone $timezone, int $year, Month|int $month, int $day, int $hours = 0, int $minutes = 0, int $seconds = 0, int $nanoseconds = 1) : self
{
if ($month instanceof Month) {
$month = $month->value;
|
mutation tests (8.3, ubuntu-latest):
src/Psl/DateTime/DateTime.php#L307
Escaped Mutant for Mutator "AssignCoalesce":
--- Original
+++ New
@@ @@
*/
public static function parse(string $raw_string, null|FormatPattern|string $pattern = null, ?Timezone $timezone = null, null|Locale $locale = null) : static
{
- $timezone ??= Timezone::default();
+ $timezone = Timezone::default();
return self::fromTimestamp(Timestamp::parse($raw_string, $pattern, $timezone, $locale), $timezone);
}
/**
|
mutation tests (8.3, ubuntu-latest):
src/Psl/DateTime/DateTime.php#L498
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
*
* @psalm-mutation-free
*/
- public function withTime(int $hours, int $minutes, int $seconds = 0, int $nanoseconds = 0) : static
+ public function withTime(int $hours, int $minutes, int $seconds = 1, int $nanoseconds = 0) : static
{
return static::fromParts($this->getTimezone(), $this->getYear(), $this->getMonth(), $this->getDay(), $hours, $minutes, $seconds, $nanoseconds);
}
|
mutation tests (8.3, ubuntu-latest):
src/Psl/DateTime/DateTime.php#L498
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
*
* @psalm-mutation-free
*/
- public function withTime(int $hours, int $minutes, int $seconds = 0, int $nanoseconds = 0) : static
+ public function withTime(int $hours, int $minutes, int $seconds = 0, int $nanoseconds = 1) : static
{
return static::fromParts($this->getTimezone(), $this->getYear(), $this->getMonth(), $this->getDay(), $hours, $minutes, $seconds, $nanoseconds);
}
|
mutation tests (8.3, ubuntu-latest):
src/Psl/DateTime/DateTimeConvenienceMethodsTrait.php#L184
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
*/
public function getDate() : array
{
- return [$this->getYear(), $this->getMonth(), $this->getDay()];
+ return [$this->getMonth(), $this->getDay()];
}
/**
* Returns the time (hours, minutes, seconds, nanoseconds).
|