mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-16 16:34:05 +00:00
Fix RegistryTrait documentation (#6153)
This commit is contained in:
parent
77590fb63a
commit
0ad6429fee
@ -28,7 +28,7 @@ namespace pocketmine\utils;
|
|||||||
* __callStatic().
|
* __callStatic().
|
||||||
*
|
*
|
||||||
* Classes using this trait need to include \@method tags in their class docblock for every enum member.
|
* Classes using this trait need to include \@method tags in their class docblock for every enum member.
|
||||||
* Alternatively, just put \@generate-registry-docblock in the docblock and run tools/generate-registry-annotations.php
|
* Alternatively, just put \@generate-registry-docblock in the docblock and run build/generate-registry-annotations.php
|
||||||
*
|
*
|
||||||
* @deprecated Use native PHP 8.1 enums instead. Use {@link LegacyEnumShimTrait} if you need to provide backwards
|
* @deprecated Use native PHP 8.1 enums instead. Use {@link LegacyEnumShimTrait} if you need to provide backwards
|
||||||
* compatible EnumTrait-like API for migrated enums.
|
* compatible EnumTrait-like API for migrated enums.
|
||||||
|
@ -33,7 +33,7 @@ use function preg_match;
|
|||||||
* These faux constants are exposed in static class methods, which are handled using __callStatic().
|
* These faux constants are exposed in static class methods, which are handled using __callStatic().
|
||||||
*
|
*
|
||||||
* Classes using this trait need to include \@method tags in their class docblock for every faux constant.
|
* Classes using this trait need to include \@method tags in their class docblock for every faux constant.
|
||||||
* Alternatively, just put \@generate-registry-docblock in the docblock and run tools/generate-registry-annotations.php
|
* Alternatively, just put \@generate-registry-docblock in the docblock and run build/generate-registry-annotations.php
|
||||||
*/
|
*/
|
||||||
trait RegistryTrait{
|
trait RegistryTrait{
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user