Abstract property hook cannot have body¶
Description¶
Property hooks, both set
and get
, may be made abstract by adding the keyword to the property definition. And, just like methods, abstract property hooks cannot have a body.
Example¶
<?php
class X {
public abstract $property {
get {}
}
}
?>
Solutions¶
Remove the abstract keyword.
Remove the body of the property hook.