Skip to content

Commit d5894da

Browse files
committed
Fix function call
1 parent 2820fd5 commit d5894da

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

includes/Scanner/Log.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ public function add_abstraction_declarations( $abstractions, $logid, $unique = f
255255
$type = 'class';
256256
break;
257257
case 'Stmt_Function':
258-
$contextual_stmts = $this->parser_object->get_contextual_STMTS_for_element( $abstract )['context'];
258+
$contextual_stmts = $this->parser_object->get_contextual_stmts_for_element( $abstract )['context'];
259259
if ( $contextual_stmts !== $abstract->stmts && ! empty( $abstract->stmts ) ) {
260260
$continue = false; // Function declared inside another function.
261261
}

includes/Scanner/Prefix_Scanner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ private function add_globals_declarations_to_log() {
386386
if ( ! empty( $consts ) ) {
387387
foreach ( $consts as $const ) {
388388
$is_inside_element_type = null;
389-
$contextual_stmts = $this->get_contextual_STMTS_for_element( $const, $is_inside_element_type )['context'];
389+
$contextual_stmts = $this->get_contextual_stmts_for_element( $const, $is_inside_element_type )['context'];
390390
if ( ! empty( $contextual_stmts ) && ! in_array( $is_inside_element_type, array( 'PhpParser\Node\Stmt\Class_', 'PhpParser\Node\Stmt\Interface_' ), true ) ) { // Ignore const inside a class.
391391
if ( isset( $const->name ) && method_exists( $const->name, '__toString' ) && ! empty( $const->name->__toString() ) ) {
392392
$this->log()->add_var_expr( $const, 'prefixes_code', true );

0 commit comments

Comments
 (0)