Skip to content
This repository was archived by the owner on Apr 1, 2024. It is now read-only.

Commit c898d02

Browse files
committed
Rename $_ to $decl when assigned
We're making $_ shorthand for 'unused', so the typechecker has started to complain about this.
1 parent c144547 commit c898d02

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/core/ComposableElement.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -520,17 +520,17 @@ final protected function __transferContext(
520520
*/
521521
protected static function &__xhpAttributeDeclaration(
522522
): array<string, array<int, mixed>> {
523-
static $_ = array();
524-
return $_;
523+
static $decl = array();
524+
return $decl;
525525
}
526526

527527
/**
528528
* Defined in elements by the `category` keyword. This is just a list of all
529529
* categories an element belongs to. Each category is a key with value 1.
530530
*/
531531
protected function &__xhpCategoryDeclaration(): array<string, int> {
532-
static $_ = array();
533-
return $_;
532+
static $decl = array();
533+
return $decl;
534534
}
535535

536536
/**
@@ -541,8 +541,8 @@ protected function &__xhpCategoryDeclaration(): array<string, int> {
541541
* biggest mess you've ever seen.
542542
*/
543543
protected function &__xhpChildrenDeclaration(): mixed {
544-
static $_ = 1;
545-
return $_;
544+
static $decl = 1;
545+
return $decl;
546546
}
547547

548548
/**

0 commit comments

Comments
 (0)