File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ public function testInitPhpDocClosureWithoutDocBlock(): void
5555 {
5656 $ phpdoc = (new MacroMock ())->getPhpDoc (
5757 new ReflectionFunction (
58- function (int $ a = null ): int {
58+ function (? int $ a = null ): int {
5959 return 0 ;
6060 }
6161 )
@@ -79,7 +79,7 @@ public function testInitPhpDocClosureWithArgsAndReturnType(): void
7979 /**
8080 * Test docblock.
8181 */
82- function (int $ a = null ): int {
82+ function (? int $ a = null ): int {
8383 return 0 ;
8484 }
8585 )
@@ -103,7 +103,7 @@ public function testInitPhpDocClosureWithArgs(): void
103103 /**
104104 * Test docblock.
105105 */
106- function (int $ a = null ) {
106+ function (? int $ a = null ) {
107107 return 0 ;
108108 }
109109 )
@@ -274,7 +274,7 @@ public function __construct()
274274 // no need to call parent
275275 }
276276
277- public function getPhpDoc (ReflectionFunctionAbstract $ method , ReflectionClass $ class = null ): DocBlock
277+ public function getPhpDoc (ReflectionFunctionAbstract $ method , ? ReflectionClass $ class = null ): DocBlock
278278 {
279279 return (new Macro ($ method , '' , $ class ?? $ method ->getClosureScopeClass ()))->phpdoc ;
280280 }
You can’t perform that action at this time.
0 commit comments