.. _static-property-may-not-have-asymmetric-visibility:
Static property may not have asymmetric visibility
--------------------------------------------------
.. meta::
:description:
Static property may not have asymmetric visibility: Asymmetric visibility is only applicable to object properties, not static properties.
:og:image: https://php-errors.readthedocs.io/en/latest/_static/logo.png
:og:type: article
:og:title: Static property may not have asymmetric visibility
:og:description: Asymmetric visibility is only applicable to object properties, not static properties
:og:url: https://php-errors.readthedocs.io/en/latest/messages/static-property-may-not-have-asymmetric-visibility.html
:og:locale: en
:twitter:card: summary_large_image
:twitter:site: @exakat
:twitter:title: Static property may not have asymmetric visibility
:twitter:description: Static property may not have asymmetric visibility: Asymmetric visibility is only applicable to object properties, not static properties
:twitter:creator: @exakat
:twitter:image:src: https://php-errors.readthedocs.io/en/latest/_static/logo.png
.. raw:: html
Description
___________
Asymmetric visibility is only applicable to object properties, not static properties.
Example
_______
.. code-block:: php
Solutions
_________
+ Make the property non-static.
+ Remove the asymmetric visibility.
Changed Behavior
________________
This error may appear following an evolution in behavior, in previous versions. See ` `_.