Dylan K. Taylor
1cc7027f92
plugin: populate missing return type information
2020-01-19 17:09:33 +00:00
Dylan K. Taylor
8776b71d63
tile: populate missing return type information
2020-01-19 17:08:40 +00:00
Dylan K. Taylor
0b9d0f3cdc
utils: populate missing return type information
2020-01-19 17:07:48 +00:00
Dylan K. Taylor
e419d76367
metadata: populate missing return type information
2020-01-19 17:06:48 +00:00
Dylan K. Taylor
36cde9f352
inventory: populate missing return type information
2020-01-19 17:05:31 +00:00
Dylan K. Taylor
05c602a044
event: populate missing return type information
2020-01-19 17:05:01 +00:00
Dylan K. Taylor
0db7e57a15
lang: populate missing return type information
2020-01-19 17:04:25 +00:00
Dylan K. Taylor
205e47c0c4
entity: populate missing return type information
2020-01-19 17:03:54 +00:00
Dylan K. Taylor
e328d00cca
command: populate missing return type info
2020-01-19 17:02:55 +00:00
Dylan K. Taylor
ccbcc14600
Block: populate missing return type info
2020-01-19 17:02:03 +00:00
Dylan K. Taylor
e544bc0d4b
Item: added missing return type info for clearCustomBlockData()
2020-01-18 20:11:47 +00:00
Dylan K. Taylor
fd27227cc7
Item: fix @return annotations for fluent methods (needed for correct auto complete)
2020-01-18 20:10:46 +00:00
Dylan K. Taylor
b42966f61b
network: explicitly specify @return void
2020-01-18 19:35:01 +00:00
Dylan K. Taylor
ca86ec2ec2
Network: added missing return type information for getUpload() and getDownload()
2020-01-18 19:33:27 +00:00
Dylan K. Taylor
97b6183404
PermissionManager: add native return types to private functions
2020-01-18 17:59:10 +00:00
Dylan K. Taylor
0587d03c03
PluginDescription: add native return types to private functions
2020-01-18 17:57:24 +00:00
Dylan K. Taylor
c7f1b605f2
PluginBase: remove useless duplicate doc comment from onLoad() stub
2020-01-18 17:56:44 +00:00
Dylan K. Taylor
f069df65a8
PermissibleBase: added native returm types to private functions
2020-01-18 17:54:13 +00:00
Dylan K. Taylor
1e624e7bb9
Attribute: add missing @return $this annotations
2020-01-18 17:50:58 +00:00
Dylan K. Taylor
f16a530849
MainLogger: add native return types to private functions
2020-01-18 17:47:38 +00:00
Dylan K. Taylor
7137b8a8a4
Config: added native void return types to private functions
2020-01-18 17:46:25 +00:00
Dylan K. Taylor
ab57914322
CraftingDataPacket: added native return typehints to private methods
2020-01-18 17:45:15 +00:00
Dylan K. Taylor
260869c0d5
Position: populate missing return type information for fromObject()
2020-01-18 17:44:14 +00:00
Dylan K. Taylor
9135877da1
SetupWizard: add native void typehints to private methods
2020-01-18 17:39:06 +00:00
Dylan K. Taylor
07cb603231
Liquid: add missing return type to getFluidHeightPercent()
2020-01-17 13:58:54 +00:00
Dylan K. Taylor
f59094e6d6
Fence: add missing return type to canConnect()
2020-01-17 13:58:29 +00:00
Dylan K. Taylor
d8acae5495
Door: add missing return type to getFullDamage()
2020-01-17 13:57:56 +00:00
Dylan K. Taylor
239fe909be
CobblestoneWall: add missing return type for canConnect()
2020-01-17 13:57:29 +00:00
Dylan K. Taylor
c22576a266
CrashDump: add void native return types to private methods
2020-01-17 13:55:38 +00:00
Dylan K. Taylor
bac788fd00
Timezone: add missing return type for detectSystemTimezone()
2020-01-15 20:18:35 +00:00
Dylan K. Taylor
f6d96c5827
DataPacket: clean() returns $this, not void
2020-01-14 17:30:48 +00:00
Dylan K. Taylor
b1458db47b
Revert "CraftingDataPacket: fixed trying to return void result of parent function"
...
This reverts commit e12ecaf62960dfc71871520e52787589447346ee.
2020-01-14 17:16:17 +00:00
Dylan K. Taylor
2d2c9379cd
DataPacket: apply @return void annotations to make phpstan happy
...
this eliminates 250+ errors on level 6.
2020-01-14 15:39:07 +00:00
Dylan K. Taylor
3400771770
DataPacket: add missing return type info for pid()
2020-01-14 15:38:24 +00:00
Dylan K. Taylor
e12ecaf629
CraftingDataPacket: fixed trying to return void result of parent function
2020-01-14 15:37:06 +00:00
Dylan K. Taylor
1303cbfe02
UUID: add some missing return type annotations
2020-01-14 15:35:46 +00:00
Dylan K. Taylor
ad4a211cba
Color: add missing return type annotation for fromABGR()
2020-01-14 15:35:14 +00:00
Dylan K. Taylor
d1e56c4611
Location: add missing return types for getYaw() and getPitch()
2020-01-14 15:34:40 +00:00
Dylan K. Taylor
d9bbab54f4
Entity: fixing position and velocity sync on start/stop movement, closes #3133
...
the delta for velocity sync is WAYYYYYY too big, but that's a task for another commit.
2020-01-14 13:08:38 +00:00
brandon15811
07cf4eb7a9
Revert "Create .sonarcloud.properties"
...
This reverts commit 50a76633694ed6ddaaa1eb364041c003ad4de441.
2020-01-13 21:46:38 -06:00
brandon15811
50a7663369
Create .sonarcloud.properties
2020-01-13 21:31:36 -06:00
Dylan K. Taylor
651ef500a3
Make pocketmine\PATH and pocketmine\RESOURCE_PATH always available
...
these are non-dependent on environment, so they can be determined with no external input.
This fixes 2 PHPStan issues, fixes some code that couldn't run outside of PM, and makes it easier to write code that depends on PM.
2020-01-13 10:55:54 +00:00
Dylan K. Taylor
30f2e75278
phpstan 0.12.5
2020-01-12 16:57:43 +00:00
Dylan K. Taylor
2cfc25b4f8
phpstan: enable checkGenericClassInNonGenericObjectType
2020-01-11 23:04:16 +00:00
Dylan K. Taylor
5bded9cff8
AttributeMap: add phpstan generic parameters for ArrayAccess
2020-01-11 23:03:21 +00:00
Dylan K. Taylor
5816ff85ba
don't depend on phpstan 0.12.4 phpdoc inheriting
...
this causes build failure because the parameter names are different to
the base class.
2020-01-11 22:08:16 +00:00
Dylan K. Taylor
8f7d8347ee
update pocketmine/spl dependency
2020-01-11 22:05:37 +00:00
Dylan K. Taylor
3614d9a78d
phpstan: enable MissingMethodParameterTypehintRule
2020-01-11 21:54:42 +00:00
Dylan K. Taylor
818d0e19ab
RCONInstance: remove always-false branch (readPacket() never returns null)
2020-01-11 21:54:03 +00:00
Dylan K. Taylor
17720041a3
phpdoc: populate missing parameter typeinfo
2020-01-11 21:53:24 +00:00