projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Security update to Drupal 8.4.6
[yaffs-website]
/
vendor
/
doctrine
/
common
/
lib
/
Doctrine
/
Common
/
Reflection
/
StaticReflectionParser.php
diff --git
a/vendor/doctrine/common/lib/Doctrine/Common/Reflection/StaticReflectionParser.php
b/vendor/doctrine/common/lib/Doctrine/Common/Reflection/StaticReflectionParser.php
index 17bcd7c9f0d12771d87ffffbe7995ada655288a2..c935a24154f6e2bdb81bc585c5a15fe2acf9e04c 100644
(file)
--- a/
vendor/doctrine/common/lib/Doctrine/Common/Reflection/StaticReflectionParser.php
+++ b/
vendor/doctrine/common/lib/Doctrine/Common/Reflection/StaticReflectionParser.php
@@
-50,6
+50,13
@@
class StaticReflectionParser implements ReflectionProviderInterface
*/
protected $classAnnotationOptimize;
*/
protected $classAnnotationOptimize;
+ /**
+ * A ClassFinder object which finds the class.
+ *
+ * @var ClassFinderInterface
+ */
+ protected $finder;
+
/**
* Whether the parser has run.
*
/**
* Whether the parser has run.
*
@@
-74,7
+81,7
@@
class StaticReflectionParser implements ReflectionProviderInterface
/**
* The docComment of the class.
*
/**
* The docComment of the class.
*
- * @var
string
+ * @var
mixed[]
*/
protected $docComment = [
'class' => '',
*/
protected $docComment = [
'class' => '',
@@
-140,7
+147,7
@@
class StaticReflectionParser implements ReflectionProviderInterface
$last_token = false;
while ($token = $tokenParser->next(false)) {
$last_token = false;
while ($token = $tokenParser->next(false)) {
-
if (is_array($token)) {
switch ($token[0]) {
+ switch ($token[0]) {
case T_USE:
$this->useStatements = array_merge($this->useStatements, $tokenParser->parseUseStatement());
break;
case T_USE:
$this->useStatements = array_merge($this->useStatements, $tokenParser->parseUseStatement());
break;
@@
-148,8
+155,10
@@
class StaticReflectionParser implements ReflectionProviderInterface
$docComment = $token[1];
break;
case T_CLASS:
$docComment = $token[1];
break;
case T_CLASS:
- if ($last_token !== T_PAAMAYIM_NEKUDOTAYIM) {$this->docComment['class'] = $docComment;
- $docComment = '';}
+ if ($last_token !== T_PAAMAYIM_NEKUDOTAYIM) {
+ $this->docComment['class'] = $docComment;
+ $docComment = '';
+ }
break;
case T_VAR:
case T_PRIVATE:
break;
case T_VAR:
case T_PRIVATE:
@@
-199,7
+208,7
@@
class StaticReflectionParser implements ReflectionProviderInterface
if (!$fullySpecified) {
$this->parentClassName = '\\' . $this->namespace . '\\' . $this->parentClassName;
}
if (!$fullySpecified) {
$this->parentClassName = '\\' . $this->namespace . '\\' . $this->parentClassName;
}
- break;
}
+ break;
}
$last_token = $token[0];
}
$last_token = $token[0];