We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d218134 commit 5f494f9Copy full SHA for 5f494f9
tests/PHPStan/Analyser/data/integer-range-types.php
@@ -180,12 +180,18 @@ class X {
180
*/
181
public $error2;
182
183
+ /**
184
+ * @var int<min, max>
185
+ */
186
+ public $int;
187
+
188
public function supportsPhpdocIntegerRange() {
189
assertType('int<0, 100>', $this->percentage);
190
assertType('int<min, 100>', $this->min);
191
assertType('int<0, max>', $this->max);
192
193
assertType('*ERROR*', $this->error1);
194
assertType('*ERROR*', $this->error2);
195
+ assertType('int', $this->int);
196
}
197
0 commit comments