Skip to content

Commit 5b52114

Browse files
authored
Merge pull request #8 from joelbladt/2.x
2.x
2 parents a21482e + 3056ef6 commit 5b52114

File tree

7 files changed

+738
-504
lines changed

7 files changed

+738
-504
lines changed

.github/workflows/tests.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ jobs:
2828
matrix:
2929
php: [8.2, 8.3]
3030
phpunit: ['11.0', '11.4']
31-
phpstan: ['1.12']
32-
paratest: ['7.6']
33-
larastan: ['2.5', '2.9']
31+
phpstan: ['2.1']
32+
paratest: ['7.6', '7.8']
33+
larastan: ['v3.1']
3434

3535
name: PHP ${{ matrix.php }} - PHPUnit ${{ matrix.phpunit }} - with Paratest ${{ matrix.paratest }} - PHPStan ${{ matrix.phpstan }} - Larastan ${{ matrix.larastan }}
3636

app/Http/Resources/BaseResourceCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Illuminate\Pagination\LengthAwarePaginator;
88

99
/**
10-
* @property LengthAwarePaginator $resource
10+
* @property LengthAwarePaginator<self> $resource
1111
*/
1212
class BaseResourceCollection extends ResourceCollection
1313
{

app/Models/Book.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Book extends Model
3535
/**
3636
* The attributes that are mass assignable.
3737
*
38-
* @var array<int, string>
38+
* @var list<string>
3939
*/
4040
protected $fillable = [
4141
'title',

app/Models/Publisher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Publisher extends Model
3737
/**
3838
* The attributes that are mass assignable.
3939
*
40-
* @var array<int, string>
40+
* @var list<string>
4141
*/
4242
protected $fillable = [
4343
'name',

app/Models/User.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class User extends Authenticatable
2020
/**
2121
* The attributes that are mass assignable.
2222
*
23-
* @var array<int, string>
23+
* @var list<string>
2424
*/
2525
protected $fillable = [
2626
'name',
@@ -31,7 +31,7 @@ class User extends Authenticatable
3131
/**
3232
* The attributes that should be hidden for serialization.
3333
*
34-
* @var array<int, string>
34+
* @var list<string>
3535
*/
3636
protected $hidden = [
3737
'password',

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77
"require": {
88
"php": "^8.2",
99
"darkaonline/l5-swagger": "^8.6",
10-
"laravel/framework": "^11.9",
10+
"laravel/framework": "^12.0",
1111
"laravel/tinker": "^2.9"
1212
},
1313
"require-dev": {
1414
"brianium/paratest": "^7.6",
1515
"fakerphp/faker": "^1.23",
16-
"larastan/larastan": "^2.9",
16+
"larastan/larastan": "^v3.1",
1717
"laravel/pail": "^1.1",
1818
"laravel/pint": "^1.13",
1919
"laravel/sail": "^1.26",
2020
"mockery/mockery": "^1.6",
2121
"nunomaduro/collision": "^8.1",
22-
"phpstan/phpstan": "^1.12",
22+
"phpstan/phpstan": "^2.1",
2323
"phpunit/phpunit": "^11.4"
2424
},
2525
"autoload": {

0 commit comments

Comments
 (0)