|
@@ 99-104 (lines=6) @@
|
| 96 |
|
|
| 97 |
|
$docComment = $this->getDocComment(); |
| 98 |
|
|
| 99 |
|
if (! $docComment) { |
| 100 |
|
$this->isNullable = true; |
| 101 |
|
self::$cache[$this->class][$this->getName()]['is_nullable'] = $this->isNullable; |
| 102 |
|
|
| 103 |
|
return; |
| 104 |
|
} |
| 105 |
|
|
| 106 |
|
preg_match('/\@var ((?:(?:[\w|\\\\])+(?:\[\])?)+)/', $docComment, $matches); |
| 107 |
|
|
|
@@ 108-113 (lines=6) @@
|
| 105 |
|
|
| 106 |
|
preg_match('/\@var ((?:(?:[\w|\\\\])+(?:\[\])?)+)/', $docComment, $matches); |
| 107 |
|
|
| 108 |
|
if (! count($matches)) { |
| 109 |
|
$this->isNullable = true; |
| 110 |
|
self::$cache[$this->class][$this->getName()]['is_nullable'] = $this->isNullable; |
| 111 |
|
|
| 112 |
|
return; |
| 113 |
|
} |
| 114 |
|
|
| 115 |
|
$this->hasTypeDeclaration = true; |
| 116 |
|
|