Skip to content

Commit

Permalink
ci: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kbond committed Dec 1, 2022
1 parent 6837229 commit 60feed6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 24 deletions.
23 changes: 2 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php: [7.2, 7.4, 8.0, 8.1]
php: [7.2, 7.4, 8.0, 8.1, 8.2]
steps:
- uses: zenstruck/.github@php-test-symfony
with:
Expand All @@ -34,23 +34,4 @@ jobs:
php: 8

sca:
name: Static Code Analysis
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
coverage: none

- name: Install Dependencies
uses: ramsey/composer-install@v1

- name: Install PHPUnit
run: vendor/bin/simple-phpunit install

- name: Run PHPStan
run: vendor/bin/phpstan --error-format=github
uses: zenstruck/.github/.github/workflows/php-stan.yml@main
9 changes: 9 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@

// temporary fix for union types (ref: https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/5495)
'binary_operator_spaces' => ['operators' => ['|' => null]],
'phpdoc_separation' => ['groups' => [
['test', 'dataProvider'],
['template', 'implements', 'extends'],
['phpstan-type', 'phpstan-import-type'],
['deprecated', 'link', 'see', 'since'],
['author', 'copyright', 'license', 'source'],
['category', 'package', 'subpackage'],
['property', 'property-read', 'property-write'],
]],
])
->setRiskyAllowed(true)
->setFinder($finder)
Expand Down
2 changes: 1 addition & 1 deletion src/Assert/AssertionFailed.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private static function normalizeContextValue($value): string
return '(array:empty)';
}

if (\is_array($value)) { // @phpstan-ignore-line
if (\is_array($value)) {
return array_is_list($value) ? '(array:list)' : '(array:assoc)';
}

Expand Down
2 changes: 0 additions & 2 deletions tests/Assertion/ArraySubsetAssertionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ class ArraySubsetAssertionTest extends TestCase
{
/**
* @dataProvider arraySubsetProvider
*
* @test
*
* @param string|iterable $needle
Expand Down Expand Up @@ -73,7 +72,6 @@ public function arraySubsetProvider(): iterable

/**
* @dataProvider arrayNotSubsetProvider
*
* @test
*/
public function it_asserts_not_array_subset(array $needle, array $haystack): void
Expand Down

0 comments on commit 60feed6

Please sign in to comment.