Skip to content

Commit

Permalink
TASK: Adjust to find* vs get* convention
Browse files Browse the repository at this point in the history
> "all operations which are slow should be named find*", vs. "all operations which operate on already-loaded data should be named get*".

see neos/neos-development-collection#5279 (comment)
  • Loading branch information
mhsdesign committed Oct 10, 2024
1 parent 5643880 commit 8c99b94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Behavior/Features/Bootstrap/ProjectedNodeTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function iGetTheNodeAtPath(string $serializedNodePath): void
public function iExpectANodeIdentifiedByXToExistInTheContentGraph(string $serializedNodeDiscriminator): void
{
$nodeDiscriminator = NodeDiscriminator::fromShorthand($serializedNodeDiscriminator);
$matchingWorkspace = $this->currentContentRepository->getWorkspaces()->find(
$matchingWorkspace = $this->currentContentRepository->findWorkspaces()->find(
static fn (Workspace $workspace) => $workspace->currentContentStreamId->equals($nodeDiscriminator->contentStreamId)
);
if ($matchingWorkspace === null) {
Expand Down

0 comments on commit 8c99b94

Please sign in to comment.