mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-23 11:26:37 +00:00
phpstan 1.5.1
This commit is contained in:
parent
8ea106c091
commit
194cb1fb84
@ -53,8 +53,8 @@
|
|||||||
"webmozart/path-util": "^2.3"
|
"webmozart/path-util": "^2.3"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpstan/phpstan": "1.4.10",
|
"phpstan/phpstan": "1.5.1",
|
||||||
"phpstan/phpstan-phpunit": "^1.0.0",
|
"phpstan/phpstan-phpunit": "^1.1.0",
|
||||||
"phpstan/phpstan-strict-rules": "^1.0.0",
|
"phpstan/phpstan-strict-rules": "^1.0.0",
|
||||||
"phpunit/phpunit": "^9.2"
|
"phpunit/phpunit": "^9.2"
|
||||||
},
|
},
|
||||||
|
35
composer.lock
generated
35
composer.lock
generated
@ -4,7 +4,7 @@
|
|||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "f3800582ad388d0ec2a95dffc3742d8e",
|
"content-hash": "fca583271e9a38b30ef924da651f7a20",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "adhocore/json-comment",
|
"name": "adhocore/json-comment",
|
||||||
@ -1906,20 +1906,20 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpstan/phpstan",
|
"name": "phpstan/phpstan",
|
||||||
"version": "1.4.10",
|
"version": "1.5.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/phpstan/phpstan.git",
|
"url": "https://github.com/phpstan/phpstan.git",
|
||||||
"reference": "898c479c39caa727bedf4311dd294a8f4e250e72"
|
"reference": "cc67578d9afd0f5f2545067285613d7a529aefac"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/898c479c39caa727bedf4311dd294a8f4e250e72",
|
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/cc67578d9afd0f5f2545067285613d7a529aefac",
|
||||||
"reference": "898c479c39caa727bedf4311dd294a8f4e250e72",
|
"reference": "cc67578d9afd0f5f2545067285613d7a529aefac",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^7.1|^8.0"
|
"php": "^7.2|^8.0"
|
||||||
},
|
},
|
||||||
"conflict": {
|
"conflict": {
|
||||||
"phpstan/phpstan-shim": "*"
|
"phpstan/phpstan-shim": "*"
|
||||||
@ -1941,7 +1941,7 @@
|
|||||||
"description": "PHPStan - PHP Static Analysis Tool",
|
"description": "PHPStan - PHP Static Analysis Tool",
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/phpstan/phpstan/issues",
|
"issues": "https://github.com/phpstan/phpstan/issues",
|
||||||
"source": "https://github.com/phpstan/phpstan/tree/1.4.10"
|
"source": "https://github.com/phpstan/phpstan/tree/1.5.1"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@ -1961,25 +1961,25 @@
|
|||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2022-03-14T10:25:45+00:00"
|
"time": "2022-03-28T15:34:48+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpstan/phpstan-phpunit",
|
"name": "phpstan/phpstan-phpunit",
|
||||||
"version": "1.0.0",
|
"version": "1.1.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/phpstan/phpstan-phpunit.git",
|
"url": "https://github.com/phpstan/phpstan-phpunit.git",
|
||||||
"reference": "9eb88c9f689003a8a2a5ae9e010338ee94dc39b3"
|
"reference": "09133ce914f1388a8bb8c7f8573aaa3723cff52a"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/9eb88c9f689003a8a2a5ae9e010338ee94dc39b3",
|
"url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/09133ce914f1388a8bb8c7f8573aaa3723cff52a",
|
||||||
"reference": "9eb88c9f689003a8a2a5ae9e010338ee94dc39b3",
|
"reference": "09133ce914f1388a8bb8c7f8573aaa3723cff52a",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^7.1 || ^8.0",
|
"php": "^7.2 || ^8.0",
|
||||||
"phpstan/phpstan": "^1.0"
|
"phpstan/phpstan": "^1.5.0"
|
||||||
},
|
},
|
||||||
"conflict": {
|
"conflict": {
|
||||||
"phpunit/phpunit": "<7.0"
|
"phpunit/phpunit": "<7.0"
|
||||||
@ -1992,9 +1992,6 @@
|
|||||||
},
|
},
|
||||||
"type": "phpstan-extension",
|
"type": "phpstan-extension",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
|
||||||
"dev-master": "1.0-dev"
|
|
||||||
},
|
|
||||||
"phpstan": {
|
"phpstan": {
|
||||||
"includes": [
|
"includes": [
|
||||||
"extension.neon",
|
"extension.neon",
|
||||||
@ -2014,9 +2011,9 @@
|
|||||||
"description": "PHPUnit extensions and rules for PHPStan",
|
"description": "PHPUnit extensions and rules for PHPStan",
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/phpstan/phpstan-phpunit/issues",
|
"issues": "https://github.com/phpstan/phpstan-phpunit/issues",
|
||||||
"source": "https://github.com/phpstan/phpstan-phpunit/tree/1.0.0"
|
"source": "https://github.com/phpstan/phpstan-phpunit/tree/1.1.0"
|
||||||
},
|
},
|
||||||
"time": "2021-10-14T08:03:54+00:00"
|
"time": "2022-03-28T09:20:49+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpstan/phpstan-strict-rules",
|
"name": "phpstan/phpstan-strict-rules",
|
||||||
|
@ -64,6 +64,9 @@ class ThreadManager extends \Volatile{
|
|||||||
*/
|
*/
|
||||||
public function getAll() : array{
|
public function getAll() : array{
|
||||||
$array = [];
|
$array = [];
|
||||||
|
/**
|
||||||
|
* @var Worker|Thread $thread
|
||||||
|
*/
|
||||||
foreach($this as $key => $thread){
|
foreach($this as $key => $thread){
|
||||||
$array[$key] = $thread;
|
$array[$key] = $thread;
|
||||||
}
|
}
|
||||||
|
@ -220,7 +220,6 @@ class Internet{
|
|||||||
}
|
}
|
||||||
if(!is_string($raw)) throw new AssumptionFailedError("curl_exec() should return string|false when CURLOPT_RETURNTRANSFER is set");
|
if(!is_string($raw)) throw new AssumptionFailedError("curl_exec() should return string|false when CURLOPT_RETURNTRANSFER is set");
|
||||||
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
|
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
|
||||||
if(!is_int($httpCode)) throw new AssumptionFailedError("curl_getinfo(CURLINFO_HTTP_CODE) always returns int");
|
|
||||||
$headerSize = curl_getinfo($ch, CURLINFO_HEADER_SIZE);
|
$headerSize = curl_getinfo($ch, CURLINFO_HEADER_SIZE);
|
||||||
$rawHeaders = substr($raw, 0, $headerSize);
|
$rawHeaders = substr($raw, 0, $headerSize);
|
||||||
$body = substr($raw, $headerSize);
|
$body = substr($raw, $headerSize);
|
||||||
|
@ -905,11 +905,6 @@ parameters:
|
|||||||
count: 1
|
count: 1
|
||||||
path: ../../../src/scheduler/TaskScheduler.php
|
path: ../../../src/scheduler/TaskScheduler.php
|
||||||
|
|
||||||
-
|
|
||||||
message: "#^Method pocketmine\\\\thread\\\\ThreadManager\\:\\:getAll\\(\\) should return array\\<pocketmine\\\\thread\\\\Thread\\|pocketmine\\\\thread\\\\Worker\\> but returns array\\.$#"
|
|
||||||
count: 1
|
|
||||||
path: ../../../src/thread/ThreadManager.php
|
|
||||||
|
|
||||||
-
|
-
|
||||||
message: "#^Cannot access offset string on mixed\\.$#"
|
message: "#^Cannot access offset string on mixed\\.$#"
|
||||||
count: 3
|
count: 3
|
||||||
@ -925,16 +920,6 @@ parameters:
|
|||||||
count: 1
|
count: 1
|
||||||
path: ../../../src/utils/Config.php
|
path: ../../../src/utils/Config.php
|
||||||
|
|
||||||
-
|
|
||||||
message: "#^Parameter \\#2 \\$offset of function substr expects int, mixed given\\.$#"
|
|
||||||
count: 1
|
|
||||||
path: ../../../src/utils/Internet.php
|
|
||||||
|
|
||||||
-
|
|
||||||
message: "#^Parameter \\#3 \\$length of function substr expects int\\|null, mixed given\\.$#"
|
|
||||||
count: 1
|
|
||||||
path: ../../../src/utils/Internet.php
|
|
||||||
|
|
||||||
-
|
-
|
||||||
message: "#^Parameter \\#1 \\$string of function trim expects string, string\\|false given\\.$#"
|
message: "#^Parameter \\#1 \\$string of function trim expects string, string\\|false given\\.$#"
|
||||||
count: 1
|
count: 1
|
||||||
|
@ -85,8 +85,3 @@ parameters:
|
|||||||
count: 2
|
count: 2
|
||||||
path: ../../../src/world/format/io/region/RegionLoader.php
|
path: ../../../src/world/format/io/region/RegionLoader.php
|
||||||
|
|
||||||
-
|
|
||||||
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertNotSame\\(\\) with arguments stdClass, stdClass and 'Cloning registry…' will always evaluate to false\\.$#"
|
|
||||||
count: 1
|
|
||||||
path: ../../phpunit/utils/CloningRegistryTraitTest.php
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user