diff --git a/composer.json b/composer.json index 7ac97bb..4bc0e58 100644 --- a/composer.json +++ b/composer.json @@ -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" diff --git a/composer.lock b/composer.lock index b065871..bcd7689 100644 --- a/composer.lock +++ b/composer.lock @@ -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", diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon new file mode 100644 index 0000000..553c9ec --- /dev/null +++ b/phpstan-baseline.neon @@ -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 diff --git a/phpstan.neon b/phpstan.neon index a2b3ad8..706ed0a 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,2 +1,5 @@ +includes: + - phpstan-baseline.neon + parameters: level: 5 diff --git a/src/Chardet.php b/src/Chardet.php index e477045..4a576e9 100644 --- a/src/Chardet.php +++ b/src/Chardet.php @@ -13,7 +13,7 @@ use Symfony\Component\Process\Process; */ class Chardet { - private static $executable = null; + protected static $executable = null; private $executables = [ 'cchardetect', 'chardetect',