Skip to content
Permalink
Browse files

Fix issue where extension_loaded stopped constructor being recognised

  • Loading branch information...
muglug committed Jun 15, 2019
1 parent d7f5fa2 commit c4551bd0dfda5b2773a3371fbf2e82bfef3371a2
@@ -288,7 +288,6 @@ public static function analyze(
$stmt->inferredType = new Type\Union([new TNamedObject($fq_class_name)]);
if (strtolower($fq_class_name) !== 'stdclass' &&
$context->check_classes &&
$codebase->classlikes->classExists($fq_class_name)
) {
$storage = $codebase->classlike_storage_provider->get($fq_class_name);
@@ -387,6 +387,16 @@ class D extends C {
(new D)->bar();'
],
'usedClassAfterExtensionLoaded' => [
'<?php
class A {
public function __construct() {}
}
if (extension_loaded("fdsfdsfd")) {
new A();
}',
],
];
}

0 comments on commit c4551bd

Please sign in to comment.
You can’t perform that action at this time.