Skip to content

Commit

Permalink
Fix dynamic property PHP 8.2 warning for allExtends and `extendOnEv…
Browse files Browse the repository at this point in the history
…eryPath`

> PHP Deprecated: Creation of dynamic property `Less_Tree_Directive::$allExtends`
> PHP Deprecated: Creation of dynamic property `Less_Tree_Media::$allExtends`
> PHP Deprecated: Creation of dynamic property `Less_Tree_Ruleset::$extendOnEveryPath`

Closes #87.
  • Loading branch information
glo71317 authored and Krinkle committed Dec 22, 2022
1 parent b8cad5f commit a93b082
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 4 deletions.
3 changes: 3 additions & 0 deletions lib/Less/Tree.php
Expand Up @@ -9,6 +9,9 @@
class Less_Tree {

public $cache_string;
public $parensInOp = false;
public $extendOnEveryPath;
public $allExtends;

public function toCSS() {
$output = new Less_Output();
Expand Down
1 change: 0 additions & 1 deletion lib/Less/Tree/Dimension.php
Expand Up @@ -11,7 +11,6 @@ class Less_Tree_Dimension extends Less_Tree {
public $value;
public $unit;
public $type = 'Dimension';
public $parensInOp;

public function __construct( $value, $unit = null ) {
$this->value = floatval( $value );
Expand Down
1 change: 0 additions & 1 deletion lib/Less/Tree/Expression.php
Expand Up @@ -10,7 +10,6 @@ class Less_Tree_Expression extends Less_Tree {

public $value = array();
public $parens = false;
public $parensInOp = false;
public $type = 'Expression';

public function __construct( $value, $parens = null ) {
Expand Down
1 change: 0 additions & 1 deletion lib/Less/Tree/Operation.php
Expand Up @@ -12,7 +12,6 @@ class Less_Tree_Operation extends Less_Tree {
public $operands;
public $isSpaced;
public $type = 'Operation';
public $parensInOp;

/**
* @param string $op
Expand Down
1 change: 0 additions & 1 deletion lib/Less/Tree/Variable.php
Expand Up @@ -13,7 +13,6 @@ class Less_Tree_Variable extends Less_Tree {
public $currentFileInfo;
public $evaluating = false;
public $type = 'Variable';
public $parensInOp;

/**
* @param string $name
Expand Down

0 comments on commit a93b082

Please sign in to comment.