Add an alter hook to EntityQuery

Created on 21 September 2018, over 5 years ago
Updated 28 April 2024, about 2 months ago

Problem/Motivation

EntityFieldQuery in D7 had an alter hook. When we rewrote it for D8, we forgot to add an alter hook. The dead docs were removed in #2611638: hook_entity_query_alter() is dead, remove it from entity.api.php โ†’ .

However, we definitely need it. It is currently a blocker for anyone looking to hardcode their own filtering behavior. Without hook_entity_query_alter() we need to alter the underlying SQL query, which is not trivial due to field storage (requires using Tables to add the joins, and copying the EntityQuery Condition logic for selecting a LEFT vs INNER join).

For examples of the difficulty in modifying entity queries using only the current hook_query_entity_reference() see block_content_query_entity_reference_alter() and the Query Access API ( โœจ Add an entity query access API and deprecate hook_query_ENTITY_TYPE_access_alter() Needs work ).

Proposed resolution

Let's re-add the hook.

User interface changes

None.

API changes

Add four hooks to enable custom query filtering:

  • hook_entity_query_alter(\Drupal\Core\Entity\Query\QueryInterface $query)
  • hook_entity_query_ENTITY_TYPE_alter(\Drupal\Core\Entity\Query\QueryInterface $query)
  • hook_entity_query_tag__TAG_alter(\Drupal\Core\Entity\Query\QueryInterface $query)
  • hook_entity_query_tag__ENTITY_TYPE__TAG_alter(\Drupal\Core\Entity\Query\QueryInterface $query)

Note the double underscores to avoid potential hook collisions for hook_entity_query_tag implementations.

Data model changes

Entity queries can now be altered by hooks.

Release notes snippet

Alter hooks have been added for entity queries โ†’ , making it easier for modules to modify entity queries executed by other code.

๐Ÿ“Œ Task
Status

Fixed

Version

11.0 ๐Ÿ”ฅ

Component
Entityย  โ†’

Last updated about 3 hours ago

  • Maintained by
  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom @catch
  • ๐Ÿ‡จ๐Ÿ‡ญSwitzerland @Berdir
  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany @hchonov
Created by

๐Ÿ‡ท๐Ÿ‡ธSerbia bojanz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • The Needs Review Queue Bot โ†’ tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

    Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

    Consult the Drupal Contributor Guide โ†’ to find step-by-step guides for working with issues.

  • last update about 1 year ago
    Patch Failed to Apply
  • ๐Ÿ‡บ๐Ÿ‡ฆUkraine SmovS Lutsk

    Rerolled 3001496-15.patch to 10.1.x-dev.

  • last update about 1 year ago
    Custom Commands Failed
  • ๐Ÿ‡บ๐Ÿ‡ฆUkraine SmovS Lutsk
  • ๐Ÿ‡บ๐Ÿ‡ฆUkraine SmovS Lutsk

    interdiff_15_29.txt

  • ๐Ÿ‡บ๐Ÿ‡ฆUkraine SmovS Lutsk

    Added accessCheck() to Drupal\KernelTests\Core\Entity\EntityQueryTest::testAlterHook

  • last update about 1 year ago
    29,389 pass
  • 47:10
    46:27
    Running
  • Status changed to Needs review about 1 year ago
  • ๐Ÿ‡บ๐Ÿ‡ฆUkraine SmovS Lutsk
  • Status changed to Needs work about 1 year ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave

    Will require a change record for the api change.

  • Status changed to Needs review about 1 year ago
  • Status changed to Needs work about 1 year ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave

    Seems to be a copy and paste of the description on this ticket. Leaving the tag.

  • ๐Ÿ‡ง๐Ÿ‡ชBelgium Robin.Houtevelts

    I stumbled upon this issue through my RSS feed on the change records.
    However it doesn't read like a CR.

    I agree that it needs a different text and an example usage.

  • ๐Ÿ‡ง๐Ÿ‡ทBrazil elber Brazil

    I'm sorry please. Can you give me an example of usage?

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States markdorison

    The change record for this issue has been published. It should still be a draft at this point, right?

  • ๐Ÿ‡ฆ๐Ÿ‡บAustralia larowlan ๐Ÿ‡ฆ๐Ÿ‡บ๐Ÿ.au GMT+10

    Yes it should be unpublished

  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom jonathanshaw Stroud, UK

    @elber more information on how to write a change record is here:
    https://www.drupal.org/community/contributor-guide/task/write-a-change-r... โ†’

  • Status changed to Needs review 6 months ago
  • ๐Ÿ‡ฏ๐Ÿ‡ตJapan ptmkenny

    I rewrote the change record โ†’ and used an example from the tests. I think it would be great to have a more illustrative example if anyone has any ideas.

  • Status changed to Needs work 6 months ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave

    New functions believe should be typehinted please.

    Tagging for issue summary to have the standard issue template applied, especially the api section of the template.

    There appear to be a few hooks being added can they all be listed in the CR please.

  • ๐Ÿ‡ฏ๐Ÿ‡ตJapan ptmkenny
  • Status changed to Needs review 6 months ago
  • ๐Ÿ‡ฏ๐Ÿ‡ตJapan ptmkenny

    Ok, I updated the change record to list all hooks, and I updated the issue summary. I also made an MR of patch #32 to make it easier for myself to understand the changes.

    Please review the new issue summary and change record.

  • Pipeline finished with Success
    6 months ago
    Total: 39913s
    #61663
  • Status changed to RTBC 6 months ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave

    Issue summary looks good.

    Slightly tweaked the CR to include the full changes from the entity.api. May be overkill be figured it would save someone time from having to open the file.

    Saved credit for ptmkenny for the issue summary update, cr changes,

    Hiding patches as fix is in the MR

    Ran the test only feature to verify the coverage

    1) Drupal\KernelTests\Core\Entity\EntityQueryTest::testAlterHook
    Failed asserting that two arrays are identical.
    --- Expected
    +++ Actual
    @@ @@
     Array &0 (
    +    5 => '5'
         7 => '7'
         13 => '13'
         15 => '15'
     )
    /builds/issue/drupal-3001496/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:121
    /builds/issue/drupal-3001496/vendor/phpunit/phpunit/src/Framework/Constraint/IsIdentical.php:79
    /builds/issue/drupal-3001496/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php:751
    /builds/issue/drupal-3001496/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php:1313
    /builds/issue/drupal-3001496/vendor/phpunit/phpunit/src/Framework/TestResult.php:728
    FAILURES!
    Tests: 17, Assertions: 278, Failures: 1.
    PHPUnit 9.6.13 by Sebastian Bergmann and contributors.
    Testing Drupal\Tests\Core\Entity\Query\Sql\QueryTest
    

    Also see that all 4 new hooks are being altered in the test module.

    Believe this is good to go.

  • Status changed to Needs work 6 months ago
  • ๐Ÿ‡ณ๐Ÿ‡ฟNew Zealand quietone New Zealand

    I'm triaging RTBC issues โ†’ . I read the IS, the comments, the change record. I didn't find any unanswered questions. After reading #18 I thought that this would be a won't fix but the next comment explains why this is useful.

    However, I do not see any comments that discuss a code review nor are they any comments in the MR.

    I then applied the diff but there are conflicts, so this needs work. I read the MR and left two comments. Also, new functions and methods should have return type hints. See https://www.drupal.org/docs/develop/standards/php/php-coding-standards#s... โ†’ .

    I tried to improve the change record so it was not mostly a copy/paste of code. To do that I searched the change records for others where a hook was added and used those as a guide. It is not complete, so I am tagging for change record updates.

    Just a bit of finalizing to do here.

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia Prashant.c Dharamshala

    Prashant.c โ†’ made their first commit to this issueโ€™s fork.

  • Status changed to Needs review 6 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia Prashant.c Dharamshala
  • Pipeline finished with Success
    6 months ago
    Total: 634s
    #69502
  • Status changed to Needs work 6 months ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave

    left some comments.

    Appears to have a merge conflict.

    Also was tagged for CR updates which appear to still be needed.

  • ๐Ÿ‡จ๐Ÿ‡ฆCanada Charlie ChX Negyesi ๐ŸCanada

    I reviewed https://www.drupal.org/project/drupal/issues/1801726 โ†’ and it never actually existed and we didn't catch it in time despite the dozens of revisions I did and the dozens who reviewed it. The documentation clearly shows I initially wanted to add it but didn't.

    I am sorry :(

  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom jonathanshaw Stroud, UK

    I fixed the change record

  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom jonathanshaw Stroud, UK

    I fixed the comments, but a rebase is still needed.

  • Pipeline finished with Success
    6 months ago
    Total: 601s
    #69854
  • Status changed to Needs review 6 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia Prashant.c Dharamshala
  • Pipeline finished with Success
    6 months ago
    Total: 590s
    #70498
  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom jonathanshaw Stroud, UK

    Thanks @prashant.

    My last fixes were trivial, so I'm RTBC per #48.

  • Status changed to RTBC 5 months ago
  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom jonathanshaw Stroud, UK

    Doh

  • Status changed to Needs review 4 months ago
  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom alexpott ๐Ÿ‡ช๐Ÿ‡บ๐ŸŒ

    Looking at how SQL queries are altered - it only triggers the alter hook if the query is tagged. See \Drupal\Core\Database\Query\Select::preExecute(). I'm wondering if we should do the same. Ie. change the code to

      protected function alter(): Query {
        if (isset($this->alterTags)) {
          $hooks = ['entity_query', 'entity_query_' . $this->getEntityTypeId()];
          foreach ($this->alterTags as $tag => $value) {
            $hooks[] = 'entity_query_' . $tag;
            $hooks[] = 'entity_query_' . $this->getEntityTypeId() . '_' . $tag;
          }
          \Drupal::moduleHandler()->alter($hooks, $this);
        }
        return $this;
      }
    

    Hmmm are all entity queries tagged... ah interesting, is that some tags that you'd expect to be there like ENTITY_TYPE_ID_access are only added in \Drupal\Core\Entity\Query\Sql\Query::prepare() which is called after this. Unfortunately in the current design it does not seem possible for a hook implementation to know if \Drupal\Core\Entity\Query\QueryBase::$accessCheck is TRUE or not.

    Also I'm wondering about the impact on the existing entity_query and entity_query_ENTITY_TYPE_ID tags. They feel somewhat superfluous and duplicates.

    Another thought is in what order should the hooks be called. Obviously hook_entity_query_alter() first... but then I think it should be hook_entity_query_TAG_alter() then hook_entity_query_ENTITY_TYPE_alter() and then hook_entity_query_ENTITY_TYPE_TAG_alter()

  • Status changed to RTBC 4 months ago
  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom jonathanshaw Stroud, UK

    Looking at how SQL queries are altered - it only triggers the alter hook if the query is tagged. See \Drupal\Core\Database\Query\Select::preExecute(). I'm wondering if we should do the same.

    I'm not sure why we would do that. Mind you, I'm not sure why SQL queries do that. Any ideas why it would be good to do this?

    Being able to alter absolutely any entity query would seem like a useful feature for modules like DER or workspace that want to globally enhance entity queries.

    some tags that you'd expect to be there like ENTITY_TYPE_ID_access are only added in \Drupal\Core\Entity\Query\Sql\Query::prepare() which is called after this.

    I think that might be good. In some sense these access tags seem like part of a deeper level of the API. If you want to mess with an entity query's access should do do it through accessCheck() which is it's API for the purpose; or you accept the greater responsibility of altering the Sql query.

    Unfortunately in the current design it does not seem possible for a hook implementation to know if \Drupal\Core\Entity\Query\QueryBase::$accessCheck is TRUE or not.

    Agreed. This is one symptom of the need identified in #2502363: Add getters to EntityQuery โ†’ . Once this issue is fixed, it will get more valuable to fix that one.

    Also I'm wondering about the impact on the existing entity_query and entity_query_ENTITY_TYPE_ID tags. They feel somewhat superfluous and duplicates.

    Maybe - although they allow a deeper level of sql modification than entity queries currently do. Shall I open a follow-up to explore deprecating them?

    Another thought is in what order should the hooks be called. Obviously hook_entity_query_alter() first... but then I think it should be hook_entity_query_TAG_alter() then hook_entity_query_ENTITY_TYPE_alter() and then hook_entity_query_ENTITY_TYPE_TAG_alter()

    Entity/Query/Sql/Query::prepare does this:

        $this->sqlQuery->addTag('entity_query');
        $this->sqlQuery->addTag('entity_query_' . $this->entityTypeId);
    
        // Add further tags added.
        if (isset($this->alterTags)) {
          foreach ($this->alterTags as $tag => $value) {
            $this->sqlQuery->addTag($tag);
          }
        }

    Which means that sql queries alter hooks fire in the order ENTITY_TYPE then TAG (as is the current MR) not the TAG then ENTITY_TYPE you propose. I suggest we keep to the same pattern as sql queries unless we have a good reason to be different.

  • Status changed to Needs work 4 months ago
  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom alexpott ๐Ÿ‡ช๐Ÿ‡บ๐ŸŒ

    Re the last part of #60 it's not quite the same as sql's alter tags though... because you are adding the tag on to both entity_query and entity_query_ENTITY_TYPE_ID

    Also if a tag and entity type ID clash your site will have problems and that means this needs work.

    I think it needs to be something like

          $hooks = ['entity_query', 'entity_query_' . $this->getEntityTypeId()];
          foreach ($this->alterTags as $tag => $value) {
            $hooks[] = 'entity_query_tag_' . $tag;
            $hooks[] = 'entity_query_tag_' . $this->getEntityTypeId() . '_' . $tag;
          }
    

    to avoid clashes.

  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom jonathanshaw Stroud, UK

    I don't have a strong sense either way about the order.

    Also if a tag and entity type ID clash your site will have problems and that means this needs work.

    Good point. I'm a bit unsure about this one though:

    $hooks[] = 'entity_query_tag_' . $this->getEntityTypeId() . '_' . $tag;

    Strictly _tag_ is not needed here to avoid collision but I can see that it might be more consistent to have it.

    I wondered if this is better:
    $hooks[] = 'entity_query_' . $this->getEntityTypeId() . '_tag_' . $tag;

  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom jonathanshaw Stroud, UK

    I'd like is to to decide the hook name structure before I change the code as it will need changing in quite a few places.

  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom alexpott ๐Ÿ‡ช๐Ÿ‡บ๐ŸŒ

    The problem with your suggestion is that it still allows for clashes consider a site the following entity type names:
    two
    two_tag_alpha

    If there's a query with the tag alpha there will be a clash. Yes this is very contrived but someone somewhere will have a set up like this. This is why there are no hooks with SOMETHING_hardcode_SOMETHING. It's really hard to come up with something that will not clash. Also this is why we should move away from hooks and to something like hux โ†’ .

  • Pipeline finished with Failed
    4 months ago
    Total: 372s
    #99716
  • Status changed to Needs review 4 months ago
  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom jonathanshaw Stroud, UK

    The spellchecking CI seems to be broken ... but I think this is right.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave

    MR is showing as unmergable. The spell-check has been fixed a week or two ago, branch needs to be rebased with latest 11.x

  • Pipeline finished with Failed
    4 months ago
    Total: 491s
    #99758
  • Pipeline finished with Success
    4 months ago
    Total: 488s
    #99787
  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom jonathanshaw Stroud, UK

    Thanks @smustgrave, that sorted it.

  • Status changed to RTBC 4 months ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave

    Believe feedback has been addressed

  • Status changed to Needs work 3 months ago
  • ๐Ÿ‡ญ๐Ÿ‡บHungary Boobaa

    Sorry, but this only affects SQL-based entity types. I think entity queries for remote entities (like the ones in the Apigee Edge module โ†’ ) should also be supported (and the entity.api.php changes also suggest this).

  • ๐Ÿ‡จ๐Ÿ‡ญSwitzerland Berdir Switzerland

    We can't change an implementation that's not in core? But I do agree that this needs to be clarified/extended, and implementation that is in core are config entity queries.

  • Pipeline finished with Failed
    3 months ago
    Total: 185s
    #118461
  • Pipeline finished with Failed
    3 months ago
    Total: 181s
    #118467
  • Pipeline finished with Failed
    3 months ago
    #118470
  • Pipeline finished with Success
    3 months ago
    Total: 539s
    #118473
  • Status changed to Needs review 3 months ago
  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom jonathanshaw Stroud, UK

    Unfortunately entity query classes do not inherit their execute() method from the abstract class QueryBase, so there's no way to guarantee all entity queries have this.

    Added support for config entity queries and test coverage for that, documented in CR and entity.api.php the limitations on which entity queries have these.

    Thanks @berdir for thinking of config entities.

  • Status changed to Needs work 3 months ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave

    For the 2 open threads from @amateescu

  • Status changed to Needs review 3 months ago
  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom jonathanshaw Stroud, UK
  • Pipeline finished with Failed
    3 months ago
    Total: 595s
    #132720
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave

    Can you rebase the MR appears to have a unit failure.

  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom jonathanshaw Stroud, UK
  • Status changed to Needs work 3 months ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave
  • First commit to issue fork.
  • Status changed to Needs review 3 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia manish-31

    I have rebased the MR, needs review. Thanks!

  • Pipeline finished with Success
    3 months ago
    Total: 687s
    #135404
  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom jonathanshaw Stroud, UK

    Thanks @manish-31. Tests are now green. This is still NR for the changes made in response to #70, but otherwise RTBC per #68.

  • Pipeline finished with Success
    3 months ago
    Total: 600s
    #135555
  • Status changed to RTBC 3 months ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave

    Applied some nitpicky missing :void returns.

    Appears all feedback has been addressed though.

  • Status changed to Needs work 2 months ago
  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom alexpott ๐Ÿ‡ช๐Ÿ‡บ๐ŸŒ

    Added suggestion to MR to resolve possible hook clashes suing double underscores. Note we use this technique elsewhere in core. See \Drupal\Core\Plugin\FilteredPluginManagerTrait::getFilteredDefinitions and theme hooks.

  • Pipeline finished with Failed
    2 months ago
    Total: 232s
    #139758
  • Status changed to Needs review 2 months ago
  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom jonathanshaw Stroud, UK

    Implemented double underscores.

    Although

    $hooks[] = "plugin_filter_{$type}";
    $hooks[] = "plugin_filter_{$type}__{$consumer}";
    

    does uses only 1 double underscore, I agree with @alexpott that we should do

    $hooks[] = 'entity_query_tag__' . $tag;
    $hooks[] = 'entity_query_tag__' . $this->getEntityTypeId() . '__' . $tag;
    

    The reason I can see is that 'tag_something' is a possible entity type id.

  • Status changed to Needs work 2 months ago
  • The Needs Review Queue Bot โ†’ tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

    This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.

    Consult the Drupal Contributor Guide โ†’ to find step-by-step guides for working with issues.

  • Pipeline finished with Success
    2 months ago
    Total: 630s
    #141040
  • Status changed to Needs review 2 months ago
  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom jonathanshaw Stroud, UK
  • Status changed to RTBC 2 months ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave

    Theme suggestion update seems good.

    Have always seen the double underscore but didn't consider it was the standard, sorry!

  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom alexpott ๐Ÿ‡ช๐Ÿ‡บ๐ŸŒ

    Updated change record and issue summary for the new hook patterns.

  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom alexpott ๐Ÿ‡ช๐Ÿ‡บ๐ŸŒ

    Adding issue credit for reviews, comments that helped shape the MR and writing the change record.

  • Status changed to Fixed 2 months ago
  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom alexpott ๐Ÿ‡ช๐Ÿ‡บ๐ŸŒ

    The release note could do with finessing into something that can be added to something like https://www.drupal.org/project/drupal/releases/10.2.0 โ†’ - the current release note is not fit for that.

    Committed c536598 and pushed to 11.x. Thanks!
    Committed 19ae323 and pushed to 10.3.x. Thanks!

    • alexpott โ†’ committed 19ae323f on 10.3.x
      Issue #3001496 by jonathanshaw, SmovS, Prashant.c, ptmkenny, smustgrave...
    • alexpott โ†’ committed c5365987 on 11.x
      Issue #3001496 by jonathanshaw, SmovS, Prashant.c, ptmkenny, smustgrave...
  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom jonathanshaw Stroud, UK

    Improved release snippet in IS

  • Status changed to Needs work 2 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡นItaly mondrake ๐Ÿ‡ฎ๐Ÿ‡น

    This introduced a mock method that is deprecated in PHPUnit 10, can a follow up be opened to fix it.

    	'message' => '#^Call to deprecated method returnValue\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\:
    Use \\<code\\>\\$double\\-\\>willReturn\\(\\)\\</code\\> instead of \\<code\\>\\$double\\-\\>will\\(\\$this\\-\\>returnValue\\(\\)\\)\\</code\\>$#',
    	'count' => 1,
    	'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/Query/Sql/QueryTest.php',
    
  • Status changed to Fixed 2 months ago
  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom alexpott ๐Ÿ‡ช๐Ÿ‡บ๐ŸŒ

    @mondrake sure open a follow-up but I don't think we should re-open this issue. PHPUnit 10 is less important than our our code. This should remain fixed.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.69.0 2024