← All changes
|
includes/Dependencies/DI/Definition/Source/NoAutowiring.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; |
| @@ -13,9 +14,9 @@ | ||
| 13 | 14 | * @author Matthieu Napoli <[email protected]> |
| 14 | 15 | */ |
| 15 | 16 | class NoAutowiring implements Autowiring |
| 16 | 17 | { |
| 17 | - public function autowire(string $name, ObjectDefinition $definition = null) | |
| 18 | + public function autowire(string $name, ?ObjectDefinition $definition = null) | |
| 18 | 19 | { |
| 19 | 20 | throw new InvalidDefinition(sprintf( |
| 20 | 21 | 'Cannot autowire entry "%s" because autowiring is disabled', |
| 21 | 22 | $name |