More yoda conditions

This commit is contained in:
David Stone
2025-02-09 12:30:02 -07:00
parent d9122a410d
commit 0a4c81c105
97 changed files with 323 additions and 289 deletions

View File

@ -257,7 +257,7 @@ class Field_Templates_Manager extends Base_Manager {
$holder_name = "instantiated_{$field_type}_templates";
if ( ! isset($this->holders[ $holder_name ]) || $this->holders[ $holder_name ] === null) {
if ( ! isset($this->holders[ $holder_name ]) || null === $this->holders[ $holder_name ]) {
$this->holders[ $holder_name ] = array_map([$this, 'instantiate_field_template'], $this->get_templates($field_type));
}