Skip to content
This repository was archived by the owner on Mar 3, 2025. It is now read-only.

Commit aa8f6d8

Browse files
authored
Merge pull request #11 from DanielGSoftware/daniel-allow-laravel-9
Allow Laravel 9
2 parents 4b6015f + 9965634 commit aa8f6d8

File tree

6 files changed

+20
-16
lines changed

6 files changed

+20
-16
lines changed

.github/workflows/php-cs-fixer.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Check & fix styling
22

3-
on: [push]
3+
on: [push, pull_request]
44

55
jobs:
66
php-cs-fixer:
@@ -9,13 +9,11 @@ jobs:
99
steps:
1010
- name: Checkout code
1111
uses: actions/checkout@v2
12-
with:
13-
ref: ${{ github.head_ref }}
1412

1513
- name: Run PHP CS Fixer
1614
uses: docker://oskarstark/php-cs-fixer-ga
1715
with:
18-
args: --config=.php_cs.dist --allow-risky=yes
16+
args: --config=.php-cs-fixer.dist.php --allow-risky=yes
1917

2018
- name: Commit changes
2119
uses: stefanzweifel/git-auto-commit-action@v4

.github/workflows/psalm.yml

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Psalm
22

33
on:
4+
pull_request:
5+
paths:
6+
- '**.php'
7+
- 'psalm.xml.dist'
48
push:
59
paths:
610
- '**.php'

.github/workflows/run-tests.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@ jobs:
1313
fail-fast: true
1414
matrix:
1515
os: [ubuntu-latest, windows-latest]
16-
php: [8.0]
17-
laravel: [8.*]
16+
php: [8.0, 8.1]
17+
laravel: [8.*, 9.*]
1818
stability: [prefer-lowest, prefer-stable]
1919
include:
2020
- laravel: 8.*
21-
testbench: ^6.6
21+
testbench: ^6.24
22+
- laravel: 9.*
23+
testbench: ^7.0
2224

2325
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2426

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
.php_cs
2-
.php_cs.cache
1+
.php-cs-fixer.php
2+
.php-cs-fixer.cache
33
.phpunit.result.cache
44
build
55
composer.lock

.php_cs.dist .php-cs-fixer.dist.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
->ignoreDotFiles(true)
1414
->ignoreVCS(true);
1515

16-
return PhpCsFixer\Config::create()
16+
return (new PhpCsFixer\Config())
1717
->setRules([
1818
'@PSR2' => true,
1919
'array_syntax' => ['syntax' => 'short'],
20-
'ordered_imports' => ['sortAlgorithm' => 'alpha'],
20+
'ordered_imports' => ['sort_algorithm' => 'alpha'],
2121
'no_unused_imports' => true,
2222
'not_operator_with_successor_space' => true,
23-
'trailing_comma_in_multiline_array' => true,
23+
'trailing_comma_in_multiline' => true,
2424
'phpdoc_scalar' => true,
2525
'unary_operator_spaces' => true,
2626
'binary_operator_spaces' => true,
@@ -31,7 +31,7 @@
3131
'phpdoc_var_without_name' => true,
3232
'class_attributes_separation' => [
3333
'elements' => [
34-
'method',
34+
'method' => 'one',
3535
],
3636
],
3737
'method_argument_space' => [

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@
2323
],
2424
"require": {
2525
"php": "^8.0",
26-
"illuminate/contracts": "^8.0",
26+
"illuminate/contracts": "^8.0|^9.0",
2727
"spatie/data-transfer-object": "^3.0",
2828
"thecodingmachine/safe": "^1.3"
2929
},
3030
"require-dev": {
3131
"brianium/paratest": "^6.2",
3232
"mockery/mockery": "^1.4",
33-
"nunomaduro/collision": "^5.3",
34-
"orchestra/testbench": "^6.15",
33+
"nunomaduro/collision": "^5.3|^6.0",
34+
"orchestra/testbench": "^6.15|^7.0",
3535
"phpunit/phpunit": "^9.5",
3636
"vimeo/psalm": "^4.4"
3737
},

0 commit comments

Comments
 (0)