Update phpstan to latest version

This commit is contained in:
itismadness
2023-12-25 21:20:57 +00:00
parent bffbee66c8
commit 487fe44f8e
5 changed files with 33 additions and 17 deletions

View File

@@ -24,7 +24,7 @@
},
"bin": ["bin/logchecker"],
"require-dev": {
"phpstan/phpstan": "^0.12",
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^9.6",
"squizlabs/php_codesniffer": "^3.8.0",
"brainmaestro/composer-git-hooks": "^2.8"

32
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": "bf56ce773b43895aee3bbca6896deebd",
"content-hash": "8749a8b748b96c7746990d2d20fecb51",
"packages": [
{
"name": "psr/container",
@@ -1395,20 +1395,20 @@
},
{
"name": "phpstan/phpstan",
"version": "0.12.43",
"version": "1.10.50",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpstan.git",
"reference": "54221b44766cb4bdfe40d1828d5bba5dd79c38c6"
"reference": "06a98513ac72c03e8366b5a0cb00750b487032e4"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/54221b44766cb4bdfe40d1828d5bba5dd79c38c6",
"reference": "54221b44766cb4bdfe40d1828d5bba5dd79c38c6",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/06a98513ac72c03e8366b5a0cb00750b487032e4",
"reference": "06a98513ac72c03e8366b5a0cb00750b487032e4",
"shasum": ""
},
"require": {
"php": "^7.1|^8.0"
"php": "^7.2|^8.0"
},
"conflict": {
"phpstan/phpstan-shim": "*"
@@ -1418,11 +1418,6 @@
"phpstan.phar"
],
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "0.12-dev"
}
},
"autoload": {
"files": [
"bootstrap.php"
@@ -1433,9 +1428,16 @@
"MIT"
],
"description": "PHPStan - PHP Static Analysis Tool",
"keywords": [
"dev",
"static analysis"
],
"support": {
"docs": "https://phpstan.org/user-guide/getting-started",
"forum": "https://github.com/phpstan/phpstan/discussions",
"issues": "https://github.com/phpstan/phpstan/issues",
"source": "https://github.com/phpstan/phpstan/tree/0.12.43"
"security": "https://github.com/phpstan/phpstan/security/policy",
"source": "https://github.com/phpstan/phpstan-src"
},
"funding": [
{
@@ -1443,15 +1445,15 @@
"type": "github"
},
{
"url": "https://www.patreon.com/phpstan",
"type": "patreon"
"url": "https://github.com/phpstan",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/phpstan/phpstan",
"type": "tidelift"
}
],
"time": "2020-09-19T21:19:38+00:00"
"time": "2023-12-13T10:59:42+00:00"
},
{
"name": "phpunit/php-code-coverage",

11
phpstan-baseline.neon Normal file
View File

@@ -0,0 +1,11 @@
parameters:
ignoreErrors:
-
message: "#^Property OrpheusNET\\\\Logchecker\\\\Logchecker\\:\\:\\$ARSummary is never read, only written\\.$#"
count: 1
path: src/Logchecker.php
-
message: "#^Property OrpheusNET\\\\Logchecker\\\\Logchecker\\:\\:\\$ARTracks is never read, only written\\.$#"
count: 1
path: src/Logchecker.php

View File

@@ -1,2 +1,5 @@
includes:
- phpstan-baseline.neon
parameters:
level: 5

View File

@@ -13,7 +13,7 @@ use Symfony\Component\Process\Process;
*/
class Chardet
{
private static $executable = null;
protected static $executable = null;
private $executables = [
'cchardetect',
'chardetect',