Skip to content

Commit 7740238

Browse files
committed
Fix stubs for <8.4
1 parent 69f267e commit 7740238

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

stubs/pocketmine/world/format/PalettedBlockArrayLoadException.stub.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
/**
44
* @generate-class-entries
5+
* @generate-legacy-arginfo 80100
56
*/
67

78
namespace pocketmine\world\format;
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 99204f020e50c95977c6991a1fd9e5e72348ec77 */
2+
* Stub hash: a2c6d79d299cd37711158413ec1e33242e405370 */
33

44
static zend_class_entry *register_class_pocketmine_world_format_PalettedBlockArrayLoadException(zend_class_entry *class_entry_RuntimeException)
55
{
66
zend_class_entry ce, *class_entry;
77

88
INIT_NS_CLASS_ENTRY(ce, "pocketmine\\world\\format", "PalettedBlockArrayLoadException", NULL);
9+
#if (PHP_VERSION_ID >= 80400)
910
class_entry = zend_register_internal_class_with_flags(&ce, class_entry_RuntimeException, 0);
11+
#else
12+
class_entry = zend_register_internal_class_ex(&ce, class_entry_RuntimeException);
13+
#endif
1014

1115
return class_entry;
1216
}

0 commit comments

Comments
 (0)