8000 [ProxyManagerBridge] minor CS fix · symfony/symfony@05ebca7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 05ebca7

Browse files
[ProxyManagerBridge] minor CS fix
1 parent cb13594 commit 05ebca7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Symfony/Bridge/ProxyManager/LazyProxy/PhpDumper/LazyLoadingValueHolderGenerator.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function generate(\ReflectionClass $originalClass, ClassGenerator $classG
104104
public function getProxifiedClass(Definition $definition): ?string
105105
{
106106
if (!$definition->hasTag('proxy')) {
107-
return \class_exists($class = $definition->getClass()) || \interface_exists($class) ? $class : null;
107+
return class_exists($class = $definition->getClass()) || interface_exists($class, false) ? $class : null;
108108
}
109109
if (!$definition->isLazy()) {
110110
throw new \InvalidArgumentException(sprintf('Invalid definition for service of class "%s": setting the "proxy" tag on a service requires it to be "lazy".', $definition->getClass()));
@@ -114,7 +114,7 @@ public function getProxifiedClass(Definition $definition): ?string
114114
throw new \InvalidArgumentException(sprintf('Invalid definition for service of class "%s": the "interface" attribute is missing on the "proxy" tag.', $definition->getClass()));
115115
}
116116
if (1 === \count($tags)) {
117-
return \class_exists($tags[0]['interface']) || \interface_exists($tags[0]['interface']) ? $tags[0]['interface'] : null;
117+
return class_exists($tags[0]['interface']) || interface_exists($tags[0]['interface'], false) ? $tags[0]['interface'] : null;
118118
}
119119

120120
$proxyInterface = 'LazyProxy';
@@ -123,15 +123,15 @@ public function getProxifiedClass(Definition $definition): ?string
123123
if (!isset($tag['interface'])) {
124124
throw new \InvalidArgumentException(sprintf('Invalid definition for service of class "%s": the "interface" attribute is missing on a "proxy" tag.', $definition->getClass()));
125125
}
126-
if (!\interface_exists($tag['interface'])) {
126+
if (!interface_exists($tag['interface'])) {
127127
throw new \InvalidArgumentException(sprintf('Invalid definition for service of class "%s": several "proxy" tags found but "%s" is not an interface.', $definition->getClass(), $tag['interface']));
128128
}
129129

130130
$proxyInterface .= '\\'.$tag['interface'];
131131
$interfaces .= ', \\'.$tag['interface'];
132132
}
133133

134-
if (!\interface_exists($proxyInterface)) {
134+
if (!interface_exists($proxyInterface)) {
135135
$i = strrpos($proxyInterface, '\\');
136136
$namespace = substr($proxyInterface, 0, $i);
137137
$interface = substr($proxyInterface, 1 + $i);

0 commit comments

Comments
 (0)
0