Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4ad3348

Browse files
authored
Declare previous dynamic properties (#101)
1 parent 1791d2d commit 4ad3348

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/Highlight/RegExMatch.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ class RegExMatch implements \ArrayAccess, \Countable, \IteratorAggregate
4848
/** @var string */
4949
public $input;
5050

51+
/** @var string */
52+
public $type;
53+
54+
/** @var Mode|string */
55+
public $rule;
56+
5157
/**
5258
* @param array<int, string|null> $results
5359
*/

src/Highlight/Terminators.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ public function exec($s)
111111

112112
if (is_string($rule)) {
113113
$match->type = $rule;
114-
$match->extra = array($this->mode->illegal, $this->mode->terminator_end);
115114
} else {
116115
$match->type = "begin";
117116
$match->rule = $rule;

0 commit comments

Comments
 (0)