Commit 143ea01c authored by Drew Webber's avatar Drew Webber
Browse files

Issue #3322011 by poker10: [D7 PHP 8.2] Deprecated function: Creation of...

Issue #3322011 by poker10: [D7 PHP 8.2] Deprecated function: Creation of dynamic property EntityFieldQuery::$alterMyExecuteCallbackPlease
parent 64d8e381
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -186,7 +186,7 @@ function field_test_field_create_field($field) {
 * Implements hook_entity_query_alter().
 */
function field_test_entity_query_alter(&$query) {
  if (!empty($query->alterMyExecuteCallbackPlease)) {
  if (variable_get('field_test_entity_query_alter_execute_callback', FALSE)) {
    $query->executeCallback = 'field_test_dummy_field_storage_query';
  }
}
+2 −1
Original line number Diff line number Diff line
@@ -1332,10 +1332,11 @@ class EntityFieldQueryTestCase extends DrupalWebTestCase {
    $query = new EntityFieldQuery();
    $query->entityCondition('entity_type', 'test_entity_bundle_key');
    // Add a flag that will be caught by field_test_entity_query_alter().
    $query->alterMyExecuteCallbackPlease = TRUE;
    variable_set('field_test_entity_query_alter_execute_callback', TRUE);
    $this->assertEntityFieldQuery($query, array(
      array('user', 1),
    ), 'executeCallback can override the query handler when set in a hook_entity_query_alter().');
    variable_set('field_test_entity_query_alter_execute_callback', FALSE);

    // Mixed-storage queries.
    $query = new EntityFieldQuery();