WP-Query-Builder icon indicating copy to clipboard operation
WP-Query-Builder copied to clipboard

Deprecated: Creation of dynamic property

Open DenisLopatin opened this issue 1 year ago • 0 comments

Error in setting a private property bindings.

Example:

use WPQueryBuilder\Query;

global $wpdb;

$qb = new Query($wpdb);

$res = $qb->select(['post_title'])->from('wp_posts')->where('ID', '=', 1)->get();

Output:

Deprecated: Creation of dynamic property WPQueryBuilder\CompositeWhereClause::$bindings is deprecated in /usr/share/nginx/html/wordpress/wp-content/my/WP-Query-Builder/src/CompositeWhereClause.php on line 27

image image

DenisLopatin avatar Apr 27 '24 19:04 DenisLopatin