Use PHP 7.4 featers and PHP 8 polyfills

This commit is contained in:
David Stone
2025-02-08 13:57:32 -07:00
parent 8bea6067cd
commit b41dc2b2eb
550 changed files with 15270 additions and 14627 deletions

View File

@ -46,7 +46,7 @@ class Email_Query extends Post_Query {
* @access public
* @var mixed
*/
protected $item_shape = '\\WP_Ultimo\\Models\\Email';
protected $item_shape = \WP_Ultimo\Models\Email::class;
/**
* Group to cache queries and queried items in.
@ -73,9 +73,9 @@ class Email_Query extends Post_Query {
* @param array $query Query parameters being passed.
* @return array
*/
public function query($query = array()) {
public function query($query = []) {
$query['type__in'] = array('system_email');
$query['type__in'] = ['system_email'];
return parent::query($query);
}