Closed (fixed)
Project:
Search API
Version:
8.x-1.x-dev
Component:
General code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
14 Aug 2026 at 12:18 UTC
Updated:
21 Oct 2026 at 17:45 UTC
Jump to comment: Most recent
Comments
Comment #4
yusuf_khan commentedPlease review my MR https://git.drupalcode.org/project/search_api/-/merge_requests/350
Comment #5
daften commentedI was checking my pipelines and saw one of my issues failed and ended up on this issue. Thanks for tackling this.
Some feedback that I see:
Comment #7
benstallings commentedThat's good feedback, @daften! I left the change to SearchApiEntity.php in place because it is flagged by phpcs, if not by phpstan.
Comment #9
drunken monkeyI hope I was now able to fix all the warnings/errors reported by static analysis. For the PHPUnit failures I’ll follow up in #3624636: Fix failing pipelines.
Comment #12
abhisekmazumdarFYI, since the latest commit here (d6ef078a) the Drupal AI module's pipelines fail on Drupal 11.4 with:
TypeError: SearchApiViewsHooks::__construct(): Argument #9 ($memoryCache) must be of type MemoryCacheInterface, MemoryBackend givenIt looks like
cache.staticreturns a plainMemoryBackend, which doesn't implementMemoryCacheInterface. Type-hintingCacheBackendInterfacemight be enough, since onlyget()andset()are used.Failing job: https://git.drupalcode.org/project/ai/-/jobs/12712634
Comment #13
scott_euser commentedThanks! Diff fixes the fatal error with the type-hint change.
Quick AI check on it and it flagged this though:
I have not checked it but could check it asap if it sounds wrong (school pickup time!)
Comment #15
drunken monkeyMerged a bit too hastily, but now static analysis should pass again for all tested configurations and no new bugs should have been introduced.
Thanks, everyone!
Comment #18
drunken monkeyOops, sorry, didn’t see the last comments before posting.
The comments about
getHandlerMapping()andgetFieldHandlerMapping()seem worth pursuing.Comment #19
drunken monkeyComment #20
scott_euser commentedNp looks good to me, thank you!
Comment #22
drunken monkeyThanks for reviewing, merged!
Hopefully at least nothing is worse off than before now …