Dylan K. Taylor
8c5cc67e07
Updated baseline
2022-01-21 19:38:59 +00:00
Dylan K. Taylor
94c4f58667
Fixed bogus test
2022-01-21 19:13:36 +00:00
Dylan K. Taylor
ed312863a7
ignore phpstan bug
2022-01-21 18:43:53 +00:00
Dylan K. Taylor
f1723acfd3
UnsafeForeachArrayOfStringRule: use statically analysable function reference
...
this will ensure that it get automatically updated during refactors.
2022-01-18 00:23:29 +00:00
Dylan K. Taylor
8da27ea0aa
UnsafeForeachArrayOfStringRule: fixed outdated function name
2022-01-18 00:15:44 +00:00
Dylan K. Taylor
0a5b146189
substr() returns an empty string instead of false in 8.0
...
an empty string will pass through preg_match_all() without any harmful effects, so we don't need to check for it.
2022-01-07 22:38:00 +00:00
Dylan K. Taylor
b4e1871899
Updated PHPStan baseline
2022-01-07 21:49:49 +00:00
Dylan K. Taylor
6d249026cc
Merge branch 'legacy/pm3' into stable
2022-01-07 20:15:15 +00:00
Dylan K. Taylor
3d9e19546f
EntityShootBowEvent: fixed incorrect field type
2021-12-07 23:35:45 +00:00
Dylan K. Taylor
0c012ca5d9
Replace usages of ItemFactory in tests with VanillaItems
2021-12-06 23:45:36 +00:00
Dylan K. Taylor
1669d33f7e
Updated DevTools submodule to pmmp/DevTools@39510af5bc
2021-12-02 00:58:15 +00:00
Dylan K. Taylor
f239b077b9
Fixed PHPStan complaints
2021-11-30 00:36:38 +00:00
Dylan K. Taylor
52f0c4f3ed
Removed dodgy test using invalid block metadata
2021-11-27 22:51:14 +00:00
Dylan K. Taylor
e2815eed60
BlockFactory: remap a bunch more invalid states
2021-11-27 20:07:58 +00:00
Dylan K. Taylor
932a88764c
composer commands suck
2021-11-27 04:07:25 +00:00
Dylan K. Taylor
9540193766
Fixed everything lighting on fire
2021-11-27 03:54:30 +00:00
Dylan K. Taylor
cc23e0b7a1
Updated DevTools submodule to pmmp/DevTools@6af57741e6
2021-11-27 03:52:32 +00:00
Dylan K. Taylor
52a891ba73
shut
2021-11-26 22:32:25 +00:00
Dylan K. Taylor
71b813d4f9
Define pocketmine\BUILD_NUMBER from phar metadata
...
this way we don't have to patch the code (no idea why we were doing that anyway).
2021-11-26 22:27:58 +00:00
Dylan K. Taylor
1bc7869f6e
Added remapping for almost 4000 invalid blockstates
...
when a block has sole ownership of an ID, the state bitmask can be ignored and we can just claim the whole metadata range for that single block.
This fixes a large number of issues with unknown blocks on older worlds where world editors did not remove the metadata, although update blocks will currently still appear on initial chunk send due to lack of AOT conversion (TODO).
2021-11-26 01:58:52 +00:00
Dylan K. Taylor
9346ecdc39
Merge branch 'stable'
2021-11-25 00:01:48 +00:00
Dylan K. Taylor
c023c02b6c
MemoryManager: Removed obsolete workaround for $GLOBALS not being defined on threads
...
this was long since fixed, and everyone has since been forced to upgrade to pthreads 4.0.0, which definitely has the fix.
2021-11-24 23:57:55 +00:00
Dylan K. Taylor
bb7683158f
Remove dead ignoreErrors patterns
2021-11-24 23:52:51 +00:00
Dylan K. Taylor
fad96b77ce
stfu
2021-11-24 23:49:56 +00:00
Dylan K. Taylor
40f8f042da
Merge branch 'stable'
2021-11-24 23:42:53 +00:00
Dylan K. Taylor
adff561483
phpstan: go nuclear on OPcache
...
when using dynamic reflection (which is the default), any time static reflection comes into play, bad shit starts to happen because of FileReadTrapStreamWrapper.
I attempted to fix these issues (phpstan/phpstan-src#801 ) and failed miserably.
So, to save the hassle, it's time to just remove OPcache from the picture (which, unfortunately, also means that PHPStan will not benefit from JIT).
2021-11-24 23:40:54 +00:00
Dylan K. Taylor
472ffb28ff
ScriptPluginLoader: use parseDocComment() instead of reinventing the wheel
2021-11-24 17:22:49 +00:00
Dylan K. Taylor
b784a04e08
Utils: fixed parseDocComment() ignoring tags containing hyphens
2021-11-24 16:38:37 +00:00
Dylan K. Taylor
269231c228
Ban foreach(arrayWithStringKeys as k => v)
...
this is not as good as phpstan/phpstan-src#769 (e.g. array_key_first()/array_key_last() aren't covered by this, nor is array_rand()) but it does eliminate the most infuriating cases where this usually crops up.
2021-11-15 22:52:05 +00:00
Dylan K. Taylor
4c07078586
Merge branch 'stable'
2021-11-08 19:01:08 +00:00
Dylan K. Taylor
eb3530b6e6
Use pmmp/setup-php-action to compile PHP
2021-11-07 23:13:56 +00:00
Dylan K. Taylor
b84f7c18ec
Install ext/crypto from PECL
2021-11-07 19:18:09 +00:00
Dylan K. Taylor
4c3a5fdd73
Clean PHPStan baselines from 1.0.2
2021-11-04 19:28:52 +00:00
Dylan K. Taylor
84f8b3eb2d
Move CrashDump to pocketmine\crash namespace
2021-11-04 19:23:45 +00:00
Dylan K. Taylor
15fca84f3b
remove some PHPStan error patterns
2021-11-04 19:22:49 +00:00
Dylan K. Taylor
c60144210f
Regenerate PHPStan bugs baseline
2021-11-04 19:18:29 +00:00
Dylan K. Taylor
729f831b8f
PHPStan 1.0.2
2021-11-03 20:26:32 +00:00
Dylan K. Taylor
54442f7e4b
Merge branch 'stable'
2021-11-01 21:18:35 +00:00
Dylan K. Taylor
5257755dc5
shut
2021-11-01 21:15:58 +00:00
Dylan K. Taylor
8c16ecaa5b
Merge branch 'stable'
2021-11-01 21:08:32 +00:00
Dylan K. Taylor
3214da8642
pthreads 4.0.0
2021-11-01 21:01:59 +00:00
Dylan K. Taylor
f827a555d5
Merge branch 'stable'
2021-11-01 18:13:24 +00:00
Dylan K. Taylor
794142fe49
Merge l7/l8/l9 baselines into actual-problems
...
it doesn't serve any practical purpose to keep these separated, particularly since it's getting so difficult to figure out which errors are coming from which levels (since we always use 9, it doesn't really make any difference).
2021-11-01 17:27:31 +00:00
Dylan K. Taylor
ff27c5f7db
PHPStan 1.0.0
2021-11-01 17:24:20 +00:00
Dylan K. Taylor
1873457840
PopulationTask: stop using dynamic properties
2021-10-26 20:21:58 +01:00
Dylan K. Taylor
1d99cd329a
CS again
2021-10-26 00:50:43 +01:00
Dylan K. Taylor
bd8cba1a7f
Added unit tests for Utils::testValidInstance()
2021-10-26 00:49:41 +01:00
Dylan K. Taylor
baba25953f
Chunk: make all parameters of __construct() mandatory and non-nullable
...
having the constructor fill in defaults for these invariably causes bugs.
2021-10-25 20:22:50 +01:00
Dylan K. Taylor
e50072dc27
Clean PHPStan baselines
2021-10-23 01:55:10 +01:00
Dylan T
a788954551
Fixed dependency handling across plugin loaders ( #3971 )
2021-10-20 20:22:00 +01:00