diff --git a/e107_tests/tests/_support/Helper/E107Base.php b/e107_tests/tests/_support/Helper/E107Base.php index 5ebb06145..d811a0af9 100644 --- a/e107_tests/tests/_support/Helper/E107Base.php +++ b/e107_tests/tests/_support/Helper/E107Base.php @@ -100,7 +100,7 @@ abstract class E107Base extends Base { $composer_installed_file = codecept_absolute_path("vendor/composer/installed.json"); $composer_installed = json_decode(file_get_contents($composer_installed_file)); - if (property_exists($composer_installed, "packages")) + if (isset($composer_installed->packages)) { // Composer 2 format for the installed packages manifest $composer_installed = $composer_installed->packages;