From 32501160d43eb7cdfd058e234aaff597ca0140d6 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Tue, 13 May 2025 15:42:45 +0200 Subject: [PATCH 1/2] regardlress php, to be honest and forward --- src/Composer/ComposerOutdatedResponseProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/ComposerOutdatedResponseProvider.php b/src/Composer/ComposerOutdatedResponseProvider.php index b199370..0b4dc34 100644 --- a/src/Composer/ComposerOutdatedResponseProvider.php +++ b/src/Composer/ComposerOutdatedResponseProvider.php @@ -21,7 +21,7 @@ public function provide(): string } $composerOutdatedProcess = Process::fromShellCommandline( - 'composer outdated --direct --major-only --format json', + 'composer outdated --direct --major-only --format json --ignore-platform-req=php', timeout: 120 ); From c8652e7147d0275138969d49e8977b498cc41488 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Tue, 13 May 2025 15:45:52 +0200 Subject: [PATCH 2/2] increase limit --- .github/workflows/code_analysis.yaml | 2 +- src/ValueObject/OutdatedComposer.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/code_analysis.yaml b/.github/workflows/code_analysis.yaml index 57f45ef..440d4cb 100644 --- a/.github/workflows/code_analysis.yaml +++ b/.github/workflows/code_analysis.yaml @@ -30,7 +30,7 @@ jobs: - name: 'Jack: Outdated Breakpoint' - run: ./bin/jack breakpoint --ansi --limit 2 + run: ./bin/jack breakpoint --ansi --limit 3 - name: 'Jack: Open Versions' diff --git a/src/ValueObject/OutdatedComposer.php b/src/ValueObject/OutdatedComposer.php index 758bab0..56e8b25 100644 --- a/src/ValueObject/OutdatedComposer.php +++ b/src/ValueObject/OutdatedComposer.php @@ -74,7 +74,7 @@ public function getPackagesShuffled(bool $onlyDev, ?string $packagePrefix): arra // filter only package starting with specific prefix if ($packagePrefix !== null) { - $outdatedPackages = array_filter( + return array_filter( $outdatedPackages, fn (OutdatedPackage $outdatedPackage): bool => str_starts_with( $outdatedPackage->getName(),