Title: Fix for PHP Static warning on PHP 7
Last modified: December 12, 2017

---

# Fix for PHP Static warning on PHP 7

 *  Resolved [Dale Mugford](https://wordpress.org/support/users/dalemugford/)
 * (@dalemugford)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/fix-for-php-static-warning-on-php-7/)
 * Just posting a fix, hopefully will be included in a future update for the plugin:
 * on line 14 in `admin_header.tpl.php`, a new instance is needed.
 * so line 14 changes from:
 * `$current_tab = DWLS_Util::match_array_key_or_default(`
 * to:
 * `$current_tab = (new DWLS_Util)->match_array_key_or_default(`

Viewing 1 replies (of 1 total)

 *  Plugin Author [Dana Ross](https://wordpress.org/support/users/csixty4/)
 * (@csixty4)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/fix-for-php-static-warning-on-php-7/#post-10113770)
 * Thanks. This will be fixed in the next release (probably tonight).

Viewing 1 replies (of 1 total)

The topic ‘Fix for PHP Static warning on PHP 7’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/daves-wordpress-live-search_daad6f.
   svg)
 * [Dave's WordPress Live Search](https://wordpress.org/plugins/daves-wordpress-live-search/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/daves-wordpress-live-search/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/daves-wordpress-live-search/)
 * [Active Topics](https://wordpress.org/support/plugin/daves-wordpress-live-search/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/daves-wordpress-live-search/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/daves-wordpress-live-search/reviews/)

## Tags

 * [bugs](https://wordpress.org/support/topic-tag/bugs/)
 * [fixes](https://wordpress.org/support/topic-tag/fixes/)

 * 1 reply
 * 2 participants
 * Last reply from: [Dana Ross](https://wordpress.org/support/users/csixty4/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/fix-for-php-static-warning-on-php-7/#post-10113770)
 * Status: resolved