Introduce URL type #12
Annotations
9 warnings
Code Quality (PHP8.0)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Code Quality (PHP8.0):
src/String/Url.php#L18
Escaped Mutant for Mutator "UnwrapTrim":
--- Original
+++ New
@@ @@
private string $value;
public function __construct(string $value)
{
- $value = trim($value);
+ $value = $value;
/** @var string|null $value */
$value = filter_var($value, FILTER_SANITIZE_URL, FILTER_NULL_ON_FAILURE);
if (!is_string($value) || !filter_var($value, FILTER_VALIDATE_URL)) {
|
Code Quality (PHP8.2)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Code Quality (PHP8.2):
src/String/Url.php#L18
Escaped Mutant for Mutator "UnwrapTrim":
--- Original
+++ New
@@ @@
private string $value;
public function __construct(string $value)
{
- $value = trim($value);
+ $value = $value;
/** @var string|null $value */
$value = filter_var($value, FILTER_SANITIZE_URL, FILTER_NULL_ON_FAILURE);
if (!is_string($value) || !filter_var($value, FILTER_VALIDATE_URL)) {
|
Code Quality (PHP8.1)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Code Quality (PHP8.1):
src/String/Url.php#L18
Escaped Mutant for Mutator "UnwrapTrim":
--- Original
+++ New
@@ @@
private string $value;
public function __construct(string $value)
{
- $value = trim($value);
+ $value = $value;
/** @var string|null $value */
$value = filter_var($value, FILTER_SANITIZE_URL, FILTER_NULL_ON_FAILURE);
if (!is_string($value) || !filter_var($value, FILTER_VALIDATE_URL)) {
|
Code Quality (PHP8.3)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Code Quality (PHP8.3):
src/String/Url.php#L18
Escaped Mutant for Mutator "UnwrapTrim":
--- Original
+++ New
@@ @@
private string $value;
public function __construct(string $value)
{
- $value = trim($value);
+ $value = $value;
/** @var string|null $value */
$value = filter_var($value, FILTER_SANITIZE_URL, FILTER_NULL_ON_FAILURE);
if (!is_string($value) || !filter_var($value, FILTER_VALIDATE_URL)) {
|
Code Quality (PHP7.4)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|