| 1 | <?php |
||
| 13 | class ArrayShortDefinition implements AnalyzerPassInterface |
||
| 14 | { |
||
| 15 | use DefaultMetadataPassTrait { |
||
| 16 | DefaultMetadataPassTrait::getMetadata as defaultMetadata; |
||
| 17 | } |
||
| 18 | |||
| 19 | const DESCRIPTION = 'Short syntax can be used in array literals.'; |
||
| 20 | 40 | ||
| 21 | /** |
||
| 22 | 40 | * @param Expr\Array_ $expr |
|
| 23 | 2 | * @param Context $context |
|
| 24 | 2 | * @return bool |
|
| 25 | 2 | */ |
|
| 26 | public function pass(Expr\Array_ $expr, Context $context) |
||
| 40 | |||
| 41 | /** |
||
| 42 | 1 | * @return array |
|
| 43 | */ |
||
| 44 | public function getRegister() |
||
| 50 | |||
| 51 | /** |
||
| 52 | * {@inheritdoc} |
||
| 53 | */ |
||
| 54 | public static function getMetadata() |
||
| 61 | } |
||
| 62 |