deps(CI): Update CI #733
Annotations
10 warnings and 1 notice
|
Run ./vendor/bin/infection --coverage=coverage --skip-initial-tests:
be/src/PostsQuery/CursorCodec.php#L87
Escaped Mutant for Mutator "CastArray":
@@ @@
}
return $cursor === '0' ? 0 : match ($prefix) { // keep 0 as is
'S' => $cursor, // string literal is not base64 encoded
- default => ((array) (
- unpack(
- format: 'P',
- string: str_pad( // re-add removed trailing 0x00 or 0xFF
- base64_decode(
- // https://en.wikipedia.org/wiki/Base64#URL_applications
- str_replace(['-', '_'], ['+', '/'], $cursor),
- ),
- length: 8,
- pad_string: $prefix === '-' ? "\xFF" : "\x00",
+ default => (unpack(
+ format: 'P',
+ string: str_pad( // re-add removed trailing 0x00 or 0xFF
+ base64_decode(
+ // https://en.wikipedia.org/wiki/Base64#URL_applications
+ str_replace(['-', '_'], ['+', '/'], $cursor),
),
- )
+ length: 8,
+ pad_string: $prefix === '-' ? "\xFF" : "\x00",
+ ),
))[1], // the returned array of unpack() will starts index from 1
};
})
|
|
Run ./vendor/bin/infection --coverage=coverage --skip-initial-tests:
be/src/PostsQuery/CursorCodec.php#L80
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
* @var string $cursor
* @var string $prefix
*/
- [$prefix, $cursor] = array_pad(explode(':', $encodedCursor), 2, null);
+ [$prefix, $cursor] = array_pad(explode(':', $encodedCursor), 3, null);
if ($cursor === null) { // no prefix being provided means the value of cursor is a positive int
$cursor = $prefix;
$prefix = '';
|
|
Run ./vendor/bin/infection --coverage=coverage --skip-initial-tests:
be/src/PostsQuery/CursorCodec.php#L49
Escaped Mutant for Mutator "Throw_":
@@ @@
: ($prefix === 'S'
// keep string as is since encoded string will always longer than the original string
? $cursor
- : throw new \RuntimeException('Invalid cursor value'));
+ : new \RuntimeException('Invalid cursor value'));
if ($prefix !== 'S') {
// https://en.wikipedia.org/wiki/Base64#URL_applications
$value = str_replace(['+', '/', '='], ['-', '_', ''], base64_encode($value));
|
|
Run ./vendor/bin/infection --coverage=coverage --skip-initial-tests:
be/src/PostsQuery/CursorCodec.php#L45
Escaped Mutant for Mutator "GreaterThanOrEqualTo":
@@ @@
$value = \is_int($cursor)
// remove trailing 0x00 for an unsigned int or 0xFF for a signed negative int
- ? rtrim(pack('P', $cursor), $cursor >= 0 ? "\x00" : "\xFF")
+ ? rtrim(pack('P', $cursor), $cursor > 0 ? "\x00" : "\xFF")
: ($prefix === 'S'
// keep string as is since encoded string will always longer than the original string
? $cursor
|
|
Run ./vendor/bin/infection --coverage=coverage --skip-initial-tests:
be/src/PostsQuery/CursorCodec.php#L38
Escaped Mutant for Mutator "LessThan":
@@ @@
return '0';
}
$prefix = match (true) {
- \is_int($cursor) && $cursor < 0 => '-',
+ \is_int($cursor) && $cursor <= 0 => '-',
\is_string($cursor) => 'S',
default => '',
};
|
|
Run ./vendor/bin/infection --coverage=coverage --skip-initial-tests:
be/src/EventListener/ShowReactJsonView.php#L22
Escaped Mutant for Mutator "MBString":
@@ @@
return;
}
$json = $response->getContent();
- $jsonLength = mb_strlen($json);
+ $jsonLength = strlen($json);
$reactJsonViewArtifact = $request->getBaseUrl() . '/react-json-view/dist/index.js';
$event->setResponse(new Response(<<<HTML
<html lang="en">
|
|
Run ./vendor/bin/infection --coverage=coverage --skip-initial-tests:
be/src/EventListener/ExceptionToJsonResponse.php#L26
Escaped Mutant for Mutator "CastInt":
@@ @@
&& collect(Utils::ERROR_STATUS_CODE_INFO)
->flatMap(static fn(array $codes) => array_keys($codes))
->contains($errorCode)) {
- $event->setResponse(JsonResponse::fromJsonString($exception->getMessage(), (int) ($errorCode / 100)));
+ $event->setResponse(JsonResponse::fromJsonString($exception->getMessage(), $errorCode / 100));
} elseif ($exception instanceof ValidationFailedException) {
$event->setResponse(JsonResponse::fromJsonString(
// https://github.com/symfony/serializer/blob/7.1/Normalizer/ConstraintViolationListNormalizer.php
|
|
Run ./vendor/bin/infection --coverage=coverage --skip-initial-tests:
be/src/EventListener/ExceptionToJsonResponse.php#L22
Escaped Mutant for Mutator "LogicalAnd":
@@ @@
{
$exception = $event->getThrowable();
$errorCode = $exception->getCode();
- if ($exception instanceof HttpException
- && collect(Utils::ERROR_STATUS_CODE_INFO)
- ->flatMap(static fn(array $codes) => array_keys($codes))
- ->contains($errorCode)) {
+ if ($exception instanceof HttpException || collect(Utils::ERROR_STATUS_CODE_INFO)
+ ->flatMap(static fn(array $codes) => array_keys($codes))
+ ->contains($errorCode)) {
$event->setResponse(JsonResponse::fromJsonString($exception->getMessage(), (int) ($errorCode / 100)));
} elseif ($exception instanceof ValidationFailedException) {
$event->setResponse(JsonResponse::fromJsonString(
|
|
Run ./vendor/bin/infection --coverage=coverage --skip-initial-tests:
be/src/Entity/BlobResourceGetter.php#L42
Escaped Mutant for Mutator "FunctionCallRemoval":
@@ @@
if ($value === null) {
return null;
}
- rewind($value);
+
return stream_get_contents($value);
}
}
|
|
Run ./vendor/bin/infection --coverage=coverage --skip-initial-tests:
be/src/Entity/BlobResourceGetter.php#L25
Escaped Mutant for Mutator "PublicVisibility":
@@ @@
* @param class-string<T> $protoBufClass
* @template T of Message
*/
- public static function protoBuf($value, string $protoBufClass): ?array
+ protected static function protoBuf($value, string $protoBufClass): ?array
{
if ($value === null) {
return null;
|
|
The macos-latest label will migrate to macOS 26 beginning June 15, 2026. For more information see https://github.com/actions/runner-images/issues/14167
|
background
wait
wait-all
cancel
parallel
Loading