You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- ✅ `boolean` → `bool` conversion in @property tags
70
-
- ✅ `integer` → `int` conversion in @property tags
71
-
- ✅ Static analysis tags (@phpstan-*, @psalm-*)
72
-
- ✅ Union types (boolean|string → bool|string)
73
-
- ✅ Function parameter type declarations
74
-
- ✅ Function return type declarations
75
-
- ✅ Class property type declarations
76
-
- ✅ Type casting (boolean) → (bool), (integer) → (int)
77
-
- ✅ Nullable types (?boolean → ?bool)
78
-
- ✅ Context-aware detection (no duplicates)
65
+
66
+
- ✅ `boolean` → `bool` conversion in @param tags
67
+
- ✅ `integer` → `int` conversion in @param tags
68
+
- ✅ `boolean` → `bool` conversion in @return tags
69
+
- ✅ `integer` → `int` conversion in @return tags
70
+
- ✅ `boolean` → `bool` conversion in @var tags
71
+
- ✅ `integer` → `int` conversion in @var tags
72
+
- ✅ `boolean` → `bool` conversion in @property tags
73
+
- ✅ `integer` → `int` conversion in @property tags
74
+
- ✅ Static analysis tags (@phpstan-\*, @psalm-\*)
75
+
- ✅ Union types (boolean|string → bool|string)
76
+
- ✅ Function parameter type declarations
77
+
- ✅ Function return type declarations
78
+
- ✅ Class property type declarations
79
+
- ✅ Type casting (boolean) → (bool), (integer) → (int)
80
+
- ✅ Nullable types (?boolean → ?bool)
81
+
- ✅ Context-aware detection (no duplicates)
79
82
80
83
### DocblockFormatSniff Tests
81
-
- ✅ Exactly 1 space between @param elements
82
-
- ✅ Zero space detection and fixing
83
-
- ✅ Multiple space detection and fixing
84
-
- ✅ Empty line before @return tag
85
-
- ✅ All @ tag types (param, return, var, throws, see, etc.)
86
-
- ✅ Static analysis tag spacing
84
+
85
+
- ✅ Exactly 1 space between @param elements
86
+
- ✅ Zero space detection and fixing
87
+
- ✅ Multiple space detection and fixing
88
+
- ✅ Empty line before @return tag
89
+
- ✅ All @ tag types (param, return, var, throws, see, etc.)
90
+
- ✅ Static analysis tag spacing
87
91
88
92
### FunctionCommentSniff Tests
89
-
- ✅ Missing @return tag detection
90
-
- ✅ Auto-insertion of @return mixed
91
-
- ✅ Void function detection (explicit void)
92
-
- ✅ Implicit void function detection (echo-only)
93
-
- ✅ Empty return statement detection
94
-
- ✅ Correct indentation for auto-inserted tags
93
+
94
+
- ✅ Missing @return tag detection
95
+
- ✅ Auto-insertion of @return mixed
96
+
- ✅ Void function detection (explicit void)
97
+
- ✅ Implicit void function detection (echo-only)
98
+
- ✅ Empty return statement detection
99
+
- ✅ Correct indentation for auto-inserted tags
95
100
96
101
## Expected Results
97
102
98
103
Each test file contains deliberate violations that should be detected by the corresponding sniff. The test classes define the exact line numbers where errors should occur.
99
104
100
105
When running the tests, you should see:
101
-
-**All violations detected** on the expected lines
102
-
-**Auto-fixing capabilities** working correctly
103
-
-**No false positives** on correct code
106
+
107
+
-**All violations detected** on the expected lines
108
+
-**Auto-fixing capabilities** working correctly
109
+
-**No false positives** on correct code
104
110
105
111
## Integration Testing
106
112
107
113
The `StandardIntegrationTest` provides comprehensive testing of all sniffs working together, ensuring:
108
-
- No conflicts between sniffs
109
-
- Proper violation detection across all rule types
110
-
- Consistent behavior of the entire standard
114
+
115
+
- No conflicts between sniffs
116
+
- Proper violation detection across all rule types
0 commit comments