build: update phpstan/phpstan requirement from 2.2.7 to 2.2.9 - #13
Merged
Merged
Annotations
10 warnings
|
Mutation testing:
src/Page.php#L82
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
throw MalformedPageException::invalidEnvelope(
'items must be a list (sequential integer keys starting at 0)',
$endCursor,
- array_slice(array_keys($items), 0, 10),
+ array_slice(array_keys($items), -1, 10),
);
}
|
|
Mutation testing:
src/Page.php#L82
Escaped Mutant for Mutator "UnwrapArrayKeys":
@@ @@
throw MalformedPageException::invalidEnvelope(
'items must be a list (sequential integer keys starting at 0)',
$endCursor,
- array_slice(array_keys($items), 0, 10),
+ array_slice($items, 0, 10),
);
}
|
|
Mutation testing:
src/Offset/PositionalFetcher.php#L63
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
throw MalformedPageException::invalidEnvelope(
\sprintf(
'positional cursors are plain non-negative integers, got "%s". A synthetic edge '
- . 'cursor must be run through CursorCodec::decode() first — pass its page cursor, '
- . 'not the encoded string.',
+ . 'cursor must be run through CursorCodec::decode() first — pass its page cursor, ',
$cursor,
),
$cursor,
|
|
Mutation testing:
src/Offset/PositionalFetcher.php#L63
Escaped Mutant for Mutator "Concat":
@@ @@
if (preg_match('/\A\d+\z/', $cursor) !== 1) {
throw MalformedPageException::invalidEnvelope(
\sprintf(
- 'positional cursors are plain non-negative integers, got "%s". A synthetic edge '
- . 'cursor must be run through CursorCodec::decode() first — pass its page cursor, '
- . 'not the encoded string.',
+ 'positional cursors are plain non-negative integers, got "%s". A synthetic edge ' . 'not the encoded string.' . 'cursor must be run through CursorCodec::decode() first — pass its page cursor, ',
$cursor,
),
$cursor,
|
|
Mutation testing:
src/Offset/PositionalFetcher.php#L63
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
if (preg_match('/\A\d+\z/', $cursor) !== 1) {
throw MalformedPageException::invalidEnvelope(
\sprintf(
- 'positional cursors are plain non-negative integers, got "%s". A synthetic edge '
- . 'cursor must be run through CursorCodec::decode() first — pass its page cursor, '
+ 'cursor must be run through CursorCodec::decode() first — pass its page cursor, '
. 'not the encoded string.',
$cursor,
),
|
|
Mutation testing:
src/Offset/PositionalFetcher.php#L63
Escaped Mutant for Mutator "Concat":
@@ @@
if (preg_match('/\A\d+\z/', $cursor) !== 1) {
throw MalformedPageException::invalidEnvelope(
\sprintf(
- 'positional cursors are plain non-negative integers, got "%s". A synthetic edge '
- . 'cursor must be run through CursorCodec::decode() first — pass its page cursor, '
+ 'cursor must be run through CursorCodec::decode() first — pass its page cursor, ' . 'positional cursors are plain non-negative integers, got "%s". A synthetic edge '
. 'not the encoded string.',
$cursor,
),
|
|
Mutation testing:
src/Exception/PageBudgetExceededException.php#L47
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
{
return new self(
\sprintf(
- 'Page budget of %d exceeded while the upstream still reports more data. '
- . 'Resume from the last cursor, or raise/disable the budget (maxPages: null).',
+ 'Page budget of %d exceeded while the upstream still reports more data. ',
$maxPages,
),
$maxPages,
|
|
Mutation testing:
src/Exception/PageBudgetExceededException.php#L47
Escaped Mutant for Mutator "Concat":
@@ @@
{
return new self(
\sprintf(
- 'Page budget of %d exceeded while the upstream still reports more data. '
- . 'Resume from the last cursor, or raise/disable the budget (maxPages: null).',
+ 'Resume from the last cursor, or raise/disable the budget (maxPages: null).' . 'Page budget of %d exceeded while the upstream still reports more data. ',
$maxPages,
),
$maxPages,
|
|
Mutation testing:
src/CursorCodec.php#L102
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
// Gate 2: valid JSON.
try {
/** @var mixed $data */
- $data = json_decode($json, true, 8, \JSON_THROW_ON_ERROR);
+ $data = json_decode($json, true, 9, \JSON_THROW_ON_ERROR);
} catch (\JsonException) {
return [$after, 0];
}
|
|
Mutation testing:
src/CursorCodec.php#L102
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
// Gate 2: valid JSON.
try {
/** @var mixed $data */
- $data = json_decode($json, true, 8, \JSON_THROW_ON_ERROR);
+ $data = json_decode($json, true, 7, \JSON_THROW_ON_ERROR);
} catch (\JsonException) {
return [$after, 0];
}
|
background
wait
wait-all
cancel
parallel
Loading