Skip to content

First part of the PHPStorm guide #102

First part of the PHPStorm guide

First part of the PHPStorm guide #102

Triggered via pull request May 28, 2024 08:30
@rdss-sknottrdss-sknott
synchronize #35
ide-guide
Status Success
Total duration 5m 33s
Artifacts

continuous-integration.yml

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

Annotations

25 warnings
codestyle
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v2, shivammathur/setup-php@e04e1d97f0c0481c6e1ba40f8a538454fe5d7709, actions/setup-node@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
codestyle
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
codestyle
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
codestyle
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
codestyle
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
tests (2, --prefer-lowest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v2, shivammathur/setup-php@e04e1d97f0c0481c6e1ba40f8a538454fe5d7709, actions/setup-node@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
tests (2, --prefer-lowest)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
tests (2, --prefer-lowest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
tests (2, --prefer-lowest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
tests (2, --prefer-lowest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
tests (2, --prefer-stable)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v2, shivammathur/setup-php@e04e1d97f0c0481c6e1ba40f8a538454fe5d7709, actions/setup-node@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
tests (2, --prefer-stable)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
tests (2, --prefer-stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
tests (2, --prefer-stable): src/main/php/CommandLine/ExclusionList/Excluders/GitIgnoresExcluder.php#L67
Escaped Mutant for Mutator "MBString": --- Original +++ New @@ @@ { $ignoredFolders = []; foreach ($rawIgnoredFoldersAndFiles as $ignoredFoldersAndFile) { - if (mb_substr($ignoredFoldersAndFile, -1) === '/') { + if (substr($ignoredFoldersAndFile, -1) === '/') { $ignoredFolders[] = $ignoredFoldersAndFile; } }
tests (2, --prefer-stable): src/main/php/CommandLine/ExclusionList/ExclusionListSanitizer.php#L29
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ { $filteredArray = $rawExcludePaths; $count = count($filteredArray); - for ($i = 0; $count > $i; $i++) { + for ($i = -1; $count > $i; $i++) { if (!isset($filteredArray[$i])) { continue; }
tests (2, --prefer-stable): src/main/php/CommandLine/ExclusionList/ExclusionListSanitizer.php#L31
Escaped Mutant for Mutator "Continue_": --- Original +++ New @@ @@ $count = count($filteredArray); for ($i = 0; $count > $i; $i++) { if (!isset($filteredArray[$i])) { - continue; + break; } $item = $filteredArray[$i]; $filteredArray = array_filter($filteredArray, static function ($value, $key) use($item, $i) : bool {
tests (2, --prefer-stable): src/main/php/CommandLine/FileFinder/GitChangeSetFilter.php#L129
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ private function filterByList(array &$result, SplObjectStorage $list) : void { $result = array_filter($result, static function (EnhancedFileInfo $file) use($list) { - $priority = 0; + $priority = -1; $result = true; foreach ($list as $directoryPattern) { /** @var EnhancedFileInfo $directoryPattern */
tests (2, --prefer-stable): src/main/php/CommandLine/FileFinder/GitChangeSetFilter.php#L135
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ /** @var EnhancedFileInfo $directoryPattern */ $allowanceRule = $list[$directoryPattern]; $path = $directoryPattern->getRealPath(); - if ($file->startsWith($path . '/') && $priority < strlen($path)) { + if ($file->startsWith($path) && $priority < strlen($path)) { $priority = strlen($path); $result = $allowanceRule; }
tests (2, --prefer-stable): src/main/php/CommandLine/FileFinder/GitChangeSetFilter.php#L135
Escaped Mutant for Mutator "LessThan": --- Original +++ New @@ @@ /** @var EnhancedFileInfo $directoryPattern */ $allowanceRule = $list[$directoryPattern]; $path = $directoryPattern->getRealPath(); - if ($file->startsWith($path . '/') && $priority < strlen($path)) { + if ($file->startsWith($path . '/') && $priority <= strlen($path)) { $priority = strlen($path); $result = $allowanceRule; }
tests (2, --prefer-stable): src/main/php/CommandLine/FileSearch/FastCachedFileSearch.php#L28
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ /** * {@inheritdoc} */ - public function listFolderFiles(string $fileName, EnhancedFileInfo $path, array $exclusions = [], int $minDepth = 0, ?int $maxDepth = null) : array + public function listFolderFiles(string $fileName, EnhancedFileInfo $path, array $exclusions = [], int $minDepth = -1, ?int $maxDepth = null) : array { $dir = $path->getPathname(); $exclusionPaths = array_map(static fn(EnhancedFileInfo $exclusion) => $exclusion->getPathname(), $exclusions);
tests (2, --prefer-stable): src/main/php/CommandLine/FileSearch/FastCachedFileSearch.php#L28
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ /** * {@inheritdoc} */ - public function listFolderFiles(string $fileName, EnhancedFileInfo $path, array $exclusions = [], int $minDepth = 0, ?int $maxDepth = null) : array + public function listFolderFiles(string $fileName, EnhancedFileInfo $path, array $exclusions = [], int $minDepth = 1, ?int $maxDepth = null) : array { $dir = $path->getPathname(); $exclusionPaths = array_map(static fn(EnhancedFileInfo $exclusion) => $exclusion->getPathname(), $exclusions);
tests (2, --prefer-stable): src/main/php/CommandLine/FileSearch/FastCachedFileSearch.php#L61
Escaped Mutant for Mutator "ArrayOneItem": --- Original +++ New @@ @@ { $result = []; if ($maxDepth === $depthNow) { - return $result; + return count($result) > 1 ? array_slice($result, 0, 1, true) : $result; } // If name is not a directory, return empty array if (isset($this->fileSystemCache[$directory]) && $this->fileSystemCache[$directory] === [] || !is_dir($directory)) {
tests (2, --prefer-stable): src/main/php/CommandLine/FileSearch/FastCachedFileSearch.php#L70
Escaped Mutant for Mutator "ArrayOneItem": --- Original +++ New @@ @@ // If name is not a directory, return empty array if (isset($this->fileSystemCache[$directory]) && $this->fileSystemCache[$directory] === [] || !is_dir($directory)) { $this->fileSystemCache[$directory] = []; - return $result; + return count($result) > 1 ? array_slice($result, 0, 1, true) : $result; } // Writing the cache for the current directory $this->writeDirectoryToCache($directory);
tests (2, --prefer-stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
tests (2, --prefer-stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/