Skip to content

fix(deps): update dependency php to ~8.1.0 || ~8.2.0 || ~8.3.0 #566

fix(deps): update dependency php to ~8.1.0 || ~8.2.0 || ~8.3.0

fix(deps): update dependency php to ~8.1.0 || ~8.2.0 || ~8.3.0 #566

Triggered via push December 14, 2023 20:36
Status Success
Total duration 1m 44s
Artifacts

main.yml

on: push
Matrix: CI
Fit to window
Zoom out
Zoom in

Annotations

7 warnings
CI (8.2): src/Parser/MarkdownParser.php#L45
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ { $sampleCode = []; $chunks = preg_split(self::PATTERN, $file->getContents(), -1, PREG_SPLIT_DELIM_CAPTURE); - $startPosition = 0; + $startPosition = -1; $endPosition = 0; foreach ($chunks as $documentChunk) { $lines = explode("\n", $documentChunk);
CI (8.2): src/Parser/MarkdownParser.php#L52
Escaped Mutant for Mutator "PregMatchRemoveCaret": --- Original +++ New @@ @@ foreach ($chunks as $documentChunk) { $lines = explode("\n", $documentChunk); $endPosition += count($lines); - preg_match('/^```/', $lines[0] ?? '', $matches); + preg_match('/```/', $lines[0] ?? '', $matches); if ($matches === []) { $startPosition = $endPosition; continue;
CI (8.2): src/Validator/PhpValidator.php#L24
Escaped Mutant for Mutator "Coalesce": --- Original +++ New @@ @@ private PhpParser $phpParser; public function __construct(PhpParser|null $phpParser = null) { - $this->phpParser = $phpParser ?? (new ParserFactory())->create(ParserFactory::PREFER_PHP7); + $this->phpParser = (new ParserFactory())->create(ParserFactory::PREFER_PHP7) ?? $phpParser; } public function supports(SampleCode $sampleCode) : bool {
CI (8.2): src/Validator/PhpValidator.php#L64
Escaped Mutant for Mutator "PregMatchRemoveFlags": --- Original +++ New @@ @@ } private function ensureCodePrefix(string $code) : string { - if (!preg_match('/<\\?(=|php)/i', $code)) { + if (!preg_match('/<\\?(=|php)/', $code)) { return '<?php ' . PHP_EOL . $code; } return $code; } }
CI (8.2): src/Validator/PhpValidator.php#L65
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ private function ensureCodePrefix(string $code) : string { if (!preg_match('/<\\?(=|php)/i', $code)) { - return '<?php ' . PHP_EOL . $code; + return PHP_EOL . '<?php ' . $code; } return $code; } }
CI (8.2): src/Validator/PhpValidator.php#L65
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ private function ensureCodePrefix(string $code) : string { if (!preg_match('/<\\?(=|php)/i', $code)) { - return '<?php ' . PHP_EOL . $code; + return '<?php ' . $code; } return $code; } }
CI (8.2): src/Validator/PhpValidator.php#L65
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ private function ensureCodePrefix(string $code) : string { if (!preg_match('/<\\?(=|php)/i', $code)) { - return '<?php ' . PHP_EOL . $code; + return '<?php ' . $code . PHP_EOL; } return $code; } }