Skip to content

Commit 527ecf1

Browse files
committed
Merge remote-tracking branch 'origin/4.x-obsolete-column' into 4.x-obsolete-column
2 parents 26ef33e + ff58267 commit 527ecf1

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

src/Annotation/Obsolete.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,4 @@
1515
* @Target({"PROPERTY"})
1616
*/
1717
#[\Attribute(\Attribute::TARGET_PROPERTY), NamedArgumentConstructor]
18-
class Obsolete
19-
{
20-
}
18+
class Obsolete {}

src/Configurator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ private function getActualProperties(\ReflectionClass $class): \Generator
425425
$metadata = \iterator_to_array(
426426
$this->getPropertyMetadata($property, Obsolete::class),
427427
);
428-
if ([] !== $metadata) {
428+
if ($metadata !== []) {
429429
continue;
430430
}
431431

tests/Annotated/Functional/Driver/Common/ObsoleteTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function testObsoleteColumn(ReaderInterface $reader): void
2525
new TokenizerConfig([
2626
'directories' => [__DIR__ . '/../../../Fixtures/Fixtures26'],
2727
'exclude' => [],
28-
])
28+
]),
2929
);
3030

3131
$locator = $tokenizer->classLocator();

tests/generate.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
/**
44
* 1. Create new test case class in folder `tests/Functional/Driver/Common` with content:
55
*
6-
*
76
* namespace Cycle\Annotated\Tests\Functional\Driver\Common;
87
*
98
* abstract class MyTest extends BaseTest {}

0 commit comments

Comments
 (0)