Skip to content

Commit 0364d9d

Browse files
committed
Refactor constant declarations to remove type hints for arrays and integers in test fixtures
1 parent d765f73 commit 0364d9d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎tests/TypeChecking/Boundaries/ConstantContractsTest.php‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class FixtureBadListConst
2222
/**
2323
* @var list<string>
2424
*/
25-
public const array Data = [
25+
public const Data = [
2626
'user' => 'User',
2727
'product' => 'Product',
2828
];
@@ -59,7 +59,7 @@ class FixtureValidListConst
5959
/**
6060
* @var list<string>
6161
*/
62-
public const array Data = [
62+
public const Data = [
6363
'User',
6464
'Product',
6565
];
@@ -97,7 +97,7 @@ class FixtureBadScalarConst
9797
/**
9898
* @var positive-int
9999
*/
100-
public const int RETRIES = -5;
100+
public const RETRIES = -5;
101101
}
102102
PHP;
103103

@@ -221,7 +221,7 @@ class ConfigWithDriftCheck
221221
/**
222222
* @var list<string>
223223
*/
224-
public const array Data = [
224+
public const Data = [
225225
'user' => 'User',
226226
];
227227
}
@@ -257,7 +257,7 @@ class ExactLineConfig
257257
/**
258258
* @var positive-int
259259
*/
260-
public const int FAILING_LINE = -99;
260+
public const FAILING_LINE = -99;
261261
}
262262
PHP;
263263

0 commit comments

Comments
 (0)