Skip to content

Commit 92a00e9

Browse files
authored
phpstan bump + composer bump (#15)
1 parent eb7480b commit 92a00e9

22 files changed

+3574
-2202
lines changed

.github/workflows/CI.yaml

+11-11
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
if: (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository)
2020
steps:
2121
- name: Cancel Previous Runs
22-
uses: styfle/cancel-workflow-action@0.11.0
22+
uses: styfle/cancel-workflow-action@0.12.1
2323
with:
2424
access_token: ${{ github.token }}
2525

@@ -32,13 +32,13 @@ jobs:
3232
- name: Set up PHP
3333
uses: shivammathur/setup-php@v2
3434
with:
35-
php-version: 8.1
35+
php-version: 8.2
3636

3737
- name: Checkout code
38-
uses: actions/checkout@v3
38+
uses: actions/checkout@v4
3939

4040
- name: Install dependencies
41-
uses: ramsey/composer-install@v2
41+
uses: ramsey/composer-install@v3
4242

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

5757
- name: Checkout code
58-
uses: actions/checkout@v3
58+
uses: actions/checkout@v4
5959

6060
- name: Install dependencies
61-
uses: ramsey/composer-install@v2
61+
uses: ramsey/composer-install@v3
6262

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

7575
# - name: Setup PHP
7676
# uses: shivammathur/setup-php@v2
@@ -80,7 +80,7 @@ jobs:
8080
# tools: phpstan
8181

8282
# - name: Install Composer dependencies
83-
# uses: ramsey/composer-install@v2
83+
# uses: ramsey/composer-install@v3
8484

8585
# - name: Run PHPStan
8686
# run: vendor/bin/phpstan analyze
@@ -94,8 +94,8 @@ jobs:
9494
fail-fast: false
9595
matrix:
9696
php-version:
97-
- 8.1
9897
- 8.2
98+
- 8.3
9999

100100
env:
101101
COMPOSER_NO_INTERACTION: 1
@@ -106,7 +106,7 @@ jobs:
106106

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

111111

112112
- name: Setup PHP Action
@@ -118,7 +118,7 @@ jobs:
118118
tools: pecl, composer
119119

120120
- name: Install Composer dependencies
121-
uses: ramsey/composer-install@v2
121+
uses: ramsey/composer-install@v3
122122

123123
- name: Run tests
124124
run: composer run-tests

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ composer.phar
44
.DS_Store
55
.php-cs-fixer.cache
66
.phpunit.result.cache
7+
.phpunit.cache/

.php-cs-fixer.php

+7
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,16 @@ function (PhpCsFixer\Finder $finder, $dir) {
1212
)->notName('*.blade.php');
1313
$rules = [
1414
'@Symfony' => true,
15+
'nullable_type_declaration_for_default_null_value' => true,
1516
'align_multiline_comment' => true,
1617
'array_indentation' => true,
18+
'fully_qualified_strict_types' => false,
1719
'backtick_to_shell_exec' => true,
1820
'increment_style' => ['style' => 'post'],
1921
'indentation_type' => true,
2022
'multiline_comment_opening_closing' => true,
2123
'no_php4_constructor' => true,
24+
'nullable_type_declaration' => false,
2225
'phpdoc_no_empty_return' => false,
2326
'single_blank_line_at_eof' => false,
2427
'yoda_style' => false,
@@ -33,6 +36,10 @@ function (PhpCsFixer\Finder $finder, $dir) {
3336
'no_unneeded_control_parentheses' => [
3437
'statements' => ['break', 'clone', 'continue', 'echo_print', 'switch_case', 'yield'],
3538
],
39+
'operator_linebreak' => [
40+
'only_booleans' => true,
41+
'position' => 'end',
42+
],
3643
];
3744
$config = new PhpCsFixer\Config();
3845

CHANGELOG.markdown

-117
This file was deleted.

composer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@
2222
}
2323
],
2424
"require": {
25-
"php": "^8.1",
25+
"php": "^8.2",
2626
"illuminate/support": "^10.0",
2727
"illuminate/database": "^10.0",
2828
"illuminate/events": "^10.0"
2929
},
3030
"require-dev": {
3131
"friendsofphp/php-cs-fixer": "^3.3",
3232
"php-parallel-lint/php-parallel-lint": "^1.2",
33-
"phpunit/phpunit": "^9.5.20",
34-
"lychee-org/phpstan-lychee": "^1.0",
33+
"phpunit/phpunit": "^10.5",
34+
"lychee-org/phpstan-lychee": "^1.0.4",
3535
"nunomaduro/larastan": "^2.0",
3636
"orchestra/testbench": "^8.0"
3737
},
@@ -65,7 +65,7 @@
6565
"prefer-stable": true,
6666
"config": {
6767
"platform": {
68-
"php": "8.1"
68+
"php": "8.2"
6969
},
7070
"preferred-install": "dist",
7171
"sort-packages": true,

0 commit comments

Comments
 (0)