update: phpstan

To help checking for new php 8.5 compatibility
This commit is contained in:
Roardom
2025-12-02 05:50:53 +00:00
parent 375a6fced4
commit 52af17d437
3 changed files with 66 additions and 11 deletions

View File

@@ -56,7 +56,7 @@
"pestphp/pest": "^4.0.4",
"pestphp/pest-plugin-laravel": "^4.0.0",
"pestphp/pest-plugin-livewire": "^4.0.1",
"phpstan/phpstan": "^2.1.22",
"phpstan/phpstan": "^2.1.32",
"phpunit/phpunit": "^12.3.7",
"ryoluo/sail-ssl": "^1.4.0",
"spatie/laravel-ignition": "^2.9.1",

15
composer.lock generated
View File

@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "584c406149cfba22c7fc31de2de730d9",
"content-hash": "870e91300f59189b99e27297e921015d",
"packages": [
{
"name": "assada/laravel-achievements",
@@ -10988,16 +10988,11 @@
},
{
"name": "phpstan/phpstan",
"version": "2.1.22",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpstan.git",
"reference": "41600c8379eb5aee63e9413fe9e97273e25d57e4"
},
"version": "2.1.32",
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/41600c8379eb5aee63e9413fe9e97273e25d57e4",
"reference": "41600c8379eb5aee63e9413fe9e97273e25d57e4",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/e126cad1e30a99b137b8ed75a85a676450ebb227",
"reference": "e126cad1e30a99b137b8ed75a85a676450ebb227",
"shasum": ""
},
"require": {
@@ -11042,7 +11037,7 @@
"type": "github"
}
],
"time": "2025-08-04T19:17:37+00:00"
"time": "2025-11-11T15:18:17+00:00"
},
{
"name": "phpunit/php-code-coverage",

View File

@@ -42,6 +42,18 @@ parameters:
count: 2
path: app/Console/Commands/AutoGroup.php
-
message: '#^Strict comparison using \=\=\= between int and null will always evaluate to false\.$#'
identifier: identical.alwaysFalse
count: 5
path: app/Console/Commands/AutoGroup.php
-
message: '#^Strict comparison using \=\=\= between string and null will always evaluate to false\.$#'
identifier: identical.alwaysFalse
count: 1
path: app/Console/Commands/AutoGroup.php
-
message: '#^Anonymous function should return Illuminate\\Database\\Eloquent\\Builder\<Illuminate\\Database\\Eloquent\\Model\> but returns Illuminate\\Database\\Eloquent\\Builder\<App\\Models\\Torrent\>\.$#'
identifier: return.type
@@ -210,6 +222,12 @@ parameters:
count: 1
path: app/Helpers/CacheUser.php
-
message: '#^Possibly invalid array key type float\|int\.$#'
identifier: offsetAccess.invalidOffset
count: 1
path: app/Helpers/SystemInformation.php
-
message: '#^Method App\\Http\\Controllers\\API\\BaseController\:\:sendError\(\) has parameter \$code with no type specified\.$#'
identifier: missingType.parameter
@@ -282,6 +300,12 @@ parameters:
count: 3
path: app/Http/Controllers/RequestController.php
-
message: '#^Strict comparison using \!\=\= between int and null will always evaluate to true\.$#'
identifier: notIdentical.alwaysTrue
count: 2
path: app/Http/Controllers/RequestController.php
-
message: '#^Anonymous function should return Illuminate\\Database\\Eloquent\\Builder\<Illuminate\\Database\\Eloquent\\Model\> but returns Illuminate\\Database\\Eloquent\\Builder\<App\\Models\\Group\>\.$#'
identifier: return.type
@@ -306,6 +330,12 @@ parameters:
count: 1
path: app/Http/Controllers/Staff/DonationController.php
-
message: '#^Strict comparison using \=\=\= between int and null will always evaluate to false\.$#'
identifier: identical.alwaysFalse
count: 1
path: app/Http/Controllers/Staff/DonationController.php
-
message: '#^Access to an undefined property App\\Models\\Group\|Illuminate\\Database\\Eloquent\\Collection\<int, App\\Models\\Group\>\:\:\$level\.$#'
identifier: property.notFound
@@ -336,6 +366,12 @@ parameters:
count: 1
path: app/Http/Controllers/TorrentController.php
-
message: '#^Strict comparison using \!\=\= between int and null will always evaluate to true\.$#'
identifier: notIdentical.alwaysTrue
count: 2
path: app/Http/Controllers/TorrentController.php
-
message: '#^Binary operation "\+" between string\|null and int results in an error\.$#'
identifier: binaryOp.invalid
@@ -420,6 +456,24 @@ parameters:
count: 1
path: app/Http/Livewire/MissingMediaSearch.php
-
message: '#^Offset ''game'' might not exist on array\{movie\?\: non\-empty\-array\<int, array\{Movie\: non\-empty\-array\<string, non\-empty\-list\<App\\Models\\Torrent\>\>, category_id\: int\}\>, tv\?\: non\-empty\-array\<int, array\{''Complete Pack''\?\: non\-empty\-array\<string, non\-empty\-list\<App\\Models\\Torrent\>\>, Specials\?\: non\-empty\-array\<string, array\<string, non\-empty\-list\<App\\Models\\Torrent\>\>\>, Seasons\?\: non\-empty\-array\<string, array\{''Season Pack''\?\: non\-empty\-array\<string, non\-empty\-list\<App\\Models\\Torrent\>\>, Episodes\?\: non\-empty\-array\<string, array\<string, non\-empty\-list\<App\\Models\\Torrent\>\>\>\}\>, category_id\: int\}\>, game\?\: non\-empty\-array\<int, array\{Game\: non\-empty\-array\<string, non\-empty\-list\<App\\Models\\Torrent\>\>, category_id\: int\}\>\}\.$#'
identifier: offsetAccess.notFound
count: 1
path: app/Http/Livewire/SimilarTorrent.php
-
message: '#^Offset ''movie'' might not exist on array\{movie\?\: non\-empty\-array\<int, array\{Movie\: non\-empty\-array\<string, non\-empty\-list\<App\\Models\\Torrent\>\>, category_id\: int\}\>, tv\?\: non\-empty\-array\<int, array\{''Complete Pack''\?\: non\-empty\-array\<string, non\-empty\-list\<App\\Models\\Torrent\>\>, Specials\?\: non\-empty\-array\<string, array\<string, non\-empty\-list\<App\\Models\\Torrent\>\>\>, Seasons\?\: non\-empty\-array\<string, array\{''Season Pack''\?\: non\-empty\-array\<string, non\-empty\-list\<App\\Models\\Torrent\>\>, Episodes\?\: non\-empty\-array\<string, array\<string, non\-empty\-list\<App\\Models\\Torrent\>\>\>\}\>, category_id\: int\}\>, game\?\: non\-empty\-array\<int, array\{Game\: non\-empty\-array\<string, non\-empty\-list\<App\\Models\\Torrent\>\>, category_id\: int\}\>\}\.$#'
identifier: offsetAccess.notFound
count: 1
path: app/Http/Livewire/SimilarTorrent.php
-
message: '#^Offset ''tv'' might not exist on array\{movie\?\: non\-empty\-array\<int, array\{Movie\: non\-empty\-array\<string, non\-empty\-list\<App\\Models\\Torrent\>\>, category_id\: int\}\>, tv\?\: non\-empty\-array\<int, array\{''Complete Pack''\?\: non\-empty\-array\<string, non\-empty\-list\<App\\Models\\Torrent\>\>, Specials\?\: non\-empty\-array\<string, array\<string, non\-empty\-list\<App\\Models\\Torrent\>\>\>, Seasons\?\: non\-empty\-array\<string, array\{''Season Pack''\?\: non\-empty\-array\<string, non\-empty\-list\<App\\Models\\Torrent\>\>, Episodes\?\: non\-empty\-array\<string, array\<string, non\-empty\-list\<App\\Models\\Torrent\>\>\>\}\>, category_id\: int\}\>, game\?\: non\-empty\-array\<int, array\{Game\: non\-empty\-array\<string, non\-empty\-list\<App\\Models\\Torrent\>\>, category_id\: int\}\>\}\.$#'
identifier: offsetAccess.notFound
count: 1
path: app/Http/Livewire/SimilarTorrent.php
-
message: '#^Anonymous function should return Illuminate\\Database\\Eloquent\\Builder\<Illuminate\\Database\\Eloquent\\Model\> but returns Illuminate\\Database\\Eloquent\\Builder\<App\\Models\\Group\>\.$#'
identifier: return.type
@@ -540,6 +594,12 @@ parameters:
count: 1
path: app/Models/User.php
-
message: '#^Strict comparison using \!\=\= between int and null will always evaluate to true\.$#'
identifier: notIdentical.alwaysTrue
count: 1
path: app/Notifications/NewComment.php
-
message: '#^Cannot access offset ''validator'' on Illuminate\\Contracts\\Foundation\\Application\.$#'
identifier: offsetAccess.nonOffsetAccessible