From 9fc82edcb0c984e21977f060b100137f866e8d10 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Sat, 27 Sep 2025 15:42:02 +0700 Subject: [PATCH] Add fixture to ensure unique types on AddMethodCallBasedStrictParamTypeRector --- .../Fixture/unique_types.php.inc | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 rules-tests/TypeDeclaration/Rector/ClassMethod/AddMethodCallBasedStrictParamTypeRector/Fixture/unique_types.php.inc diff --git a/rules-tests/TypeDeclaration/Rector/ClassMethod/AddMethodCallBasedStrictParamTypeRector/Fixture/unique_types.php.inc b/rules-tests/TypeDeclaration/Rector/ClassMethod/AddMethodCallBasedStrictParamTypeRector/Fixture/unique_types.php.inc new file mode 100644 index 00000000000..47ef84af009 --- /dev/null +++ b/rules-tests/TypeDeclaration/Rector/ClassMethod/AddMethodCallBasedStrictParamTypeRector/Fixture/unique_types.php.inc @@ -0,0 +1,39 @@ +getById(5); + $this->getById(null); + $this->getById(5); + } + + private function getById($id) + { + } +} + +?> +----- +getById(5); + $this->getById(null); + $this->getById(5); + } + + private function getById(?int $id) + { + } +} + +?>