X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fparser%2FPreprocessor_Hash.php;h=7c372ee3d74bb55b664d817d8ae669b4136cd8c7;hp=f7f37ac044dcf44fef38484b927efa616021b72e;hb=a1ef77b2d80830fbcb617a83961d78cff9d6e384;hpb=31634739695493e929eeb6c8c1b7fd9c3f5bf826 diff --git a/includes/parser/Preprocessor_Hash.php b/includes/parser/Preprocessor_Hash.php index f7f37ac044..7c372ee3d7 100644 --- a/includes/parser/Preprocessor_Hash.php +++ b/includes/parser/Preprocessor_Hash.php @@ -41,12 +41,6 @@ */ // phpcs:ignore Squiz.Classes.ValidClassName.NotCamelCaps class Preprocessor_Hash extends Preprocessor { - - /** - * @var Parser - */ - public $parser; - const CACHE_PREFIX = 'preprocess-hash'; const CACHE_VERSION = 2; @@ -628,7 +622,9 @@ class Preprocessor_Hash extends Preprocessor { } $i += $count; } elseif ( $found == 'close' ) { + /** @var PPDStackElement_Hash $piece */ $piece = $stack->top; + '@phan-var PPDStackElement_Hash $piece'; # lets check if there are enough characters for closing brace $maxCount = $piece->count; if ( $piece->close === '}-' && $curChar === '}' ) {