← All changes
|
includes/Dependencies/DI/Definition/Resolver/ObjectCreator.php
+2
-1
4.5.0
→
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; |
| @@ -211,9 +212,9 @@ | ||
| 211 | 212 | |
| 212 | 213 | self::setPrivatePropertyValue($propertyInjection->getClassName(), $object, $propertyName, $value); |
| 213 | 214 | } |
| 214 | 215 | |
| 215 | - public static function setPrivatePropertyValue(string $className = null, $object, string $propertyName, $propertyValue) | |
| 216 | + public static function setPrivatePropertyValue(?string $className, $object, string $propertyName, $propertyValue) | |
| 216 | 217 | { |
| 217 | 218 | $className = $className ?: get_class($object); |
| 218 | 219 | |
| 219 | 220 | $property = new ReflectionProperty($className, $propertyName); |