Skip to content

Commit 218b659

Browse files
committed
修正兼容php7.4以下不支持...
1 parent 2353a68 commit 218b659

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/parses/ParseAnnotation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public function getClassAnnotation($refClass){
121121
$attributes = [];
122122
}
123123
$readerAttributes = $this->parser->getClassAnnotations($refClass);
124-
return $this->getParameters([...$attributes,...$readerAttributes]);
124+
return $this->getParameters(array_merge($attributes,$readerAttributes));
125125
}
126126

127127
/**
@@ -136,7 +136,7 @@ public function getMethodAnnotation(ReflectionMethod $refMethod){
136136
$attributes = [];
137137
}
138138
$readerAttributes = $this->parser->getMethodAnnotations($refMethod);
139-
return $this->getParameters([...$attributes,...$readerAttributes]);
139+
return $this->getParameters(array_merge($attributes,$readerAttributes));
140140
}
141141

142142
}

0 commit comments

Comments
 (0)