-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Nullable field setters don't correctly account for null
when generating typehints.
Again, found by PHPStan.
Expected behavior
setDisableBlockTicking()
should accept null
.
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"additionalProperties": false,
"properties": {
"disable-block-ticking": {
"oneOf": [
{
"type": "array",
"items": {
"type": "integer"
}
},
{
"type": "null"
}
],
"description": "IDs of blocks to disallow ticking.",
"default": null
}
},
"required": [
"chunk-ticking"
]
}
Version:
0.21.5.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working