Title: php 8.1 deprecated false to array conversion
Last modified: October 25, 2023

---

# php 8.1 deprecated false to array conversion

 *  Resolved [Fee](https://wordpress.org/support/users/wdfee/)
 * (@wdfee)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/php-8-1-deprecated-false-to-array-conversion/)
 * Hello, with php8.1 we get the following warning (in debug mode – in local development
   environment):
 * > Deprecated: Automatic conversion of false to array is deprecated in /[…]/plugins/
   > relevanssi/lib/search.php on line 1277

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/php-8-1-deprecated-false-to-array-conversion/#post-17149262)
 * You’re doing a meta query (or sorting posts by a meta key). What kind of meta
   query, exactly?
 *  Thread Starter [Fee](https://wordpress.org/support/users/wdfee/)
 * (@wdfee)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/php-8-1-deprecated-false-to-array-conversion/#post-17150289)
 * Hi Mikko, I finally found the mistake (in the custom code, not in relevanssi)
   and got it working, thank you.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘php 8.1 deprecated false to array conversion’ is closed to new replies.

 * ![](https://ps.w.org/relevanssi/assets/icon-256x256.png?rev=3529670)
 * [Relevanssi - A Better Search](https://wordpress.org/plugins/relevanssi/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/relevanssi/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/relevanssi/)
 * [Active Topics](https://wordpress.org/support/plugin/relevanssi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/relevanssi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/relevanssi/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Fee](https://wordpress.org/support/users/wdfee/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/php-8-1-deprecated-false-to-array-conversion/#post-17150289)
 * Status: resolved