8000 [VarExporter] Fix phpdoc of `LazyGhostTrait` and `LazyProxyTrait` by alexandre-daubois · Pull Request #58563 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[VarExporter] Fix phpdoc of LazyGhostTrait and LazyProxyTrait #58563

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Symfony/Component/VarExporter/LazyGhostTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, true>|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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/VarExporter/LazyObjectInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/VarExporter/LazyProxyTrait.php
C722
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/Symfony/Component/VarExporter/VarExporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<class-string, class-string> &$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
*/
Expand Down
0