Skip to content

Commit 00a694b

Browse files
committed
PHP 8.4 | Squiz/DocCommentAlignment: add tests with abstract property
1 parent 1039ae2 commit 00a694b

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

src/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.inc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,16 @@ class AsymVisibility {
131131
*/
132132
private(set) int $prop = 1;
133133
}
134+
135+
/**
136+
* Some info about the class here.
137+
*/
138+
abstract class AbstractClassWithAbstractProp
139+
{
140+
/**
141+
*Some info about the property here.
142+
*
143+
* @var int
144+
*/
145+
abstract $property {get;}
146+
}

src/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.inc.fixed

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,16 @@ class AsymVisibility {
131131
*/
132132
private(set) int $prop = 1;
133133
}
134+
135+
/**
136+
* Some info about the class here.
137+
*/
138+
abstract class AbstractClassWithAbstractProp
139+
{
140+
/**
141+
* Some info about the property here.
142+
*
143+
* @var int
144+
*/
145+
abstract $property {get;}
146+
}

src/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@ public function getErrorList($testFile='')
6868
$errors[121] = 1;
6969
$errors[125] = 1;
7070
$errors[126] = 1;
71+
72+
$errors[136] = 1;
73+
$errors[137] = 1;
74+
$errors[141] = 2;
75+
$errors[142] = 1;
76+
$errors[143] = 1;
77+
$errors[144] = 1;
7178
}//end if
7279

7380
return $errors;

0 commit comments

Comments
 (0)