8000 array_key_exists -> isset · symfony/symfony@26fac26 · GitHub
[go: up one dir, main page]

Skip to content

Commit 26fac26

Browse files
committed
array_key_exists -> isset
1 parent fed704b commit 26fac26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Debug/DebugClassLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public function loadClass($class)
169169
}
170170

171171
$parent = get_parent_class($class);
172-
if ($parent && array_key_exists($parent, self::$final)) {
172+
if ($parent && isset(self::$final[$parent])) {
173173
@trigger_error(sprintf('The %s class is considered final%s. It may change without further notice as of its next major version. You should not extend it from %s.', $parent, self::$final[$parent], $name), E_USER_DEPRECATED);
174174
}
175175

0 commit comments

Comments
 (0)
0