| Update PHPStan
| 1 个月前 |
| Improve PHPStan error reporting for unsafe foreaches
these are actually two separate concerns: one for dodgy PHPStan type suppression on implicit keys, and the other for arrays being casted to strings by PHP.
| 1 年前 |
| LoginPacketHandler: stop bailing on unexpected JSON properties
the intent of this was noble (to make sure nothing was missed), but in practice throwing
errors on this stuff is just a pain in the ass. We don't actually need to care if the
properties are not used, since it doesn't affect the decoding (like it would for
a missing packet field), so the only reasons to complain are for BedrockProtocol to
have a complete picture of the protocol, and to make sure we're not discarding useful
information.
Log a warning in these cases instead, which should be noticed by developers without
being an unnecessary problem for users.
closes #6816
| 7 个月前 |
| Update to PHPStan 2.x
| 1 年前 |
| Workaround PHPStan "feature" phpstan/phpstan#7701
| 3 年前 |
| Use PHP-CS-Fixer to enforce file header presence
| 3 年前 |