Skip to content

Commit 693cbee

Browse files
committed
Use #[Override] attribute.
1 parent 8e192d2 commit 693cbee

File tree

5 files changed

+5
-16
lines changed

5 files changed

+5
-16
lines changed

src/ClassFilesIA/ClassFilesIA_Concat.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ public function __construct(
1111
private readonly array $classFilesIAs,
1212
) {}
1313

14-
/**
15-
* {@inheritdoc}
16-
*/
14+
#[\Override]
1715
public function getIterator(): \Iterator {
1816
foreach ($this->classFilesIAs as $classFilesIA) {
1917
yield from $classFilesIA;

src/ClassFilesIA/ClassFilesIA_Empty.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44

55
class ClassFilesIA_Empty implements ClassFilesIAInterface {
66

7-
/**
8-
* {@inheritdoc}
9-
*/
7+
#[\Override]
108
public function getIterator(): \Iterator {
119
return new \EmptyIterator();
1210
}

src/ClassFilesIA/ClassFilesIA_NamespaceDirectoryPsr4.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ public static function createFromNsdirObject(NamespaceDirectory $nsdir): ClassFi
5757
);
5858
}
5959

60-
/**
61-
* {@inheritdoc}
62-
*/
60+
#[\Override]
6361
public function getIterator(): \Iterator {
6462
return NsDirUtil::iterate($this->directory, $this->terminatedNamespace);
6563
}

src/ClassNamesIA/ClassNamesIA_Array.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ public function __construct(
2626
), 'Array values must be class names.');
2727
}
2828

29-
/**
30-
* {@inheritdoc}
31-
*/
29+
#[\Override]
3230
public function getIterator(): \Iterator {
3331
yield from $this->values;
3432
}

src/NamespaceDirectory.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -498,10 +498,7 @@ public function getRelativeTerminatedPath(string $subdir = 'src/', int $level =
498498
return $relativeTerminatedPath;
499499
}
500500

501-
/**
502-
* @return \Iterator<string, class-string>
503-
* Format: $[$file] = $class
504-
*/
501+
#[\Override]
505502
public function getIterator(): \Iterator {
506503
return NsDirUtil::iterate($this->directory, $this->terminatedNamespace);
507504
}

0 commit comments

Comments
 (0)