← All changes
|
includes/Dependencies/DI/Compiler/ObjectCreationCompiler.php
+2
-1
4.5.0
→
4.9.2
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\Compiler; |
| @@ -98,9 +99,9 @@ | ||
| 98 | 99 | |
| 99 | 100 | return implode("\n ", $code); |
| 100 | 101 | } |
| 101 | 102 | |
| 102 | - public function resolveParameters(MethodInjection $definition = null, ReflectionMethod $method = null) : array | |
| 103 | + public function resolveParameters(?MethodInjection $definition = null, ?ReflectionMethod $method = null) : array | |
| 103 | 104 | { |
| 104 | 105 | $args = []; |
| 105 | 106 | |
| 106 | 107 | if (! $method) { |