lib/PhpParser/Node/Stmt/Class_.php 1 location
|
@@ 62-69 (lines=8) @@
|
| 59 |
|
); |
| 60 |
|
} |
| 61 |
|
|
| 62 |
|
foreach ($this->implements as $interface) { |
| 63 |
|
if (isset(self::$specialNames[strtolower($interface)])) { |
| 64 |
|
throw new Error( |
| 65 |
|
sprintf('Cannot use \'%s\' as interface name as it is reserved', $interface), |
| 66 |
|
$interface->getAttributes() |
| 67 |
|
); |
| 68 |
|
} |
| 69 |
|
} |
| 70 |
|
} |
| 71 |
|
|
| 72 |
|
public function getSubNodeNames() { |
lib/PhpParser/Node/Stmt/Interface_.php 1 location
|
@@ 38-45 (lines=8) @@
|
| 35 |
|
throw new Error(sprintf('Cannot use \'%s\' as class name as it is reserved', $this->name)); |
| 36 |
|
} |
| 37 |
|
|
| 38 |
|
foreach ($this->extends as $interface) { |
| 39 |
|
if (isset(self::$specialNames[strtolower($interface)])) { |
| 40 |
|
throw new Error( |
| 41 |
|
sprintf('Cannot use \'%s\' as interface name as it is reserved', $interface), |
| 42 |
|
$interface->getAttributes() |
| 43 |
|
); |
| 44 |
|
} |
| 45 |
|
} |
| 46 |
|
} |
| 47 |
|
|
| 48 |
|
public function getSubNodeNames() { |