Skip to content

Update dependency azjezz/psl to v3 #1289

Update dependency azjezz/psl to v3

Update dependency azjezz/psl to v3 #1289

Triggered via pull request September 5, 2024 20:25
Status Failure
Total duration 2m 28s
Artifacts

continuous-integration.yml

on: pull_request
ci  /  Generate job matrix
6s
ci / Generate job matrix
Matrix: ci / QA Checks
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 10 warnings
MissingClassConstType: src/Changelog/BumpAndCommitChangelogVersion.php#L13
src/Changelog/BumpAndCommitChangelogVersion.php:13:18: MissingClassConstType: Class constant "Laminas\AutomaticReleases\Changelog\BumpAndCommitChangelogVersion::BUMP_MINOR" should have a declared type. (see https://psalm.dev/359)
MissingClassConstType: src/Changelog/BumpAndCommitChangelogVersion.php#L14
src/Changelog/BumpAndCommitChangelogVersion.php:14:18: MissingClassConstType: Class constant "Laminas\AutomaticReleases\Changelog\BumpAndCommitChangelogVersion::BUMP_PATCH" should have a declared type. (see https://psalm.dev/359)
MissingClassConstType: src/Changelog/BumpAndCommitChangelogVersionViaKeepAChangelog.php#L20
src/Changelog/BumpAndCommitChangelogVersionViaKeepAChangelog.php:20:19: MissingClassConstType: Class constant "Laminas\AutomaticReleases\Changelog\BumpAndCommitChangelogVersionViaKeepAChangelog::CHANGELOG_FILE" should have a declared type. (see https://psalm.dev/359)
MissingClassConstType: src/Changelog/BumpAndCommitChangelogVersionViaKeepAChangelog.php#L22
src/Changelog/BumpAndCommitChangelogVersionViaKeepAChangelog.php:22:19: MissingClassConstType: Class constant "Laminas\AutomaticReleases\Changelog\BumpAndCommitChangelogVersionViaKeepAChangelog::COMMIT_TEMPLATE" should have a declared type. (see https://psalm.dev/359)
MissingClassConstType: src/Changelog/ChangelogReleaseNotes.php#L16
src/Changelog/ChangelogReleaseNotes.php:16:19: MissingClassConstType: Class constant "Laminas\AutomaticReleases\Changelog\ChangelogReleaseNotes::CONCATENATION_STRING" should have a declared type. (see https://psalm.dev/359)
MissingClassConstType: src/Environment/EnvironmentVariables.php#L18
src/Environment/EnvironmentVariables.php:18:19: MissingClassConstType: Class constant "Laminas\AutomaticReleases\Environment\EnvironmentVariables::LOG_LEVELS" should have a declared type. (see https://psalm.dev/359)
MissingClassConstType: src/Github/CreateReleaseTextViaKeepAChangelog.php#L29
src/Github/CreateReleaseTextViaKeepAChangelog.php:29:19: MissingClassConstType: Class constant "Laminas\AutomaticReleases\Github\CreateReleaseTextViaKeepAChangelog::DEFAULT_SECTIONS" should have a declared type. (see https://psalm.dev/359)
MissingClassConstType: test/unit/Changelog/BumpAndCommitChangelogVersionViaKeepAChangelogTest.php#L212
test/unit/Changelog/BumpAndCommitChangelogVersionViaKeepAChangelogTest.php:212:19: MissingClassConstType: Class constant "Laminas\AutomaticReleases\Test\Unit\Changelog\BumpAndCommitChangelogVersionViaKeepAChangelogTest::CHANGELOG_STUB" should have a declared type. (see https://psalm.dev/359)
MissingClassConstType: test/unit/Changelog/ChangelogReleaseNotesTest.php#L164
test/unit/Changelog/ChangelogReleaseNotesTest.php:164:19: MissingClassConstType: Class constant "Laminas\AutomaticReleases\Test\Unit\Changelog\ChangelogReleaseNotesTest::CHANGELOG_ENTRY" should have a declared type. (see https://psalm.dev/359)
MissingClassConstType: test/unit/Changelog/ChangelogReleaseNotesTest.php#L189
test/unit/Changelog/ChangelogReleaseNotesTest.php:189:19: MissingClassConstType: Class constant "Laminas\AutomaticReleases\Test\Unit\Changelog\ChangelogReleaseNotesTest::CHANGELOG_STUB" should have a declared type. (see https://psalm.dev/359)
ci / QA Checks (Infection [8.3, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...: src/Application/Command/SwitchDefaultBranchToNextMinor.php#L34
Escaped Mutant for Mutator "PublicVisibility": --- Original +++ New @@ @@ { parent::__construct('laminas:automatic-releases:switch-default-branch-to-next-minor'); } - public function execute(InputInterface $input, OutputInterface $output) : int + protected function execute(InputInterface $input, OutputInterface $output) : int { $event = $this->loadGithubEvent->__invoke(); $repositoryPath = $this->variables->githubWorkspacePath();
ci / QA Checks (Infection [8.3, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...: src/Changelog/ChangelogExistsViaConsole.php#L18
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ public function __invoke(BranchName $sourceBranch, string $repositoryDirectory) : bool { try { - Shell\execute('git', ['show', 'origin/' . $sourceBranch->name() . ':CHANGELOG.md'], $repositoryDirectory); + Shell\execute('git', ['show', $sourceBranch->name() . ':CHANGELOG.md'], $repositoryDirectory); return true; } catch (Shell\Exception\FailedExecutionException) { return false;
ci / QA Checks (Infection [8.3, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...: src/Git/FetchAndSetCurrentUserByReplacingCurrentOriginRemote.php#L24
Escaped Mutant for Mutator "FunctionCallRemoval": --- Original +++ New @@ @@ } public function __invoke(UriInterface $repositoryUri, UriInterface $uriWithCredentials, string $repositoryRootDirectory) : void { - Shell\execute('git', ['config', '--global', '--add', 'safe.directory', '*'], $repositoryRootDirectory); + try { Shell\execute('git', ['remote', 'rm', 'origin'], $repositoryRootDirectory); } catch (Shell\Exception\FailedExecutionException) {
ci / QA Checks (Infection [8.3, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...: src/Git/FetchAndSetCurrentUserByReplacingCurrentOriginRemote.php#L33
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ } catch (Shell\Exception\FailedExecutionException) { } $credentialStore = Filesystem\create_temporary_file(); - Shell\execute('git', ['config', 'credential.helper', 'store --file=' . $credentialStore], $repositoryRootDirectory); + Shell\execute('git', ['config', 'credential.helper', $credentialStore . 'store --file='], $repositoryRootDirectory); File\write($credentialStore, $uriWithCredentials->__toString()); Shell\execute('git', ['remote', 'add', 'origin', $repositoryUri->__toString()], $repositoryRootDirectory); Shell\execute('git', ['fetch', 'origin'], $repositoryRootDirectory);
ci / QA Checks (Infection [8.3, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...: src/Git/FetchAndSetCurrentUserByReplacingCurrentOriginRemote.php#L33
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ } catch (Shell\Exception\FailedExecutionException) { } $credentialStore = Filesystem\create_temporary_file(); - Shell\execute('git', ['config', 'credential.helper', 'store --file=' . $credentialStore], $repositoryRootDirectory); + Shell\execute('git', ['config', 'credential.helper', $credentialStore], $repositoryRootDirectory); File\write($credentialStore, $uriWithCredentials->__toString()); Shell\execute('git', ['remote', 'add', 'origin', $repositoryUri->__toString()], $repositoryRootDirectory); Shell\execute('git', ['fetch', 'origin'], $repositoryRootDirectory);
ci / QA Checks (Infection [8.3, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...: src/Git/FetchAndSetCurrentUserByReplacingCurrentOriginRemote.php#L33
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ } catch (Shell\Exception\FailedExecutionException) { } $credentialStore = Filesystem\create_temporary_file(); - Shell\execute('git', ['config', 'credential.helper', 'store --file=' . $credentialStore], $repositoryRootDirectory); + Shell\execute('git', ['config', 'credential.helper', 'store --file='], $repositoryRootDirectory); File\write($credentialStore, $uriWithCredentials->__toString()); Shell\execute('git', ['remote', 'add', 'origin', $repositoryUri->__toString()], $repositoryRootDirectory); Shell\execute('git', ['fetch', 'origin'], $repositoryRootDirectory);
ci / QA Checks (Infection [8.3, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...: src/Git/FetchAndSetCurrentUserByReplacingCurrentOriginRemote.php#L33
Escaped Mutant for Mutator "FunctionCallRemoval": --- Original +++ New @@ @@ } catch (Shell\Exception\FailedExecutionException) { } $credentialStore = Filesystem\create_temporary_file(); - Shell\execute('git', ['config', 'credential.helper', 'store --file=' . $credentialStore], $repositoryRootDirectory); + File\write($credentialStore, $uriWithCredentials->__toString()); Shell\execute('git', ['remote', 'add', 'origin', $repositoryUri->__toString()], $repositoryRootDirectory); Shell\execute('git', ['fetch', 'origin'], $repositoryRootDirectory);
ci / QA Checks (Infection [8.3, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...: src/Git/FetchAndSetCurrentUserByReplacingCurrentOriginRemote.php#L34
Escaped Mutant for Mutator "FunctionCallRemoval": --- Original +++ New @@ @@ } $credentialStore = Filesystem\create_temporary_file(); Shell\execute('git', ['config', 'credential.helper', 'store --file=' . $credentialStore], $repositoryRootDirectory); - File\write($credentialStore, $uriWithCredentials->__toString()); + Shell\execute('git', ['remote', 'add', 'origin', $repositoryUri->__toString()], $repositoryRootDirectory); Shell\execute('git', ['fetch', 'origin'], $repositoryRootDirectory); Shell\execute('git', ['config', 'user.email', $this->variables->gitAuthorEmail()], $repositoryRootDirectory);
ci / QA Checks (Infection [8.3, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...: src/Git/HasTagViaConsole.php#L18
Escaped Mutant for Mutator "UnwrapTrim": --- Original +++ New @@ @@ public function __invoke(string $repositoryDirectory, string $tagName) : bool { $output = Shell\execute('git', ['tag', '--list', $tagName], $repositoryDirectory); - if (trim($output) === '') { + if ($output === '') { return false; } return str_contains($output, $tagName); } }
ci / QA Checks (Infection [8.3, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...: src/Git/PushViaConsole.php#L23
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ Shell\execute('git', ['push', 'origin', $symbol], $repositoryDirectory); return; } - $localTemporaryBranch = 'temporary-branch' . SecureRandom\string(8); + $localTemporaryBranch = 'temporary-branch' . SecureRandom\string(7); Shell\execute('git', ['branch', $localTemporaryBranch, $symbol], $repositoryDirectory); Shell\execute('git', ['push', 'origin', $localTemporaryBranch . ':' . $alias], $repositoryDirectory); Shell\execute('git', ['branch', '-D', $localTemporaryBranch], $repositoryDirectory); } }