Property hook list must not be empty¶
Description¶
It is possible to add a block, after a property definition. This is where the get
and set
methods are defined. There can be one or two of these methods, but the block just cannot be left empty.
Example¶
<?php
class X {
public int $p = 3 { }
}
?>
Solutions¶
Create at least one accessor method in the block.
Remove the block.