Dylan K. Taylor
9311437d42
Utils: add some phpstan docs to fix analyse failure
...
fuck, I wish we had real generics :(
2020-01-30 12:07:14 +00:00
Dylan K. Taylor
9cdea43794
provide more array type information for Internet functions
2020-01-29 20:45:03 +00:00
Dylan K. Taylor
e007fad5b8
fix return types for Utils/Internet getURL()/postURL()
2020-01-29 20:43:09 +00:00
Dylan K. Taylor
5cf2fcbbb7
simpleCurl() second return value is string[][], not string[]
2020-01-29 20:38:19 +00:00
Dylan K. Taylor
9e6cbb5b6a
Internet: fix type information for getURL(), postURL() and simpleCurl()
2020-01-29 20:20:52 +00:00
Dylan K. Taylor
9492325eef
Merge branch 'stable'
2020-01-29 20:01:30 +00:00
Dylan K. Taylor
5c4487c980
added some callable prototypes for phpstan
2020-01-29 19:56:16 +00:00
Dylan K. Taylor
68bea6d4aa
ChunkRequestTask: fix @var for error hook fetch
2020-01-29 19:36:52 +00:00
Dylan K. Taylor
64b3d02974
Chunk: remove useless condition from populateSkyLight()
...
this was detected by latest bleeding-edge PHPStan.
2020-01-29 16:42:42 +00:00
Dylan K. Taylor
640df1003c
add some Generator generics for PHPStan
2020-01-29 16:38:50 +00:00
Dylan K. Taylor
a604176ac2
Merge branch 'stable'
2020-01-29 16:11:51 +00:00
Dylan K. Taylor
2b402e525a
add some PHPStan-specific callable prototypes
2020-01-29 15:03:55 +00:00
Dylan K. Taylor
9a5d3e3d4f
Merge branch 'stable'
2020-01-28 14:35:50 +00:00
Dylan K. Taylor
e2871fad8e
composer.json: move require-dev next to require
2020-01-28 14:32:55 +00:00
Dylan K. Taylor
f68452a5d9
updated composer deps
2020-01-28 14:28:03 +00:00
Dylan K. Taylor
ded0f5c80e
network: added some missing native closure return types
2020-01-28 11:10:01 +00:00
Dylan K. Taylor
85fdb7ec05
CallbackInventoryChangeListener: provide signature information for closures
2020-01-27 18:08:59 +00:00
Dylan K. Taylor
42014311c5
BrewingStand: added missing void return type
2020-01-27 18:08:08 +00:00
Dylan K. Taylor
41d02003c2
Install PHPStan and PHPUnit via dev dependencies
2020-01-27 12:04:42 +00:00
Dylan K. Taylor
35c23ea89a
com_exception is no longer missing from phpstan stubs
2020-01-27 09:35:27 +00:00
Dylan K. Taylor
67e54d6fd6
Merge branch 'stable'
2020-01-27 09:34:48 +00:00
Dylan K. Taylor
156ecd9bd8
travis: use phpstan 0.12.8
2020-01-27 09:31:27 +00:00
Dylan K. Taylor
588ff8acf6
Merge branch 'stable'
2020-01-25 18:11:02 +00:00
Dylan K. Taylor
e66197036d
InGamePacketHandler: drop transactions with 0 actions without trying to execute them
...
often we throw out actions that have no value, which can lead to an empty transaction and re-syncing the inventory. This happens every time we interact with the creative inventory in 1.13+, which causes items to appear to vanish when taking them from the creative menu.
The correct fix for this is to resend only the slots affected by SlotChangeActions, but this fix will suffice for now without rewriting everything.
2020-01-25 18:10:37 +00:00
Dylan K. Taylor
fa7736efbb
phpstan 0.12.7
2020-01-25 17:16:14 +00:00
Dylan K. Taylor
d71a7ff2fa
travis.sh: fix indentation
2020-01-25 17:15:37 +00:00
Dylan K. Taylor
5955ff5393
fix phpdoc spacing screwed up by phpstorm
2020-01-22 15:20:50 +00:00
Dylan K. Taylor
8efc4d12ec
trim phpdoc lines
2020-01-22 15:18:37 +00:00
Dylan K. Taylor
0b423c5b96
Merge branch 'stable'
2020-01-22 15:16:10 +00:00
Dylan K. Taylor
055b13a6cf
strip extra blank lines (php-cs-fixer)
2020-01-22 15:14:10 +00:00
Dylan K. Taylor
8d7a364b29
Empty merge of 'f624871b3fdd04c983c3d37e42b9862ef8f03b68'
2020-01-22 15:09:03 +00:00
Dylan K. Taylor
a3bffd375b
master-specific addendum to cd55cdf5c6c8be2b3aed523487db430a7df861e3
2020-01-22 15:07:47 +00:00
Dylan K. Taylor
cd55cdf5c6
Merge commit '9cd6b3e1c7cd81d0a4b0da68d9b3ff026c9f6495'
2020-01-22 15:04:06 +00:00
Dylan K. Taylor
4481474d41
Merge commit 'aad1eb5b3e9b2e3b3db968a000e5454152195d7f'
2020-01-22 15:01:46 +00:00
Dylan K. Taylor
7f06002027
Merge commit 'bff5bf25aea5cf56bbbfaeaa89f5e1f0ac920c90'
2020-01-22 15:00:13 +00:00
Dylan K. Taylor
8184a6b114
SkinImage: enforce that height/width must be positive
2020-01-22 14:58:36 +00:00
Dylan K. Taylor
b8d44ff162
SkinImage: fix formatting error
2020-01-22 14:58:00 +00:00
Dylan K. Taylor
f6611a38bc
Explosion: fix trailing whitespace in explodeA() phpdoc
2020-01-22 14:51:49 +00:00
Dylan K. Taylor
24ed823d96
WritableBook: remove extra line from phpdoc on setPages()
2020-01-22 14:51:14 +00:00
Dylan K. Taylor
f624871b3f
strip extra blank lines (php-cs-fixer)
2020-01-22 14:50:29 +00:00
Dylan K. Taylor
9cd6b3e1c7
fix remaining multiline @var annotations
2020-01-22 14:44:36 +00:00
Dylan K. Taylor
aad1eb5b3e
CoreConstants: fix EOF newline
2020-01-22 14:40:03 +00:00
Dylan K. Taylor
bff5bf25ae
LegacySkinAdapter: make resource patch validity check more robust
2020-01-22 14:36:40 +00:00
Dylan K. Taylor
1b33143f4f
pass 2, manual removal of incorrect non-nullable phpdoc types
2020-01-22 12:06:47 +00:00
Dylan K. Taylor
67bcc1c0fb
phpdoc armageddon for master, pass 1
2020-01-22 11:55:03 +00:00
Dylan K. Taylor
4bae3baa74
Empty merge of stable
...
easier to reapply these changes than to resolve conflicts
2020-01-22 10:56:43 +00:00
Dylan T
cda90fd7f1
Merge pull request #3280 from pmmp/stable-phpdoc-armageddon
...
Mass-removal of redundant @param / @return PhpDoc annotations
2020-01-22 10:48:50 +00:00
Dylan K. Taylor
ccdf003c8d
ResourcePacksPacketHandler: fixed chemistry being applied to top of stack instead of bottom
...
it seems like the stack order is reversed, so all 'regular' in-memory stack behaviour goes out of the window.
2020-01-22 08:26:44 +00:00
Dylan K. Taylor
9f44adf04a
pass 2, manual removal of incorrect non-nullable @param for nullable native types
2020-01-21 15:44:34 +00:00
Dylan K. Taylor
c4793241f5
Mass removal of useless @param/@return PHPDoc annotations, pass 1
2020-01-21 15:10:18 +00:00