From bbe489a84ed4a8600c586a7eb28907a30ccd7378 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 22 Jul 2021 16:50:47 +0200 Subject: [PATCH] Fix CI --- .github/workflows/continuous-integration.yml | 1 + src/Composer/Installers/CakePHPInstaller.php | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 840e4482..c9bc57ae 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -44,6 +44,7 @@ jobs: with: coverage: "none" php-version: "${{ matrix.php-version }}" + tools: composer:snapshot - name: Get composer cache directory id: composercache diff --git a/src/Composer/Installers/CakePHPInstaller.php b/src/Composer/Installers/CakePHPInstaller.php index dda90a4e..1e2ddd02 100644 --- a/src/Composer/Installers/CakePHPInstaller.php +++ b/src/Composer/Installers/CakePHPInstaller.php @@ -47,6 +47,7 @@ public function getLocations() * @param string $matcher * @param string $version * @return bool + * @phpstan-param Constraint::STR_OP_* $matcher */ protected function matchesCakeVersion($matcher, $version) {