diff --git a/src/Patches.php b/src/Patches.php index 4140fd40..e1e61f88 100644 --- a/src/Patches.php +++ b/src/Patches.php @@ -295,7 +295,6 @@ public function postInstall(PackageEvent $event) { } catch (\Exception $e) { $this->io->write(' Could not apply patch! Skipping. The error was: ' . $e->getMessage() . ''); - $extra = $this->composer->getPackage()->getExtra(); if (getenv('COMPOSER_EXIT_ON_PATCH_FAILURE') || !empty($extra['composer-exit-on-patch-failure'])) { throw new \Exception("Cannot apply patch $description ($url)!"); }