From 327663a93026f34fa39539a3475005db5e55985d Mon Sep 17 00:00:00 2001 From: Alexandre Daubois Date: Mon, 14 Oct 2024 14:46:10 +0200 Subject: [PATCH] [VarExporter] Fix phpdoc of `LazyGhostTrait` and `LazyProxyTrait` --- src/Symfony/Component/VarExporter/LazyGhostTrait.php | 4 ++-- src/Symfony/Component/VarExporter/LazyObjectInterface.php | 2 +- src/Symfony/Component/VarExporter/LazyProxyTrait.php | 2 +- src/Symfony/Component/VarExporter/VarExporter.php | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Symfony/Component/VarExporter/LazyGhostTrait.php b/src/Symfony/Component/VarExporter/LazyGhostTrait.php index f32f1b6d0ce48..72a96d42449ae 100644 --- a/src/Symfony/Component/VarExporter/LazyGhostTrait.php +++ b/src/Symfony/Component/VarExporter/LazyGhostTrait.php @@ -27,7 +27,7 @@ trait LazyGhostTrait * Skipped properties should be indexed by their array-cast identifier, see * https://php.net/manual/language.types.array#language.types.array.casting * - * @param (\Closure(static):void $initializer The closure should initialize the object it receives as argument + * @param \Closure(static):void $initializer The closure should initialize the object it receives as argument * @param array|null $skippedProperties An array indexed by the properties to skip, a.k.a. the ones * that the initializer doesn't initialize, if any * @param static|null $instance @@ -74,7 +74,7 @@ public static function createLazyGhost(\Closure $initializer, ?array $skippedPro /** * Returns whether the object is initialized. * - * @param $partial Whether partially initialized objects should be considered as initialized + * @param bool $partial Whether partially initialized objects should be considered as initialized */ #[Ignore] public function isLazyObjectInitialized(bool $partial = false): bool diff --git a/src/Symfony/Component/VarExporter/LazyObjectInterface.php b/src/Symfony/Component/VarExporter/LazyObjectInterface.php index 36708845912ca..3422dc6ca8d6b 100644 --- a/src/Symfony/Component/VarExporter/LazyObjectInterface.php +++ b/src/Symfony/Component/VarExporter/LazyObjectInterface.php @@ -16,7 +16,7 @@ interface LazyObjectInterface /** * Returns whether the object is initialized. * - * @param $partial Whether partially initialized objects should be considered as initialized + * @param bool $partial Whether partially initialized objects should be considered as initialized */ public function isLazyObjectInitialized(bool $partial = false): bool; diff --git a/src/Symfony/Component/VarExporter/LazyProxyTrait.php b/src/Symfony/Component/VarExporter/LazyProxyTrait.php index 9fc719ffbaa2a..795e4d77d530d 100644 --- a/src/Symfony/Component/VarExporter/LazyProxyTrait.php +++ b/src/Symfony/Component/VarExporter/LazyProxyTrait.php @@ -66,7 +66,7 @@ public static function createLazyProxy(\Closure $initializer, ?object $instance /** * Returns whether the object is initialized. * - * @param $partial Whether partially initialized objects should be considered as initialized + * @param bool $partial Whether partially initialized objects should be considered as initialized */ #[Ignore] public function isLazyObjectInitialized(bool $partial = false): bool diff --git a/src/Symfony/Component/VarExporter/VarExporter.php b/src/Symfony/Component/VarExporter/VarExporter.php index 22e9b51529e24..606a9fd5cbee5 100644 --- a/src/Symfony/Component/VarExporter/VarExporter.php +++ b/src/Symfony/Component/VarExporter/VarExporter.php @@ -32,8 +32,8 @@ final class VarExporter /** * Exports a serializable PHP value to PHP code. * - * @param bool &$isStaticValue Set to true after execution if the provided value is static, false otherwise - * @param array &$foundClasses Classes found in the value are added to this list as both keys and values + * @param bool &$isStaticValue Set to true after execution if the provided value is static, false otherwise + * @param array &$foundClasses Classes found in the value are added to this list as both keys and values * * @throws ExceptionInterface When the provided value cannot be serialized */