Skip to content

Commit

Permalink
fix PHP Deprecated: Creation of dynamic property (#158)
Browse files Browse the repository at this point in the history
avoid the following error in php 8.2.* : 
PHP Deprecated:  Creation of dynamic property cli\arguments\Lexer::$_item is deprecated in wp-cli/php-cli-tools/lib/cli/arguments/Lexer.php on line 113
  • Loading branch information
aerogus authored Apr 4, 2023
1 parent f6be76b commit 0f503a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/cli/arguments/Lexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use cli\Memoize;

class Lexer extends Memoize implements \Iterator {
private $_item;
private $_items = array();
private $_index = 0;
private $_length = 0;
Expand Down

1 comment on commit 0f503a7

@caferyukseloglu
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

Please sign in to comment.