Skip to content

Commit

Permalink
Renamed index from attributes to has_attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
gsherwood committed Jul 20, 2021
1 parent 59ec454 commit b0ab30b
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 54 deletions.
10 changes: 5 additions & 5 deletions src/Files/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,7 @@ public function getDeclarationName($stackPtr)
* 'name' => '$var', // The variable name.
* 'token' => integer, // The stack pointer to the variable name.
* 'content' => string, // The full content of the variable definition.
* 'attributes' => boolean, // Does the parameter have one or more attributes attached ?
* 'has_attributes' => boolean, // Does the parameter have one or more attributes attached ?
* 'pass_by_reference' => boolean, // Is the variable passed by reference?
* 'reference_token' => integer, // The stack pointer to the reference operator
* // or FALSE if the param is not passed by reference.
Expand Down Expand Up @@ -1356,7 +1356,7 @@ public function getMethodParameters($stackPtr)
$defaultStart = null;
$equalToken = null;
$paramCount = 0;
$attributes = false;
$hasAttributes = false;
$passByReference = false;
$referenceToken = false;
$variableLength = false;
Expand Down Expand Up @@ -1389,7 +1389,7 @@ public function getMethodParameters($stackPtr)

switch ($this->tokens[$i]['code']) {
case T_ATTRIBUTE:
$attributes = true;
$hasAttributes = true;

// Skip to the end of the attribute.
$i = $this->tokens[$i]['attribute_closer'];
Expand Down Expand Up @@ -1510,7 +1510,7 @@ public function getMethodParameters($stackPtr)
$vars[$paramCount]['default_equal_token'] = $equalToken;
}

$vars[$paramCount]['attributes'] = $attributes;
$vars[$paramCount]['has_attributes'] = $hasAttributes;
$vars[$paramCount]['pass_by_reference'] = $passByReference;
$vars[$paramCount]['reference_token'] = $referenceToken;
$vars[$paramCount]['variable_length'] = $variableLength;
Expand All @@ -1536,7 +1536,7 @@ public function getMethodParameters($stackPtr)
$paramStart = ($i + 1);
$defaultStart = null;
$equalToken = null;
$attributes = false;
$hasAttributes = false;
$passByReference = false;
$referenceToken = false;
$variableLength = false;
Expand Down
Loading

0 comments on commit b0ab30b

Please sign in to comment.