File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
lib/internal/Magento/Framework/Setup/Patch Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -297,8 +297,8 @@ private function prepareRegistry($moduleName, $patchType)
297
297
private function applyPatch (PatchInterface $ patch ): void
298
298
{
299
299
$ patch ->apply ();
300
- $ this ->patchHistory ->fixPatch (get_class ($ schemaPatch ));
301
- foreach ($ schemaPatch ->getAliases () as $ patchAlias ) {
300
+ $ this ->patchHistory ->fixPatch (get_class ($ patch ));
301
+ foreach ($ patch ->getAliases () ?? [] as $ patchAlias ) {
302
302
if (!$ this ->patchHistory ->isApplied ($ patchAlias )) {
303
303
$ this ->patchHistory ->fixPatch ($ patchAlias );
304
304
}
@@ -312,7 +312,7 @@ private function isApplied(PatchInterface $patch): bool
312
312
{
313
313
$ patchIdentity = get_class ($ patch );
314
314
if (!$ this ->patchHistory ->isApplied ($ patchIdentity )) {
315
- foreach ($ patch ->getAliases () as $ alias ) {
315
+ foreach ($ patch ->getAliases () ?? [] as $ alias ) {
316
316
if ($ this ->patchHistory ->isApplied ($ alias )) {
317
317
$ this ->patchHistory ->fixPatch ($ patchIdentity );
318
318
return true ;
You can’t perform that action at this time.
0 commit comments