8000 minor #58563 [VarExporter] Fix phpdoc of `LazyGhostTrait` and `LazyPr… · symfony/symfony@c360931 · GitHub
[go: up one dir, main page]

Skip to content

Commit c360931

Browse files
committed
minor #58563 [VarExporter] Fix phpdoc of LazyGhostTrait and LazyProxyTrait (alexandre-daubois)
This PR was merged into the 7.2 branch. Discussion ---------- [VarExporter] Fix phpdoc of `LazyGhostTrait` and `LazyProxyTrait` | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT Commits ------- 327663a [VarExporter] Fix phpdoc of `LazyGhostTrait` and `LazyProxyTrait`
2 parents b3d02ce + 327663a commit c360931

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/Symfony/Component/VarExporter/LazyGhostTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ trait LazyGhostTrait
2727
* Skipped properties should be indexed by their array-cast identifier, see
2828
* https://php.net/manual/language.types.array#language.types.array.casting
2929
*
30-
* @param (\Closure(static):void $initializer The closure should initialize the object it receives as argument
30+
* @param \Closure(static):void $initializer The closure should initialize the object it receives as argument
3131
* @param array<string, true>|null $skippedProperties An array indexed by the properties to skip, a.k.a. the ones
3232
* that the initializer doesn't initialize, if any
3333< 8000 /code>
* @param static|null $instance
@@ -74,7 +74,7 @@ public static function createLazyGhost(\Closure $initializer, ?array $skippedPro
7474
/**
7575
* Returns whether the object is initialized.
7676
*
77-
* @param $partial Whether partially initialized objects should be considered as initialized
77+
* @param bool $partial Whether partially initialized objects should be considered as initialized
7878
*/
7979
#[Ignore]
8080
public function isLazyObjectInitialized(bool $partial = false): bool

src/Symfony/Component/VarExporter/LazyObjectInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ interface LazyObjectInterface
1616
/**
1717
* Returns whether the object is initialized.
1818
*
19-
* @param $partial Whether partially initialized objects should be considered as initialized
19+
* @param bool $partial Whether partially initialized objects should be considered as initialized
2020
*/
2121
public function isLazyObjectInitialized(bool $partial = false): bool;
2222

src/Symfony/Component/VarExporter/LazyProxyTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public static function createLazyProxy(\Closure $initializer, ?object $instance
6666
/**
6767
* Returns whether the object is initialized.
6868
*
69-
* @param $partial Whether partially initialized objects should be considered as initialized
69+
* @param bool $partial Whether partially initialized objects should be considered as initialized
7070
*/
7171
#[Ignore]
7272
public function isLazyObjectInitialized(bool $partial = false): bool

src/Symfony/Component/VarExporter/VarExporter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ final class VarExporter
3232
/**
3333
* Exports a serializable PHP value to PHP code.
3434
*
35-
* @param bool &$isStaticValue Set to true after execution if the provided value is static, false otherwise
36-
* @param array &$foundClasses Classes found in the value are added to this list as both keys and values
35+
* @param bool &$isStaticValue Set to true after execution if the provided value is static, false otherwise
36+
* @param array<class-string, class-string> &$foundClasses Classes found in the value are added to this list as both keys and values
3737
*
3838
* @throws ExceptionInterface When the provided value cannot be serialized
3939
*/

0 commit comments

Comments
 (0)
0