← All changes
|
includes/Dependencies/DI/Definition/Resolver/ParameterResolver.php
+3
-2
3.3.4
→
4.9.3
View file →
| @@ -1,5 +1,6 @@ | ||
| 1 | 1 | <?php |
| 2 | +// phpcs:ignoreFile -- Bundled third-party (Mozart) dependency; exempt from plugin coding standards. | |
| 2 | 3 | |
| 3 | 4 | declare(strict_types=1); |
| 4 | 5 | |
| 5 | 6 | namespace WPDeveloper\BetterDocs\Dependencies\DI\Definition\Resolver; |
| @@ -35,10 +36,10 @@ | ||
| 35 | 36 | * @throws InvalidDefinition A parameter has no value defined or guessable. |
| 36 | 37 | * @return array Parameters to use to call the function. |
| 37 | 38 | */ |
| 38 | 39 | public function resolveParameters( |
| 39 | - MethodInjection $definition = null, | |
| 40 | - ReflectionMethod $method = null, | |
| 40 | + ?MethodInjection $definition = null, | |
| 41 | + ?ReflectionMethod $method = null, | |
| 41 | 42 | array $parameters = [] |
| 42 | 43 | ) { |
| 43 | 44 | $args = []; |
| 44 | 45 | |