Property with asymmetric visibility %s::$%s must have type

Description

Asymmetric visibility, such as protected(set) only applies to a typed property.

Example

<?php

class X {
     static protected(set) int $property;
}

?>

Literal Examples

  • Property with asymmetric visibility x::$property must have type

Solutions

  • Remove the asymmetric property.

  • Add a type to the property.