Skip to content

Commit

Permalink
minor #42120 [ProxyManagerBridge] Add types to private properties (de…
Browse files Browse the repository at this point in the history
…rrabus)

This PR was merged into the 6.0 branch.

Discussion
----------

[ProxyManagerBridge] Add types to private properties

| Q             | A
| ------------- | ---
| Branch?       | 6.0
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | N/A
| License       | MIT
| Doc PR        | N/A

Commits
-------

042ae82 [ProxyManagerBridge] Add types to private properties
  • Loading branch information
nicolas-grekas committed Jul 15, 2021
2 parents 01fbab7 + 042ae82 commit d6b4e1c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Expand Up @@ -20,13 +20,13 @@
*/
class LazyLoadingValueHolderFactory extends BaseFactory
{
private $generator;
private ProxyGeneratorInterface $generator;

/**
* {@inheritdoc}
*/
public function getGenerator(): ProxyGeneratorInterface
{
return $this->generator ?: $this->generator = new LazyLoadingValueHolderGenerator();
return $this->generator ??= new LazyLoadingValueHolderGenerator();
}
}
Expand Up @@ -25,7 +25,7 @@
*/
class RuntimeInstantiator implements InstantiatorInterface
{
private $factory;
private LazyLoadingValueHolderFactory $factory;

public function __construct()
{
Expand Down
Expand Up @@ -25,9 +25,9 @@
*/
class ProxyDumper implements DumperInterface
{
private $salt;
private $proxyGenerator;
private $classGenerator;
private string $salt;
private LazyLoadingValueHolderGenerator $proxyGenerator;
private BaseGeneratorStrategy $classGenerator;

public function __construct(string $salt = '')
{
Expand Down

0 comments on commit d6b4e1c

Please sign in to comment.