-<?php
+<?php declare(strict_types=1);
namespace PhpParser\Node\Scalar;
*
* @param array $attributes Additional attributes
*/
- public function __construct(array $attributes = array()) {
+ public function __construct(array $attributes = []) {
parent::__construct($attributes);
}
- public function getSubNodeNames() {
- return array();
+ public function getSubNodeNames() : array {
+ return [];
}
/**
*
* @return string Name of magic constant
*/
- abstract public function getName();
+ abstract public function getName() : string;
}