Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: vimeo/psalm
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5.21.0
Choose a base ref
...
head repository: vimeo/psalm
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5.21.1
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Feb 1, 2024

  1. Fix baseline loading for path specified on the command line

    Fixes #10624
    weirdan committed Feb 1, 2024
    Copy the full SHA
    138c7b8 View commit details
  2. Merge pull request #10628 from weirdan/fix-baseline-usage-with-paths-…

    …passed-via-cli-args
    weirdan authored Feb 1, 2024
    Copy the full SHA
    8c473e2 View commit details
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/Psalm/Internal/Cli/Psalm.php
3 changes: 2 additions & 1 deletion src/Psalm/Internal/Cli/Psalm.php
Original file line number Diff line number Diff line change
@@ -1067,7 +1067,8 @@ private static function initBaseline(
if ($paths_to_check !== null) {
$filtered_issue_baseline = [];
foreach ($paths_to_check as $path_to_check) {
$path_to_check = substr($path_to_check, strlen($config->base_dir));
// +1 to remove the initial slash from $path_to_check
$path_to_check = substr($path_to_check, strlen($config->base_dir) + 1);
if (isset($issue_baseline[$path_to_check])) {
$filtered_issue_baseline[$path_to_check] = $issue_baseline[$path_to_check];
}