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 e49f085 commit f5e3662Copy full SHA for f5e3662
1 file changed
rules-tests/TypeDeclaration/Rector/ClassMethod/AddMethodCallBasedStrictParamTypeRector/Fixture/unique_types.php.inc
@@ -0,0 +1,39 @@
1
+<?php
2
+
3
+namespace Rector\Tests\TypeDeclaration\Rector\ClassMethod\AddMethodCallBasedStrictParamTypeRector\Fixture;
4
5
+final class UniqueTypes
6
+{
7
+ public function run()
8
+ {
9
+ $this->getById(5);
10
+ $this->getById(null);
11
12
+ }
13
14
+ private function getById($id)
15
16
17
+}
18
19
+?>
20
+-----
21
22
23
24
25
26
27
28
29
30
31
32
33
34
+ private function getById(?int $id)
35
36
37
38
39
0 commit comments