Cannot use the static modifier on a property hook

Description

It is not possible to make individual property hooks static. The keyword must be set at the property definition level, for all the hooks.

Example

<?php

class X {
     public $property {
             static get;
     }
}

?>

Solutions

  • Remove the abstract keyword, and put it on the property definition level.