Skip to content

Commit

Permalink
phpstan bump + composer bump (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria authored Jun 10, 2024
1 parent eb7480b commit 92a00e9
Show file tree
Hide file tree
Showing 22 changed files with 3,574 additions and 2,202 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
if: (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository)
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
uses: styfle/cancel-workflow-action@0.12.1
with:
access_token: ${{ github.token }}

Expand All @@ -32,13 +32,13 @@ jobs:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
php-version: 8.2

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install dependencies
uses: ramsey/composer-install@v2
uses: ramsey/composer-install@v3

- name: Check source code for syntax errors
run: vendor/bin/parallel-lint --exclude .git --exclude vendor .
Expand All @@ -55,10 +55,10 @@ jobs:
php-version: latest

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install dependencies
uses: ramsey/composer-install@v2
uses: ramsey/composer-install@v3

- name: Check source code for code style errors
run: PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --verbose --diff --dry-run
Expand All @@ -70,7 +70,7 @@ jobs:
# - php_syntax_errors
# steps:
# - name: Checkout code
# uses: actions/checkout@v3
# uses: actions/checkout@v4

# - name: Setup PHP
# uses: shivammathur/setup-php@v2
Expand All @@ -80,7 +80,7 @@ jobs:
# tools: phpstan

# - name: Install Composer dependencies
# uses: ramsey/composer-install@v2
# uses: ramsey/composer-install@v3

# - name: Run PHPStan
# run: vendor/bin/phpstan analyze
Expand All @@ -94,8 +94,8 @@ jobs:
fail-fast: false
matrix:
php-version:
- 8.1
- 8.2
- 8.3

env:
COMPOSER_NO_INTERACTION: 1
Expand All @@ -106,7 +106,7 @@ jobs:

# Checks out a copy of your repository on the ubuntu machine
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4


- name: Setup PHP Action
Expand All @@ -118,7 +118,7 @@ jobs:
tools: pecl, composer

- name: Install Composer dependencies
uses: ramsey/composer-install@v2
uses: ramsey/composer-install@v3

- name: Run tests
run: composer run-tests
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ composer.phar
.DS_Store
.php-cs-fixer.cache
.phpunit.result.cache
.phpunit.cache/
7 changes: 7 additions & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@ function (PhpCsFixer\Finder $finder, $dir) {
)->notName('*.blade.php');
$rules = [
'@Symfony' => true,
'nullable_type_declaration_for_default_null_value' => true,
'align_multiline_comment' => true,
'array_indentation' => true,
'fully_qualified_strict_types' => false,
'backtick_to_shell_exec' => true,
'increment_style' => ['style' => 'post'],
'indentation_type' => true,
'multiline_comment_opening_closing' => true,
'no_php4_constructor' => true,
'nullable_type_declaration' => false,
'phpdoc_no_empty_return' => false,
'single_blank_line_at_eof' => false,
'yoda_style' => false,
Expand All @@ -33,6 +36,10 @@ function (PhpCsFixer\Finder $finder, $dir) {
'no_unneeded_control_parentheses' => [
'statements' => ['break', 'clone', 'continue', 'echo_print', 'switch_case', 'yield'],
],
'operator_linebreak' => [
'only_booleans' => true,
'position' => 'end',
],
];
$config = new PhpCsFixer\Config();

Expand Down
117 changes: 0 additions & 117 deletions CHANGELOG.markdown

This file was deleted.

8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@
}
],
"require": {
"php": "^8.1",
"php": "^8.2",
"illuminate/support": "^10.0",
"illuminate/database": "^10.0",
"illuminate/events": "^10.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.3",
"php-parallel-lint/php-parallel-lint": "^1.2",
"phpunit/phpunit": "^9.5.20",
"lychee-org/phpstan-lychee": "^1.0",
"phpunit/phpunit": "^10.5",
"lychee-org/phpstan-lychee": "^1.0.4",
"nunomaduro/larastan": "^2.0",
"orchestra/testbench": "^8.0"
},
Expand Down Expand Up @@ -65,7 +65,7 @@
"prefer-stable": true,
"config": {
"platform": {
"php": "8.1"
"php": "8.2"
},
"preferred-install": "dist",
"sort-packages": true,
Expand Down
Loading

0 comments on commit 92a00e9

Please sign in to comment.