mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-06 20:07:09 +00:00
Bump phpstan/phpstan from 1.11.2 to 1.11.8 in the development-patch-updates group (#6410)
This commit is contained in:
parent
df4ada81e5
commit
237677c028
@ -52,7 +52,7 @@
|
|||||||
"symfony/filesystem": "~6.4.0"
|
"symfony/filesystem": "~6.4.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpstan/phpstan": "1.11.2",
|
"phpstan/phpstan": "1.11.8",
|
||||||
"phpstan/phpstan-phpunit": "^1.1.0",
|
"phpstan/phpstan-phpunit": "^1.1.0",
|
||||||
"phpstan/phpstan-strict-rules": "^1.2.0",
|
"phpstan/phpstan-strict-rules": "^1.2.0",
|
||||||
"phpunit/phpunit": "^10.5.24"
|
"phpunit/phpunit": "^10.5.24"
|
||||||
|
12
composer.lock
generated
12
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": "d459605b85f247204988a879982aab50",
|
"content-hash": "3ee9506c0be6b8b202d790824344e79c",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "adhocore/json-comment",
|
"name": "adhocore/json-comment",
|
||||||
@ -1389,16 +1389,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpstan/phpstan",
|
"name": "phpstan/phpstan",
|
||||||
"version": "1.11.2",
|
"version": "1.11.8",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/phpstan/phpstan.git",
|
"url": "https://github.com/phpstan/phpstan.git",
|
||||||
"reference": "0d5d4294a70deb7547db655c47685d680e39cfec"
|
"reference": "6adbd118e6c0515dd2f36b06cde1d6da40f1b8ec"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/0d5d4294a70deb7547db655c47685d680e39cfec",
|
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/6adbd118e6c0515dd2f36b06cde1d6da40f1b8ec",
|
||||||
"reference": "0d5d4294a70deb7547db655c47685d680e39cfec",
|
"reference": "6adbd118e6c0515dd2f36b06cde1d6da40f1b8ec",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@ -1443,7 +1443,7 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2024-05-24T13:23:04+00:00"
|
"time": "2024-07-24T07:01:22+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpstan/phpstan-phpunit",
|
"name": "phpstan/phpstan-phpunit",
|
||||||
|
@ -60,6 +60,8 @@ interface ResourcePack{
|
|||||||
* @param int $start Offset to start reading the chunk from
|
* @param int $start Offset to start reading the chunk from
|
||||||
* @param int $length Maximum length of data to return.
|
* @param int $length Maximum length of data to return.
|
||||||
*
|
*
|
||||||
|
* @phpstan-param positive-int $length
|
||||||
|
*
|
||||||
* @return string byte-array
|
* @return string byte-array
|
||||||
* @throws \InvalidArgumentException if the chunk does not exist
|
* @throws \InvalidArgumentException if the chunk does not exist
|
||||||
*/
|
*/
|
||||||
|
@ -154,6 +154,9 @@ class ZippedResourcePack implements ResourcePack{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function getPackChunk(int $start, int $length) : string{
|
public function getPackChunk(int $start, int $length) : string{
|
||||||
|
if($length < 1){
|
||||||
|
throw new \InvalidArgumentException("Pack length must be positive");
|
||||||
|
}
|
||||||
fseek($this->fileResource, $start);
|
fseek($this->fileResource, $start);
|
||||||
if(feof($this->fileResource)){
|
if(feof($this->fileResource)){
|
||||||
throw new \InvalidArgumentException("Requested a resource pack chunk with invalid start offset");
|
throw new \InvalidArgumentException("Requested a resource pack chunk with invalid start offset");
|
||||||
|
@ -27,6 +27,7 @@ use function range;
|
|||||||
|
|
||||||
class RegionLocationTableEntry{
|
class RegionLocationTableEntry{
|
||||||
private int $firstSector;
|
private int $firstSector;
|
||||||
|
/** @phpstan-var positive-int */
|
||||||
private int $sectorCount;
|
private int $sectorCount;
|
||||||
private int $timestamp;
|
private int $timestamp;
|
||||||
|
|
||||||
@ -61,6 +62,9 @@ class RegionLocationTableEntry{
|
|||||||
return range($this->getFirstSector(), $this->getLastSector());
|
return range($this->getFirstSector(), $this->getLastSector());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @phpstan-return positive-int
|
||||||
|
*/
|
||||||
public function getSectorCount() : int{
|
public function getSectorCount() : int{
|
||||||
return $this->sectorCount;
|
return $this->sectorCount;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user