pmmp / PocketMine-MP

A server software for Minecraft: Bedrock Edition in PHP
https://pmmp.io
GNU Lesser General Public License v3.0
3.26k stars 1.54k forks source link

Integrate revamped CallbackValidator #6343

Open dktapps opened 4 months ago

dktapps commented 4 months ago

Description

A couple of months ago, I rewrote CallbackValidator, with an improved API and support for stuff like union and intersection types. https://github.com/pmmp/CallbackValidator/tree/rewrite

However, these improvements required some BC breaks. This is a problem, because we have no clear documentation of which dependency libraries are considered API and which aren't. This means that plugins could have used the legacy CallbackValidator API directly instead of Utils::validateCallableSignature().

We have 2 choices:

Alternative methods