Skip to content

Commit

Permalink
Merge pull request #1610 from getsentry/4.x
Browse files Browse the repository at this point in the history
Merge 4.x into master
  • Loading branch information
cleptric authored Nov 6, 2023
2 parents 97b215e + 207ba04 commit b02285c
Show file tree
Hide file tree
Showing 139 changed files with 2,718 additions and 4,739 deletions.
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Update PHPCS (#1599)
f8b64d330d03cbf809795beb5846b2c48175cd62
8 changes: 4 additions & 4 deletions .github/workflows/static-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: '8.2'

- name: Install dependencies
run: composer update --no-progress --no-interaction --prefer-dist

- name: Run script
run: composer phpcs
run: vendor/bin/php-cs-fixer fix --verbose --diff --dry-run

phpstan:
name: PHPStan
Expand All @@ -42,7 +42,7 @@ jobs:
run: composer update --no-progress --no-interaction --prefer-dist

- name: Run script
run: composer phpstan
run: vendor/bin/phpstan analyse

psalm:
name: Psalm
Expand All @@ -62,4 +62,4 @@ jobs:
run: composer update --no-progress --no-interaction --prefer-dist

- name: Run script
run: composer psalm
run: vendor/bin/psalm
15 changes: 13 additions & 2 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,20 @@
'imports_order' => ['class', 'function', 'const'],
],
'declare_strict_types' => true,
'yoda_style' => true,
'get_class_to_class_keyword' => false,
'yoda_style' => [
'equal' => false,
'identical' => false,
'less_and_greater' => false,
],
'self_accessor' => false,
'phpdoc_no_useless_inheritdoc' => false,
'modernize_strpos' => false,
'nullable_type_declaration_for_default_null_value' => [
'use_nullable_type_declaration' => true,
],
'no_superfluous_phpdoc_tags' => [
'allow_mixed' => true,
],
'phpdoc_to_comment' => false,
'phpdoc_align' => [
'tags' => ['param', 'return', 'throws', 'type', 'var'],
Expand Down
Loading

0 comments on commit b02285c

Please sign in to comment.