Skip to content

Commit 21052ea

Browse files
committed
skip TypedPropertyFromAssignsRector in various location
1 parent 536e497 commit 21052ea

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

‎rector.php‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
use Rector\PSR4\Rector\FileWithoutNamespace\NormalizeNamespaceByPSR4ComposerAutoloadRector;
4747
use Rector\Set\ValueObject\LevelSetList;
4848
use Rector\Set\ValueObject\SetList;
49+
use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector;
4950
use Utils\Rector\PassStrictParameterToFunctionParameterRector;
5051
use Utils\Rector\RemoveErrorSuppressInTryCatchStmtsRector;
5152
use Utils\Rector\RemoveVarTagFromClassConstantRector;
@@ -119,6 +120,13 @@
119120
GetMockBuilderGetMockToCreateMockRector::class => [
120121
__DIR__ . '/tests/system/Email/EmailTest.php',
121122
],
123+
124+
TypedPropertyFromAssignsRector::class => [
125+
__DIR__ . '/system/Model.php',
126+
__DIR__ . '/tests/system/API/ResponseTraitTest.php',
127+
__DIR__ . '/tests/system/Honeypot/HoneypotTest.php',
128+
__DIR__ . '/tests/system/Filters/HoneypotTest.php',
129+
],
122130
]);
123131

124132
// auto import fully qualified class names

‎system/Model.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class Model extends BaseModel
131131
/**
132132
* Primary Key value when inserting and useAutoIncrement is false.
133133
*
134-
* @var mixed|null
134+
* @var int|string|null
135135
*/
136136
private $tempPrimaryKeyValue;
137137

0 commit comments

Comments
 (0)