← All changes
|
includes/Dependencies/DI/Definition/Source/AnnotationBasedAutowiring.php
+2
-1
4.4.1
→
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\Source; |
| @@ -51,9 +52,9 @@ | ||
| 51 | 52 | { |
| 52 | 53 | $this->ignorePhpDocErrors = (bool) $ignorePhpDocErrors; |
| 53 | 54 | } |
| 54 | 55 | |
| 55 | - public function autowire(string $name, ObjectDefinition $definition = null) | |
| 56 | + public function autowire(string $name, ?ObjectDefinition $definition = null) | |
| 56 | 57 | { |
| 57 | 58 | $className = $definition ? $definition->getClassName() : $name; |
| 58 | 59 | |
| 59 | 60 | if (!class_exists($className) && !interface_exists($className)) { |