@@ -155,18 +155,11 @@ jobs:
155155
156156 # Install dependencies and handle caching in one go.
157157 # @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
158- - name : Install Composer dependencies - normal
159- if : matrix.php != 'nightly'
158+ - name : Install Composer dependencies
160159 uses : " ramsey/composer-install@v3"
161160 with :
162- # Bust the cache at least once a month - output format: YYYY-MM.
163- custom-cache-suffix : $(date -u "+%Y-%m")
164-
165- - name : Install Composer dependencies - ignore PHP restrictions
166- if : matrix.php == 'nightly'
167- uses : " ramsey/composer-install@v3"
168- with :
169- composer-options : --ignore-platform-req=php+
161+ # For PHP "nightly", we need to install with ignore platform reqs as not all dependencies may allow it yet.
162+ composer-options : ${{ matrix.php == 'nightly' && '--ignore-platform-req=php+' || '' }}
170163 # Bust the cache at least once a month - output format: YYYY-MM.
171164 custom-cache-suffix : $(date -u "+%Y-%m")
172165
@@ -368,19 +361,11 @@ jobs:
368361
369362 # Install dependencies and handle caching in one go.
370363 # @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
371- - name : Install Composer dependencies - normal
372- if : matrix.php != 'nightly'
373- uses : " ramsey/composer-install@v3"
374- with :
375- composer-options : " --no-dev"
376- # Bust the cache at least once a month - output format: YYYY-MM.
377- custom-cache-suffix : $(date -u "+%Y-%m")
378-
379- - name : Install Composer dependencies - ignore PHP restrictions
380- if : matrix.php == 'nightly'
364+ - name : Install Composer dependencies
381365 uses : " ramsey/composer-install@v3"
382366 with :
383- composer-options : " --no-dev --ignore-platform-req=php+"
367+ # For PHP "nightly", we need to install with ignore platform reqs as not all dependencies may allow it yet.
368+ composer-options : ${{ matrix.php == 'nightly' && '--no-dev --ignore-platform-req=php+' || '--no-dev' }}
384369 # Bust the cache at least once a month - output format: YYYY-MM.
385370 custom-cache-suffix : $(date -u "+%Y-%m")
386371
0 commit comments