Skip to content

Commit

Permalink
Static properties serialization fix - update.
Browse files Browse the repository at this point in the history
  • Loading branch information
p-bystritsky committed Jun 26, 2020
1 parent 6bf711b commit edfaf7c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ public static function backupStaticVariables()
| Files::INCLUDE_TESTS
),
function ($classFile) {
return StaticProperties::_isClassInCleanableFolders($classFile)
return strpos($classFile, 'TestFramework') === -1
&& StaticProperties::_isClassInCleanableFolders($classFile)
// phpcs:ignore Magento2.Functions.DiscouragedFunction
&& strpos(file_get_contents($classFile), ' static ') > 0;
}
Expand Down

0 comments on commit edfaf7c

Please sign in to comment.