Skip to content

Commit

Permalink
Merge pull request #92 from pantheon-systems/check-if-property-exists
Browse files Browse the repository at this point in the history
Check if the properties exist
  • Loading branch information
jazzsequence authored Nov 15, 2022
2 parents cf62159 + c89f88f commit 889ae6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Update/Methods/WpCliUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ public function update(WorkingCopy $originalProject, array $parameters)

// Apply configured filters.
$this->filters->apply(
( $this->originalProject ) ? $this->originalProject->dir() : '',
( $this->updatedProject ) ? $this->updatedProject->dir() : '',
( property_exists($this, 'originalProject') && $this->originalProject ) ? $this->originalProject->dir() : '',
( property_exists($this, 'updatedProject') && $this->updatedProject ) ? $this->updatedProject->dir() : '',
$parameters
);

Expand Down

0 comments on commit 889ae6c

Please sign in to comment.