File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
lib/internal/Magento/Framework/Setup/Patch Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -237,12 +237,12 @@ public function applySchemaPatch($moduleName = null)
237237 continue ;
238238 }
239239 /**
240- * @var SchemaPatchInterface $schemaPatch
240+ * @var SchemaPatchInterface $schemaPatchObject
241241 */
242- $ schemaPatch = $ this ->patchFactory ->create ($ schemaPatch , ['schemaSetup ' => $ this ->schemaSetup ]);
243- $ schemaPatch ->apply ();
244- $ this ->patchHistory ->fixPatch (get_class ($ schemaPatch ));
245- foreach ($ schemaPatch ->getAliases () as $ patchAlias ) {
242+ $ schemaPatchObject = $ this ->patchFactory ->create ($ schemaPatch , ['schemaSetup ' => $ this ->schemaSetup ]);
243+ $ schemaPatchObject ->apply ();
244+ $ this ->patchHistory ->fixPatch (get_class ($ schemaPatchObject ));
245+ foreach ($ schemaPatchObject ->getAliases () as $ patchAlias ) {
246246 if (!$ this ->patchHistory ->isApplied ($ patchAlias )) {
247247 $ this ->patchHistory ->fixPatch ($ patchAlias );
248248 }
@@ -252,7 +252,7 @@ public function applySchemaPatch($moduleName = null)
252252 new Phrase (
253253 'Unable to apply patch %1 for module %2. Original exception message: %3 ' ,
254254 [
255- get_class ( $ schemaPatch) ,
255+ $ schemaPatch ,
256256 $ moduleName ,
257257 $ e ->getMessage ()
258258 ]
You can’t perform that action at this time.
0 commit comments