Unverified Commit b04c03d0 authored by mbomb007's avatar mbomb007 Committed by GitHub
Browse files

fix(VariableComment): Support for PHP 8.1 readonly member variables (#3285707)

parent d1bb7ea7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -48,6 +48,7 @@ class VariableCommentSniff extends AbstractVariableSniff
            T_STRING,
            T_NS_SEPARATOR,
            T_NULLABLE,
            T_READONLY,
            T_TYPE_UNION,
            T_FALSE,
            T_NULL,
+5 −0
Original line number Diff line number Diff line
@@ -58,4 +58,9 @@ class Test {
   */
  public Foo|Bar|FALSE|NULL $fooBar;

  /**
   * Readonly property.
   */
  protected readonly string $readOnly;

}
+5 −0
Original line number Diff line number Diff line
@@ -62,4 +62,9 @@ class Test {
   */
  public Foo|Bar|FALSE|NULL $fooBar;

  /**
   * Readonly property.
   */
  protected readonly string $readOnly;

}