Skip to content

Commit

Permalink
Reapply change from #561 to avoid phpstan complain about isset and al…
Browse files Browse the repository at this point in the history
…ready initialized property
  • Loading branch information
ajibarra committed Sep 16, 2022
1 parent 5d8a7dd commit bf10fd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Command/BakeSeedCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function fileName($name): string
public function getPath(Arguments $args): string
{
$path = ROOT . DS . $this->pathFragment;
if (isset($this->plugin)) {
if ($this->plugin) {
$path = $this->_pluginPath($this->plugin) . $this->pathFragment;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Command/BakeSimpleMigrationCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function fileName($name): string
public function getPath(Arguments $args): string
{
$path = ROOT . DS . $this->pathFragment;
if (isset($this->plugin)) {
if ($this->plugin) {
$path = $this->_pluginPath($this->plugin) . $this->pathFragment;
}

Expand Down

0 comments on commit bf10fd8

Please sign in to comment.