← All changes
|
includes/Dependencies/DI/Definition/Helper/CreateDefinitionHelper.php
+2
-1
3.4.2
→
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\Definition\Helper; |
| @@ -52,9 +53,9 @@ | ||
| 52 | 53 | * |
| 53 | 54 | * @param string|null $className Class name of the object. |
| 54 | 55 | * If null, the name of the entry (in the container) will be used as class name. |
| 55 | 56 | */ |
| 56 | - public function __construct(string $className = null) | |
| 57 | + public function __construct(?string $className = null) | |
| 57 | 58 | { |
| 58 | 59 | $this->className = $className; |
| 59 | 60 | } |
| 60 | 61 | |