Skip to content

Commit edfaf7c

Browse files
committed
Static properties serialization fix - update.
1 parent 6bf711b commit edfaf7c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dev/tests/integration/framework/Magento/TestFramework/Workaround/Cleanup/StaticProperties.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@ public static function backupStaticVariables()
185185
| Files::INCLUDE_TESTS
186186
),
187187
function ($classFile) {
188-
return StaticProperties::_isClassInCleanableFolders($classFile)
188+
return strpos($classFile, 'TestFramework') === -1
189+
&& StaticProperties::_isClassInCleanableFolders($classFile)
189190
// phpcs:ignore Magento2.Functions.DiscouragedFunction
190191
&& strpos(file_get_contents($classFile), ' static ') > 0;
191192
}

0 commit comments

Comments
 (0)