projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website]
/
vendor
/
nikic
/
php-parser
/
lib
/
PhpParser
/
Builder
/
Declaration.php
diff --git
a/vendor/nikic/php-parser/lib/PhpParser/Builder/Declaration.php
b/vendor/nikic/php-parser/lib/PhpParser/Builder/Declaration.php
index 30a1937f915109d9da30efe806f35bdb9a473b8d..830949928aac0f9583e1e38363c9c8f5f12dea1e 100644
(file)
--- a/
vendor/nikic/php-parser/lib/PhpParser/Builder/Declaration.php
+++ b/
vendor/nikic/php-parser/lib/PhpParser/Builder/Declaration.php
@@
-1,12
+1,13
@@
-<?php
+<?php
declare(strict_types=1);
namespace PhpParser\Builder;
use PhpParser;
namespace PhpParser\Builder;
use PhpParser;
+use PhpParser\BuilderHelpers;
-abstract class Declaration
extends PhpParser\BuilderAbstract
+abstract class Declaration
implements PhpParser\Builder
{
{
- protected $attributes =
array()
;
+ protected $attributes =
[]
;
abstract public function addStmt($stmt);
abstract public function addStmt($stmt);
@@
-33,10
+34,10
@@
abstract class Declaration extends PhpParser\BuilderAbstract
* @return $this The builder instance (for fluid interface)
*/
public function setDocComment($docComment) {
* @return $this The builder instance (for fluid interface)
*/
public function setDocComment($docComment) {
- $this->attributes['comments'] =
array(
-
$this->
normalizeDocComment($docComment)
-
)
;
+ $this->attributes['comments'] =
[
+
BuilderHelpers::
normalizeDocComment($docComment)
+
]
;
return $this;
}
return $this;
}
-}
\ No newline at end of file
+}