Skip to content

Commit

Permalink
merger 4.7.x
Browse files Browse the repository at this point in the history
  • Loading branch information
fezfez committed Sep 18, 2023
2 parents ba557f2 + 6ec1c84 commit d522c01
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coding-standard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
uses: "actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac" # v4

- name: "Install PHP"
uses: "shivammathur/setup-php@2.24.0"
uses: "shivammathur/setup-php@2.26.0"
with:
coverage: "pcov"
php-version: "${{ matrix.php-version }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/infection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
uses: "actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac" # v4

- name: "Install PHP"
uses: "shivammathur/setup-php@2.24.0"
uses: "shivammathur/setup-php@2.26.0"
with:
coverage: "pcov"
php-version: "${{ matrix.php-version }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/phar-creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: "actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac" # v4

- name: "Install PHP"
uses: "shivammathur/setup-php@2.24.0"
uses: "shivammathur/setup-php@2.26.0"
with:
coverage: "none"
php-version: "8.1"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
uses: "actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac" # v4

- name: "Install PHP"
uses: "shivammathur/setup-php@2.24.0"
uses: "shivammathur/setup-php@2.26.0"
with:
coverage: "pcov"
php-version: "${{ matrix.php-version }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
uses: "actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac" # v4

- name: "Install PHP"
uses: "shivammathur/setup-php@2.24.0"
uses: "shivammathur/setup-php@2.26.0"
with:
coverage: "pcov"
php-version: "${{ matrix.php-version }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/psalm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
uses: "actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac" # v4

- name: "Install PHP"
uses: "shivammathur/setup-php@2.24.0"
uses: "shivammathur/setup-php@2.26.0"
with:
coverage: "pcov"
php-version: "${{ matrix.php-version }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/require-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
uses: "actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac" # v4

- name: "Install PHP"
uses: "shivammathur/setup-php@2.24.0"
uses: "shivammathur/setup-php@2.26.0"
with:
coverage: "pcov"
php-version: "${{ matrix.php-version }}"
Expand Down
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions test/ComposerRequireCheckerTest/JsonLoaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
use ComposerRequireChecker\JsonLoader;
use PHPUnit\Framework\TestCase;

use function file_exists;
use function is_readable;

use const PHP_OS_FAMILY;

/** @covers \ComposerRequireChecker\JsonLoader */
final class JsonLoaderTest extends TestCase
Expand All @@ -35,8 +37,8 @@ public function testHasErrorWithInvalidFile(): void
public function testHasErrorWithUnreadableFile(): void
{
$path = '/etc/shadow';
if (! file_exists($path)) {
$this->markTestSkipped('This system does not have ' . $path);
if (PHP_OS_FAMILY !== 'Linux' || is_readable($path)) {
$this->markTestSkipped('This test relies on ' . $path . ' existing, but being unreadable.');
}

$this->expectException(NotReadable::class);
Expand Down

0 comments on commit d522c01

Please sign in to comment.