The doc comment array<string, class-string> at position 4 could not be parsed: Unknown type name 'class-string' at position 4 in array<string, class-string>.
Loading history...
20
*/
21
1
public function all(): array
22
{
23
1
return [
24
1
...$this->fromMethodAnnotations(),
25
1
...$this->existing(),
26
1
];
27
}
28
29
/**
30
* Retrieve the use statements from the method annotations.
The doc comment array<string, class-string> at position 4 could not be parsed: Unknown type name 'class-string' at position 4 in array<string, class-string>.
Loading history...
33
*/
34
1
public function fromMethodAnnotations(): array
35
{
36
1
$useStatements = [];
37
38
1
foreach ($this->inspector->methodAnnotations($this->includeExisting) as $annotation) {
39
1
foreach ($annotation->namespaces as $namespace) {
40
1
if (! $this->inspector->hasSameNamespace($namespace)) {