Skip to content

Commit

Permalink
Fix Scope::$shortName cannot be unset to null (#1156)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek authored Jan 27, 2024
1 parent 2724005 commit 9b2c14c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ class ControllerUniqueFields
}
use \Atk4\Core\TrackableTrait;
protected $fields = null;
protected ?array $fields = null;
protected function init(): void
{
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Scope.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function __clone()
if ($this->issetOwner()) {
$this->unsetOwner();
}
$this->shortName = null; // @phpstan-ignore-line
// $this->shortName = null; // uncomment once https://github.com/php/php-src/issues/9389 is resolved
}

/**
Expand Down

0 comments on commit 9b2c14c

Please sign in to comment.