Skip to content

Bump vimeo/psalm from 5.17.0 to 5.21.0 #573

Bump vimeo/psalm from 5.17.0 to 5.21.0

Bump vimeo/psalm from 5.17.0 to 5.21.0 #573

Triggered via pull request January 31, 2024 18:54
Status Success
Total duration 29s
Artifacts

tests.yml

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

Annotations

14 warnings
CI (8.2)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
CI (8.2): src/Command/SculpinContentfulCommand.php#L40
Escaped Mutant for Mutator "UnwrapStrToLower": --- Original +++ New @@ @@ $entries = $this->contetful->getEntries()->getItems(); foreach ($entries as $entry) { $filesystem = new Filesystem(); - $contentType = strtolower($entry->getSystemProperties()->getContentType()->getName()); + $contentType = $entry->getSystemProperties()->getContentType()->getName(); $filePath = $this->createPath($contentType, $entry['date'], $entry['title']); $filesystem->dumpFile($filePath, $this->createContent($entry['language'], $entry['date'], $entry['title'], $entry['contentMarkdown'])); $output->writeln("Created file: " . $filePath);
CI (8.2): src/Command/SculpinContentfulCommand.php#L43
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $filesystem = new Filesystem(); $contentType = strtolower($entry->getSystemProperties()->getContentType()->getName()); $filePath = $this->createPath($contentType, $entry['date'], $entry['title']); - $filesystem->dumpFile($filePath, $this->createContent($entry['language'], $entry['date'], $entry['title'], $entry['contentMarkdown'])); + $output->writeln("Created file: " . $filePath); } return self::SUCCESS;
CI (8.2): src/Command/SculpinContentfulCommand.php#L74
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ } private function normalizeTitle($title) : string { - $currentLocale = setlocale(LC_ALL, 0); + $currentLocale = setlocale(LC_ALL, -1); setlocale(LC_ALL, 'en_US.utf8'); $cleanTitle = strtolower($title); $cleanTitle = iconv('UTF-8', 'ASCII//IGNORE', $cleanTitle);
CI (8.2): src/Command/SculpinContentfulCommand.php#L74
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ } private function normalizeTitle($title) : string { - $currentLocale = setlocale(LC_ALL, 0); + $currentLocale = setlocale(LC_ALL, 1); setlocale(LC_ALL, 'en_US.utf8'); $cleanTitle = strtolower($title); $cleanTitle = iconv('UTF-8', 'ASCII//IGNORE', $cleanTitle);
CI (8.2): src/Command/SculpinContentfulCommand.php#L75
Escaped Mutant for Mutator "FunctionCallRemoval": --- Original +++ New @@ @@ private function normalizeTitle($title) : string { $currentLocale = setlocale(LC_ALL, 0); - setlocale(LC_ALL, 'en_US.utf8'); + $cleanTitle = strtolower($title); $cleanTitle = iconv('UTF-8', 'ASCII//IGNORE', $cleanTitle); $cleanTitle = preg_replace("/[^a-z0-9]+/", "-", $cleanTitle);
CI (8.2): src/Command/SculpinContentfulCommand.php#L81
Escaped Mutant for Mutator "FunctionCallRemoval": --- Original +++ New @@ @@ $cleanTitle = strtolower($title); $cleanTitle = iconv('UTF-8', 'ASCII//IGNORE', $cleanTitle); $cleanTitle = preg_replace("/[^a-z0-9]+/", "-", $cleanTitle); - setlocale(LC_ALL, $currentLocale); + return $cleanTitle; } public function setContentfulClient(Client\ClientInterface $client) : self
CI (8.1)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
CI (8.1): src/Command/SculpinContentfulCommand.php#L40
Escaped Mutant for Mutator "UnwrapStrToLower": --- Original +++ New @@ @@ $entries = $this->contetful->getEntries()->getItems(); foreach ($entries as $entry) { $filesystem = new Filesystem(); - $contentType = strtolower($entry->getSystemProperties()->getContentType()->getName()); + $contentType = $entry->getSystemProperties()->getContentType()->getName(); $filePath = $this->createPath($contentType, $entry['date'], $entry['title']); $filesystem->dumpFile($filePath, $this->createContent($entry['language'], $entry['date'], $entry['title'], $entry['contentMarkdown'])); $output->writeln("Created file: " . $filePath);
CI (8.1): src/Command/SculpinContentfulCommand.php#L43
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $filesystem = new Filesystem(); $contentType = strtolower($entry->getSystemProperties()->getContentType()->getName()); $filePath = $this->createPath($contentType, $entry['date'], $entry['title']); - $filesystem->dumpFile($filePath, $this->createContent($entry['language'], $entry['date'], $entry['title'], $entry['contentMarkdown'])); + $output->writeln("Created file: " . $filePath); } return self::SUCCESS;
CI (8.1): src/Command/SculpinContentfulCommand.php#L74
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ } private function normalizeTitle($title) : string { - $currentLocale = setlocale(LC_ALL, 0); + $currentLocale = setlocale(LC_ALL, -1); setlocale(LC_ALL, 'en_US.utf8'); $cleanTitle = strtolower($title); $cleanTitle = iconv('UTF-8', 'ASCII//IGNORE', $cleanTitle);
CI (8.1): src/Command/SculpinContentfulCommand.php#L74
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ } private function normalizeTitle($title) : string { - $currentLocale = setlocale(LC_ALL, 0); + $currentLocale = setlocale(LC_ALL, 1); setlocale(LC_ALL, 'en_US.utf8'); $cleanTitle = strtolower($title); $cleanTitle = iconv('UTF-8', 'ASCII//IGNORE', $cleanTitle);
CI (8.1): src/Command/SculpinContentfulCommand.php#L75
Escaped Mutant for Mutator "FunctionCallRemoval": --- Original +++ New @@ @@ private function normalizeTitle($title) : string { $currentLocale = setlocale(LC_ALL, 0); - setlocale(LC_ALL, 'en_US.utf8'); + $cleanTitle = strtolower($title); $cleanTitle = iconv('UTF-8', 'ASCII//IGNORE', $cleanTitle); $cleanTitle = preg_replace("/[^a-z0-9]+/", "-", $cleanTitle);
CI (8.1): src/Command/SculpinContentfulCommand.php#L81
Escaped Mutant for Mutator "FunctionCallRemoval": --- Original +++ New @@ @@ $cleanTitle = strtolower($title); $cleanTitle = iconv('UTF-8', 'ASCII//IGNORE', $cleanTitle); $cleanTitle = preg_replace("/[^a-z0-9]+/", "-", $cleanTitle); - setlocale(LC_ALL, $currentLocale); + return $cleanTitle; } public function setContentfulClient(Client\ClientInterface $client) : self