deps(c#): Update c# to v10 #732
Annotations
48 errors, 62 warnings, and 7 notices
|
runs-on (ubuntu-latest) / phpcs:
src/Entity/Post/Reply.php#L20
Reply.php: PSR2.Classes.PropertyDeclaration.Multiple: There must not be more than one property declared per statement
|
|
runs-on (ubuntu-latest) / phpcs:
src/Entity/Post/Reply.php#L17
Reply.php: PSR2.Classes.PropertyDeclaration.ScopeMissing: Visibility must be declared on property "$this"
|
|
runs-on (ubuntu-latest) / phpcs:
src/Entity/Post/Reply.php#L17
Reply.php: PSR2.Classes.PropertyDeclaration.Multiple: There must not be more than one property declared per statement
|
|
runs-on (ubuntu-latest) / phpcs:
src/Entity/Post/Post.php#L17
Post.php: PSR2.Classes.PropertyDeclaration.ScopeMissing: Visibility must be declared on property "$this"
|
|
runs-on (ubuntu-latest) / phpcs:
src/Entity/Post/Post.php#L17
Post.php: PSR2.Classes.PropertyDeclaration.Multiple: There must not be more than one property declared per statement
|
|
runs-on (ubuntu-latest) / phpcs:
src/Entity/Post/Post.php#L16
Post.php: PSR2.Classes.PropertyDeclaration.ScopeMissing: Visibility must be declared on property "$this"
|
|
runs-on (ubuntu-latest) / phpcs:
src/Entity/Post/Post.php#L16
Post.php: PSR2.Classes.PropertyDeclaration.Multiple: There must not be more than one property declared per statement
|
|
runs-on (ubuntu-latest) / phpcs:
src/Entity/Post/Content/PostContent.php#L15
PostContent.php: PSR2.Classes.PropertyDeclaration.ScopeMissing: Visibility must be declared on property "$this"
|
|
runs-on (ubuntu-latest) / phpcs:
src/Entity/Post/Content/PostContent.php#L15
PostContent.php: PSR2.Classes.PropertyDeclaration.SpacingAfterType: There must be 1 space after the property type declaration; 0 found
|
|
runs-on (ubuntu-latest) / phpcs:
src/Entity/Post/Content/PostContent.php#L14
PostContent.php: PSR2.Classes.PropertyDeclaration.Multiple: There must not be more than one property declared per statement
|
|
runs-on (ubuntu-latest) / phpcs
Process completed with exit code 2.
|
|
runs-on (ubuntu-latest) / phan
Process completed with exit code 1.
|
|
runs-on (ubuntu-latest) / phpstan
Process completed with exit code 1.
|
|
runs-on (windows-latest) / phpcs:
be/src/Entity/Post/Post.php#L16
Post.php: PSR2.Classes.PropertyDeclaration.Multiple: There must not be more than one property declared per statement
|
|
runs-on (windows-latest) / phpcs:
be/src/Entity/Post/Content/PostContent.php#L15
PostContent.php: PSR2.Classes.PropertyDeclaration.ScopeMissing: Visibility must be declared on property "$this"
|
|
runs-on (windows-latest) / phpcs:
be/src/Entity/Post/Content/PostContent.php#L15
PostContent.php: PSR2.Classes.PropertyDeclaration.SpacingAfterType: There must be 1 space after the property type declaration; 0 found
|
|
runs-on (windows-latest) / phpcs:
be/src/Entity/Post/Content/PostContent.php#L14
PostContent.php: PSR2.Classes.PropertyDeclaration.Multiple: There must not be more than one property declared per statement
|
|
runs-on (windows-latest) / phpcs:
be/src/Entity/LatestReplier.php#L17
LatestReplier.php: PSR2.Classes.PropertyDeclaration.ScopeMissing: Visibility must be declared on property "$this"
|
|
runs-on (windows-latest) / phpcs:
be/src/Entity/LatestReplier.php#L17
LatestReplier.php: PSR2.Classes.PropertyDeclaration.SpacingAfterType: There must be 1 space after the property type declaration; 0 found
|
|
runs-on (windows-latest) / phpcs:
be/src/Entity/LatestReplier.php#L16
LatestReplier.php: PSR2.Classes.PropertyDeclaration.Multiple: There must not be more than one property declared per statement
|
|
runs-on (windows-latest) / phpcs:
be/src/DTO/Post/SortablePost.php#L8
SortablePost.php: Generic.Formatting.DisallowMultipleStatements.SameLine: Each PHP statement must be on a line by itself
|
|
runs-on (windows-latest) / phpcs:
be/src/DTO/Post/SortablePost.php#L7
SortablePost.php: Generic.Formatting.DisallowMultipleStatements.SameLine: Each PHP statement must be on a line by itself
|
|
runs-on (windows-latest) / phpcs:
be/config/reference.php#L1240
reference.php: PSR1.Classes.ClassDeclaration.MultipleClasses: Each class must be in a file by itself
|
|
runs-on (windows-latest) / phpcs
Process completed with exit code 1.
|
|
runs-on (macos-latest) / php-cs-fixer
Process completed with exit code 8.
|
|
runs-on (macos-latest) / phpstan
Process completed with exit code 1.
|
|
runs-on (ubuntu-latest) / php-cs-fixer
Process completed with exit code 8.
|
|
runs-on (ubuntu-latest) / phpmd
Process completed with exit code 3.
|
|
runs-on (windows-latest) / phpstan
Process completed with exit code 1.
|
|
runs-on (ubuntu-latest) / psalm
Process completed with exit code 1.
|
|
runs-on (windows-latest) / psalm
Process completed with exit code 1.
|
|
runs-on (windows-latest) / phpmd
Process completed with exit code 3.
|
|
runs-on (windows-latest) / php-cs-fixer
Process completed with exit code 8.
|
|
runs-on (macos-latest) / phan
Process completed with exit code 1.
|
|
runs-on (windows-latest) / phan
Process completed with exit code 1.
|
|
runs-on (macos-latest) / phpcs:
src/Entity/Post/Content/PostContent.php#L15
PostContent.php: PSR2.Classes.PropertyDeclaration.ScopeMissing: Visibility must be declared on property "$this"
|
|
runs-on (macos-latest) / phpcs:
src/Entity/Post/Content/PostContent.php#L15
PostContent.php: PSR2.Classes.PropertyDeclaration.SpacingAfterType: There must be 1 space after the property type declaration; 0 found
|
|
runs-on (macos-latest) / phpcs:
src/Entity/Post/Content/PostContent.php#L14
PostContent.php: PSR2.Classes.PropertyDeclaration.Multiple: There must not be more than one property declared per statement
|
|
runs-on (macos-latest) / phpcs:
src/Entity/Post/Post.php#L17
Post.php: PSR2.Classes.PropertyDeclaration.ScopeMissing: Visibility must be declared on property "$this"
|
|
runs-on (macos-latest) / phpcs:
src/Entity/Post/Post.php#L17
Post.php: PSR2.Classes.PropertyDeclaration.Multiple: There must not be more than one property declared per statement
|
|
runs-on (macos-latest) / phpcs:
src/Entity/Post/Post.php#L16
Post.php: PSR2.Classes.PropertyDeclaration.ScopeMissing: Visibility must be declared on property "$this"
|
|
runs-on (macos-latest) / phpcs:
src/Entity/Post/Post.php#L16
Post.php: PSR2.Classes.PropertyDeclaration.Multiple: There must not be more than one property declared per statement
|
|
runs-on (macos-latest) / phpcs:
src/DTO/Post/SortablePost.php#L8
SortablePost.php: Generic.Formatting.DisallowMultipleStatements.SameLine: Each PHP statement must be on a line by itself
|
|
runs-on (macos-latest) / phpcs:
src/DTO/Post/SortablePost.php#L7
SortablePost.php: Generic.Formatting.DisallowMultipleStatements.SameLine: Each PHP statement must be on a line by itself
|
|
runs-on (macos-latest) / phpcs:
config/reference.php#L1240
reference.php: PSR1.Classes.ClassDeclaration.MultipleClasses: Each class must be in a file by itself
|
|
runs-on (macos-latest) / phpcs
Process completed with exit code 2.
|
|
runs-on (macos-latest) / phpmd
Process completed with exit code 3.
|
|
runs-on (macos-latest) / psalm
Process completed with exit code 1.
|
|
runs-on (ubuntu-latest) / phpcs:
src/PostsQuery/QueryResult.php#L225
QueryResult.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 139 characters
|
|
runs-on (ubuntu-latest) / phpcs:
src/PostsQuery/QueryResult.php#L222
QueryResult.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 158 characters
|
|
runs-on (ubuntu-latest) / phpcs:
src/PostsQuery/QueryResult.php#L177
QueryResult.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 128 characters
|
|
runs-on (ubuntu-latest) / phpcs:
src/PostsQuery/QueryResult.php#L168
QueryResult.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 126 characters
|
|
runs-on (ubuntu-latest) / phpcs:
src/PostsQuery/QueryResult.php#L118
QueryResult.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 142 characters
|
|
runs-on (ubuntu-latest) / phpcs:
src/PostsQuery/QueryResult.php#L55
QueryResult.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 160 characters
|
|
runs-on (ubuntu-latest) / phpcs:
src/Doctrine/ConvertORMQueryBuilderToDBAL.php#L35
ConvertORMQueryBuilderToDBAL.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 130 characters
|
|
runs-on (ubuntu-latest) / phpcs:
src/Doctrine/ConvertORMQueryBuilderToDBAL.php#L18
ConvertORMQueryBuilderToDBAL.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 122 characters
|
|
runs-on (ubuntu-latest) / phpcs:
src/Serializer/ResultSetScalarMappingNameConverter.php#L22
ResultSetScalarMappingNameConverter.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 129 characters
|
|
runs-on (ubuntu-latest) / phpcs:
src/Serializer/ResultSetScalarMappingNameConverter.php#L17
ResultSetScalarMappingNameConverter.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 127 characters
|
|
runs-on (windows-latest) / phpcs:
be/config/reference.php#L187
reference.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 158 characters
|
|
runs-on (windows-latest) / phpcs:
be/config/reference.php#L148
reference.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 134 characters
|
|
runs-on (windows-latest) / phpcs:
be/config/reference.php#L147
reference.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 166 characters
|
|
runs-on (windows-latest) / phpcs:
be/config/reference.php#L137
reference.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 164 characters
|
|
runs-on (windows-latest) / phpcs:
be/config/reference.php#L136
reference.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 205 characters
|
|
runs-on (windows-latest) / phpcs:
be/config/reference.php#L132
reference.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 198 characters
|
|
runs-on (windows-latest) / phpcs:
be/config/reference.php#L130
reference.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 181 characters
|
|
runs-on (windows-latest) / phpcs:
be/config/reference.php#L39
reference.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 157 characters
|
|
runs-on (windows-latest) / phpcs:
be/config/reference.php#L38
reference.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 165 characters
|
|
runs-on (windows-latest) / phpcs:
be/config/reference.php#L36
reference.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 124 characters
|
|
runs-on (ubuntu-latest) / phpunit-infection:
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
};
})
|
|
runs-on (ubuntu-latest) / phpunit-infection:
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 = '';
|
|
runs-on (ubuntu-latest) / phpunit-infection:
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));
|
|
runs-on (ubuntu-latest) / phpunit-infection:
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
|
|
runs-on (ubuntu-latest) / phpunit-infection:
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 => '',
};
|
|
runs-on (ubuntu-latest) / phpunit-infection:
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">
|
|
runs-on (ubuntu-latest) / phpunit-infection:
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
|
|
runs-on (ubuntu-latest) / phpunit-infection:
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(
|
|
runs-on (ubuntu-latest) / phpunit-infection:
be/src/Entity/BlobResourceGetter.php#L42
Escaped Mutant for Mutator "FunctionCallRemoval":
@@ @@
if ($value === null) {
return null;
}
- rewind($value);
+
return stream_get_contents($value);
}
}
|
|
runs-on (ubuntu-latest) / phpunit-infection:
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;
|
|
runs-on (macos-latest) / phpcs:
config/reference.php#L187
reference.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 158 characters
|
|
runs-on (macos-latest) / phpcs:
config/reference.php#L148
reference.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 134 characters
|
|
runs-on (macos-latest) / phpcs:
config/reference.php#L147
reference.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 166 characters
|
|
runs-on (macos-latest) / phpcs:
config/reference.php#L137
reference.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 164 characters
|
|
runs-on (macos-latest) / phpcs:
config/reference.php#L136
reference.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 205 characters
|
|
runs-on (macos-latest) / phpcs:
config/reference.php#L132
reference.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 198 characters
|
|
runs-on (macos-latest) / phpcs:
config/reference.php#L130
reference.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 181 characters
|
|
runs-on (macos-latest) / phpcs:
config/reference.php#L39
reference.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 157 characters
|
|
runs-on (macos-latest) / phpcs:
config/reference.php#L38
reference.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 165 characters
|
|
runs-on (macos-latest) / phpcs:
config/reference.php#L36
reference.php: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 124 characters
|
|
runs-on (macos-latest) / phpunit-infection:
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
};
})
|
|
runs-on (macos-latest) / phpunit-infection:
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 = '';
|
|
runs-on (macos-latest) / phpunit-infection:
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));
|
|
runs-on (macos-latest) / phpunit-infection:
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
|
|
runs-on (macos-latest) / phpunit-infection:
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 => '',
};
|
|
runs-on (macos-latest) / phpunit-infection:
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">
|
|
runs-on (macos-latest) / phpunit-infection:
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
|
|
runs-on (macos-latest) / phpunit-infection:
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(
|
|
runs-on (macos-latest) / phpunit-infection:
be/src/Entity/BlobResourceGetter.php#L42
Escaped Mutant for Mutator "FunctionCallRemoval":
@@ @@
if ($value === null) {
return null;
}
- rewind($value);
+
return stream_get_contents($value);
}
}
|
|
runs-on (macos-latest) / phpunit-infection:
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;
|
|
runs-on (windows-latest) / phpunit-infection:
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
};
})
|
|
runs-on (windows-latest) / phpunit-infection:
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 = '';
|
|
runs-on (windows-latest) / phpunit-infection:
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));
|
|
runs-on (windows-latest) / phpunit-infection:
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
|
|
runs-on (windows-latest) / phpunit-infection:
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 => '',
};
|
|
runs-on (windows-latest) / phpunit-infection:
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">
|
|
runs-on (windows-latest) / phpunit-infection:
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
|
|
runs-on (windows-latest) / phpunit-infection:
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(
|
|
runs-on (windows-latest) / phpunit-infection:
be/src/Entity/BlobResourceGetter.php#L42
Escaped Mutant for Mutator "FunctionCallRemoval":
@@ @@
if ($value === null) {
return null;
}
- rewind($value);
+
return stream_get_contents($value);
}
}
|
|
runs-on (windows-latest) / phpunit-infection:
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;
|
|
runs-on (windows-latest) / phpunit-infection
JIT is incompatible with third party extensions that override zend_execute_ex(). JIT disabled.
|
|
runs-on (windows-latest) / phpunit-infection
JIT is incompatible with third party extensions that override zend_execute_ex(). JIT disabled.
|
|
runs-on (macos-latest) / php-cs-fixer
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
|
|
runs-on (macos-latest) / phpstan
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
|
|
runs-on (macos-latest) / phan
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
|
|
runs-on (macos-latest) / phpcs
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
|
|
runs-on (macos-latest) / phpmd
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
|
|
runs-on (macos-latest) / psalm
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
|
|
runs-on (macos-latest) / phpunit-infection
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
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
coverage-macos-latest
|
6.74 KB |
sha256:c3f9bfcf66d8a29d13d6d4f5bde9a0ac753b76a4e161ea256754ada061f34431
|
|
|
coverage-ubuntu-latest
|
6.74 KB |
sha256:50e26e6e09dd534732d226ef46e1eeffafc050008fd617edc536abae6c723823
|
|
|
coverage-windows-latest
|
6.62 KB |
sha256:ea2e07f5b1d7dd870ae4866d125dbc2d3aaed4fdd26c533c987e93d8a93ef777
|
|