Skip to content

Do not enforce the dependencies for the middlwares, not everyone want… #742

Do not enforce the dependencies for the middlwares, not everyone want…

Do not enforce the dependencies for the middlwares, not everyone want… #742

Triggered via push February 4, 2024 20:07
Status Success
Total duration 1m 14s
Artifacts

ci.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

9 warnings
PHP 8.2: src/AcceptNegotiator.php#L36
Escaped Mutant for Mutator "PregMatchRemoveDollar": --- Original +++ New @@ @@ foreach ($supportedMediaTypes as $index => $supportedMediaType) { $this->supportedMediaTypes[$index] = $supportedMediaType; $supportedMediaTypeParts = []; - if (1 !== preg_match('#^([^/+]+)/([^/+]+)\\+([^/+]+)$#', $supportedMediaType, $supportedMediaTypeParts)) { + if (1 !== preg_match('#^([^/+]+)/([^/+]+)\\+([^/+]+)#', $supportedMediaType, $supportedMediaTypeParts)) { continue; } $this->suffixBasedSupportedMediaTypes[$index] = $supportedMediaTypeParts[1] . '/' . $supportedMediaTypeParts[3];
PHP 8.2: src/AcceptNegotiator.php#L145
Escaped Mutant for Mutator "PregMatchRemoveDollar": --- Original +++ New @@ @@ private function compareMediaTypeWithTypeOnly(string $mediaType, array $attributes) : ?NegotiatedValueInterface { $mediaTypeParts = []; - if (1 !== preg_match('#^([^/+]+)/\\*$#', $mediaType, $mediaTypeParts)) { + if (1 !== preg_match('#^([^/+]+)/\\*#', $mediaType, $mediaTypeParts)) { return null; } foreach ($this->supportedMediaTypes as $supportedMediaType) {
PHP 8.2: src/ContentTypeNegotiator.php#L71
Escaped Mutant for Mutator "PregMatchRemoveDollar": --- Original +++ New @@ @@ private function compareMediaTypeWithSuffix(string $mediaType, array $attributes) : ?NegotiatedValueInterface { $mediaTypeParts = []; - if (1 !== preg_match('#^([^/]+)/([^+]+)\\+(.+)$#', $mediaType, $mediaTypeParts)) { + if (1 !== preg_match('#^([^/]+)/([^+]+)\\+(.+)#', $mediaType, $mediaTypeParts)) { return null; } $mediaType = $mediaTypeParts[1] . '/' . $mediaTypeParts[3];
PHP 8.1: src/AcceptNegotiator.php#L36
Escaped Mutant for Mutator "PregMatchRemoveDollar": --- Original +++ New @@ @@ foreach ($supportedMediaTypes as $index => $supportedMediaType) { $this->supportedMediaTypes[$index] = $supportedMediaType; $supportedMediaTypeParts = []; - if (1 !== preg_match('#^([^/+]+)/([^/+]+)\\+([^/+]+)$#', $supportedMediaType, $supportedMediaTypeParts)) { + if (1 !== preg_match('#^([^/+]+)/([^/+]+)\\+([^/+]+)#', $supportedMediaType, $supportedMediaTypeParts)) { continue; } $this->suffixBasedSupportedMediaTypes[$index] = $supportedMediaTypeParts[1] . '/' . $supportedMediaTypeParts[3];
PHP 8.1: src/AcceptNegotiator.php#L145
Escaped Mutant for Mutator "PregMatchRemoveDollar": --- Original +++ New @@ @@ private function compareMediaTypeWithTypeOnly(string $mediaType, array $attributes) : ?NegotiatedValueInterface { $mediaTypeParts = []; - if (1 !== preg_match('#^([^/+]+)/\\*$#', $mediaType, $mediaTypeParts)) { + if (1 !== preg_match('#^([^/+]+)/\\*#', $mediaType, $mediaTypeParts)) { return null; } foreach ($this->supportedMediaTypes as $supportedMediaType) {
PHP 8.1: src/ContentTypeNegotiator.php#L71
Escaped Mutant for Mutator "PregMatchRemoveDollar": --- Original +++ New @@ @@ private function compareMediaTypeWithSuffix(string $mediaType, array $attributes) : ?NegotiatedValueInterface { $mediaTypeParts = []; - if (1 !== preg_match('#^([^/]+)/([^+]+)\\+(.+)$#', $mediaType, $mediaTypeParts)) { + if (1 !== preg_match('#^([^/]+)/([^+]+)\\+(.+)#', $mediaType, $mediaTypeParts)) { return null; } $mediaType = $mediaTypeParts[1] . '/' . $mediaTypeParts[3];
PHP 8.3: src/AcceptNegotiator.php#L36
Escaped Mutant for Mutator "PregMatchRemoveDollar": --- Original +++ New @@ @@ foreach ($supportedMediaTypes as $index => $supportedMediaType) { $this->supportedMediaTypes[$index] = $supportedMediaType; $supportedMediaTypeParts = []; - if (1 !== preg_match('#^([^/+]+)/([^/+]+)\\+([^/+]+)$#', $supportedMediaType, $supportedMediaTypeParts)) { + if (1 !== preg_match('#^([^/+]+)/([^/+]+)\\+([^/+]+)#', $supportedMediaType, $supportedMediaTypeParts)) { continue; } $this->suffixBasedSupportedMediaTypes[$index] = $supportedMediaTypeParts[1] . '/' . $supportedMediaTypeParts[3];
PHP 8.3: src/AcceptNegotiator.php#L145
Escaped Mutant for Mutator "PregMatchRemoveDollar": --- Original +++ New @@ @@ private function compareMediaTypeWithTypeOnly(string $mediaType, array $attributes) : ?NegotiatedValueInterface { $mediaTypeParts = []; - if (1 !== preg_match('#^([^/+]+)/\\*$#', $mediaType, $mediaTypeParts)) { + if (1 !== preg_match('#^([^/+]+)/\\*#', $mediaType, $mediaTypeParts)) { return null; } foreach ($this->supportedMediaTypes as $supportedMediaType) {
PHP 8.3: src/ContentTypeNegotiator.php#L71
Escaped Mutant for Mutator "PregMatchRemoveDollar": --- Original +++ New @@ @@ private function compareMediaTypeWithSuffix(string $mediaType, array $attributes) : ?NegotiatedValueInterface { $mediaTypeParts = []; - if (1 !== preg_match('#^([^/]+)/([^+]+)\\+(.+)$#', $mediaType, $mediaTypeParts)) { + if (1 !== preg_match('#^([^/]+)/([^+]+)\\+(.+)#', $mediaType, $mediaTypeParts)) { return null; } $mediaType = $mediaTypeParts[1] . '/' . $mediaTypeParts[3];