diff --git a/Neos.ContentGraph.PostgreSQLAdapter/src/Domain/Projection/NodeAggregateIds.php b/Neos.ContentGraph.PostgreSQLAdapter/src/Domain/Projection/NodeAggregateIds.php index 7558a09a96b..4c0ecf8a6d5 100644 --- a/Neos.ContentGraph.PostgreSQLAdapter/src/Domain/Projection/NodeAggregateIds.php +++ b/Neos.ContentGraph.PostgreSQLAdapter/src/Domain/Projection/NodeAggregateIds.php @@ -97,9 +97,6 @@ public function isEmpty(): bool return count($this->ids) === 0; } - /** - * @return \Traversable - */ public function getIterator(): \Traversable { yield from $this->ids; diff --git a/Neos.ContentGraph.PostgreSQLAdapter/src/Domain/Projection/NodeRelationAnchorPoints.php b/Neos.ContentGraph.PostgreSQLAdapter/src/Domain/Projection/NodeRelationAnchorPoints.php index 5e4cca781cc..b8927a36694 100644 --- a/Neos.ContentGraph.PostgreSQLAdapter/src/Domain/Projection/NodeRelationAnchorPoints.php +++ b/Neos.ContentGraph.PostgreSQLAdapter/src/Domain/Projection/NodeRelationAnchorPoints.php @@ -99,9 +99,6 @@ public function remove(NodeRelationAnchorPoint $nodeRelationAnchorPoint): self return new self(...$childNodeAnchors); } - /** - * @return \Traversable - */ public function getIterator(): \Traversable { yield from $this->nodeRelationAnchorPoints; diff --git a/Neos.ContentRepository.Core/Classes/Dimension/ContentDimensionConstraintSet.php b/Neos.ContentRepository.Core/Classes/Dimension/ContentDimensionConstraintSet.php index e95bee72a02..f0c8a203711 100644 --- a/Neos.ContentRepository.Core/Classes/Dimension/ContentDimensionConstraintSet.php +++ b/Neos.ContentRepository.Core/Classes/Dimension/ContentDimensionConstraintSet.php @@ -55,9 +55,6 @@ public static function createEmpty(): self return new self([]); } - /** - * @return \Traversable - */ public function getIterator(): \Traversable { yield from $this->constraints; diff --git a/Neos.ContentRepository.Core/Classes/Dimension/ContentDimensionValueVariationEdges.php b/Neos.ContentRepository.Core/Classes/Dimension/ContentDimensionValueVariationEdges.php index 00d96baa9e4..2c64751898c 100644 --- a/Neos.ContentRepository.Core/Classes/Dimension/ContentDimensionValueVariationEdges.php +++ b/Neos.ContentRepository.Core/Classes/Dimension/ContentDimensionValueVariationEdges.php @@ -37,9 +37,6 @@ public static function createEmpty(): self return new self(); } - /** - * @return \Traversable - */ public function getIterator(): \Traversable { yield from $this->edges; diff --git a/Neos.ContentRepository.Core/Classes/Dimension/ContentDimensionValues.php b/Neos.ContentRepository.Core/Classes/Dimension/ContentDimensionValues.php index 082e46411d6..e59fba423fb 100644 --- a/Neos.ContentRepository.Core/Classes/Dimension/ContentDimensionValues.php +++ b/Neos.ContentRepository.Core/Classes/Dimension/ContentDimensionValues.php @@ -59,9 +59,6 @@ public function __construct(array $values) $this->maximumDepth = $maximumDepth; } - /** - * @return \Traversable - */ public function getIterator(): \Traversable { yield from $this->values; diff --git a/Neos.ContentRepository.Core/Classes/DimensionSpace/DimensionSpacePointSet.php b/Neos.ContentRepository.Core/Classes/DimensionSpace/DimensionSpacePointSet.php index b7dbf4de6e5..191dcd2d7f6 100644 --- a/Neos.ContentRepository.Core/Classes/DimensionSpace/DimensionSpacePointSet.php +++ b/Neos.ContentRepository.Core/Classes/DimensionSpace/DimensionSpacePointSet.php @@ -148,9 +148,6 @@ public function equals(DimensionSpacePointSet $other): bool return $thisPointHashes === $otherPointHashes; } - /** - * @return \Traversable - */ public function getIterator(): \Traversable { yield from $this->points; diff --git a/Neos.ContentRepository.Core/Classes/DimensionSpace/OriginDimensionSpacePointSet.php b/Neos.ContentRepository.Core/Classes/DimensionSpace/OriginDimensionSpacePointSet.php index 2979c42542c..596ec51d748 100644 --- a/Neos.ContentRepository.Core/Classes/DimensionSpace/OriginDimensionSpacePointSet.php +++ b/Neos.ContentRepository.Core/Classes/DimensionSpace/OriginDimensionSpacePointSet.php @@ -128,9 +128,6 @@ public function count(): int return count($this->points); } - /** - * @return \Traversable - */ public function getIterator(): \Traversable { yield from $this->points; diff --git a/Neos.ContentRepository.Core/Classes/EventStore/Events.php b/Neos.ContentRepository.Core/Classes/EventStore/Events.php index 5bd6713c623..69e58099661 100644 --- a/Neos.ContentRepository.Core/Classes/EventStore/Events.php +++ b/Neos.ContentRepository.Core/Classes/EventStore/Events.php @@ -36,9 +36,6 @@ public static function fromArray(array $events): self return new self(...$events); } - /** - * @return \Traversable - */ public function getIterator(): \Traversable { yield from $this->events; diff --git a/Neos.ContentRepository.Core/Classes/Feature/Common/InterdimensionalSiblings.php b/Neos.ContentRepository.Core/Classes/Feature/Common/InterdimensionalSiblings.php index f69e735dab3..6a4c706512d 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/Common/InterdimensionalSiblings.php +++ b/Neos.ContentRepository.Core/Classes/Feature/Common/InterdimensionalSiblings.php @@ -92,9 +92,6 @@ public function toDimensionSpacePointSet(): DimensionSpacePointSet )); } - /** - * @return \Traversable - */ public function getIterator(): \Traversable { yield from $this->items; diff --git a/Neos.ContentRepository.Core/Classes/Feature/NodeDuplication/Dto/NodeReferencesSnapshot.php b/Neos.ContentRepository.Core/Classes/Feature/NodeDuplication/Dto/NodeReferencesSnapshot.php index f29ea76f26c..15c0a691136 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/NodeDuplication/Dto/NodeReferencesSnapshot.php +++ b/Neos.ContentRepository.Core/Classes/Feature/NodeDuplication/Dto/NodeReferencesSnapshot.php @@ -83,9 +83,6 @@ public static function fromReferences(References $nodeReferences): self return new self($values); } - /** - * @return \Traversable - */ public function getIterator(): \Traversable { yield from $this->references; diff --git a/Neos.ContentRepository.Core/Classes/Feature/NodeModification/Dto/SerializedPropertyValues.php b/Neos.ContentRepository.Core/Classes/Feature/NodeModification/Dto/SerializedPropertyValues.php index 7aa73103f95..2f2cf77d891 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/NodeModification/Dto/SerializedPropertyValues.php +++ b/Neos.ContentRepository.Core/Classes/Feature/NodeModification/Dto/SerializedPropertyValues.php @@ -146,9 +146,6 @@ public function getProperty(string $propertyName): ?SerializedPropertyValue return $this->values[$propertyName] ?? null; } - /** - * @return \Traversable - */ public function getIterator(): \Traversable { yield from $this->values; diff --git a/Neos.ContentRepository.Core/Classes/Feature/NodeReferencing/Dto/NodeReferencesToWrite.php b/Neos.ContentRepository.Core/Classes/Feature/NodeReferencing/Dto/NodeReferencesToWrite.php index 02bea2b6115..df476935075 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/NodeReferencing/Dto/NodeReferencesToWrite.php +++ b/Neos.ContentRepository.Core/Classes/Feature/NodeReferencing/Dto/NodeReferencesToWrite.php @@ -84,9 +84,6 @@ public static function fromJsonString(string $jsonString): self } } - /** - * @return \Traversable - */ public function getIterator(): \Traversable { yield from $this->references; diff --git a/Neos.ContentRepository.Core/Classes/Feature/NodeReferencing/Dto/SerializedNodeReferences.php b/Neos.ContentRepository.Core/Classes/Feature/NodeReferencing/Dto/SerializedNodeReferences.php index 4fbe1fb6737..1ce64f94fd9 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/NodeReferencing/Dto/SerializedNodeReferences.php +++ b/Neos.ContentRepository.Core/Classes/Feature/NodeReferencing/Dto/SerializedNodeReferences.php @@ -80,9 +80,6 @@ public function merge(self $other): self return new self(...array_merge($this->references, $other->references)); } - /** - * @return \Traversable - */ public function getIterator(): \Traversable { yield from $this->references; diff --git a/Neos.ContentRepository.Core/Classes/Feature/SubtreeTagging/Dto/SubtreeTags.php b/Neos.ContentRepository.Core/Classes/Feature/SubtreeTagging/Dto/SubtreeTags.php index 95a826ed52a..8c22ff8e734 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/SubtreeTagging/Dto/SubtreeTags.php +++ b/Neos.ContentRepository.Core/Classes/Feature/SubtreeTagging/Dto/SubtreeTags.php @@ -108,7 +108,7 @@ public function toStringArray(): array public function getIterator(): \Traversable { - return new \ArrayIterator(array_values($this->tags)); + yield from array_values($this->tags); } /** diff --git a/Neos.ContentRepository.Core/Classes/Feature/WorkspacePublication/Dto/NodeIdsToPublishOrDiscard.php b/Neos.ContentRepository.Core/Classes/Feature/WorkspacePublication/Dto/NodeIdsToPublishOrDiscard.php index a5bd6a04264..db373f0151a 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/WorkspacePublication/Dto/NodeIdsToPublishOrDiscard.php +++ b/Neos.ContentRepository.Core/Classes/Feature/WorkspacePublication/Dto/NodeIdsToPublishOrDiscard.php @@ -51,9 +51,6 @@ public function merge(self $other): self return new self(array_merge($this->nodeIds, $other->nodeIds)); } - /** - * @return \Traversable - */ public function getIterator(): \Traversable { yield from $this->nodeIds; diff --git a/Neos.ContentRepository.Core/Classes/Feature/WorkspaceRebase/CommandsThatFailedDuringRebase.php b/Neos.ContentRepository.Core/Classes/Feature/WorkspaceRebase/CommandsThatFailedDuringRebase.php index 7a4dd8b3f5d..b9f6e792b2d 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/WorkspaceRebase/CommandsThatFailedDuringRebase.php +++ b/Neos.ContentRepository.Core/Classes/Feature/WorkspaceRebase/CommandsThatFailedDuringRebase.php @@ -44,9 +44,6 @@ public function isEmpty(): bool return $this->items === []; } - /** - * @return \Traversable - */ public function getIterator(): \Traversable { yield from $this->items; diff --git a/Neos.ContentRepository.Core/Classes/NodeType/NodeTypeNames.php b/Neos.ContentRepository.Core/Classes/NodeType/NodeTypeNames.php index 86fba431f5f..b7f2255d25f 100644 --- a/Neos.ContentRepository.Core/Classes/NodeType/NodeTypeNames.php +++ b/Neos.ContentRepository.Core/Classes/NodeType/NodeTypeNames.php @@ -71,9 +71,6 @@ public function withAdditionalNodeTypeName(NodeTypeName $nodeTypeName): self return new self(...$nodeTypeNames); } - /** - * @return \Traversable - */ public function getIterator(): \Traversable { yield from $this->nodeTypeNames; diff --git a/Neos.ContentRepository.Core/Classes/Projection/ContentGraph/CoverageByOrigin.php b/Neos.ContentRepository.Core/Classes/Projection/ContentGraph/CoverageByOrigin.php index acbe9a2acd5..067f46aa5ac 100644 --- a/Neos.ContentRepository.Core/Classes/Projection/ContentGraph/CoverageByOrigin.php +++ b/Neos.ContentRepository.Core/Classes/Projection/ContentGraph/CoverageByOrigin.php @@ -68,9 +68,6 @@ public function getCoverage(OriginDimensionSpacePoint $originDimensionSpacePoint return $this->coverage[$originDimensionSpacePoint->hash] ?? null; } - /** - * @return \Traversable - */ public function getIterator(): \Traversable { yield from $this->coverage; diff --git a/Neos.ContentRepository.Core/Classes/Projection/ContentGraph/Filter/Ordering/Ordering.php b/Neos.ContentRepository.Core/Classes/Projection/ContentGraph/Filter/Ordering/Ordering.php index 68d60884d19..8ed6615e02a 100644 --- a/Neos.ContentRepository.Core/Classes/Projection/ContentGraph/Filter/Ordering/Ordering.php +++ b/Neos.ContentRepository.Core/Classes/Projection/ContentGraph/Filter/Ordering/Ordering.php @@ -57,9 +57,6 @@ public function andByTimestampField(TimestampField $timestampField, OrderingDire return new self(...[...$this->fields, OrderingField::byTimestampField($timestampField, $direction)]); } - /** - * @return \Traversable - */ public function getIterator(): \Traversable { yield from $this->fields; diff --git a/Neos.ContentRepository.Core/Classes/Projection/ContentGraph/NodeAggregates.php b/Neos.ContentRepository.Core/Classes/Projection/ContentGraph/NodeAggregates.php index 20fd0de79d5..9ec96516a08 100644 --- a/Neos.ContentRepository.Core/Classes/Projection/ContentGraph/NodeAggregates.php +++ b/Neos.ContentRepository.Core/Classes/Projection/ContentGraph/NodeAggregates.php @@ -60,9 +60,6 @@ public static function createEmpty(): self return new self([]); } - /** - * @return \Traversable - */ public function getIterator(): \Traversable { yield from $this->nodeAggregates; diff --git a/Neos.ContentRepository.Core/Classes/Projection/ContentGraph/Nodes.php b/Neos.ContentRepository.Core/Classes/Projection/ContentGraph/Nodes.php index c4f224f583e..9c5651cd21f 100644 --- a/Neos.ContentRepository.Core/Classes/Projection/ContentGraph/Nodes.php +++ b/Neos.ContentRepository.Core/Classes/Projection/ContentGraph/Nodes.php @@ -69,9 +69,6 @@ public function offsetGet(mixed $offset): ?Node return $this->nodes[$offset] ?? null; } - /** - * @return \Traversable - */ public function getIterator(): \Traversable { yield from $this->nodes; diff --git a/Neos.ContentRepository.Core/Classes/Projection/ContentGraph/OriginByCoverage.php b/Neos.ContentRepository.Core/Classes/Projection/ContentGraph/OriginByCoverage.php index 4be4b97ca0d..cb55793aa82 100644 --- a/Neos.ContentRepository.Core/Classes/Projection/ContentGraph/OriginByCoverage.php +++ b/Neos.ContentRepository.Core/Classes/Projection/ContentGraph/OriginByCoverage.php @@ -76,9 +76,6 @@ public function getOrigin(DimensionSpacePoint $coveredDimensionSpacePoint): ?Ori return $this->origins[$coveredDimensionSpacePoint->hash] ?? null; } - /** - * @return \Traversable - */ public function getIterator(): \Traversable { yield from $this->origins; diff --git a/Neos.ContentRepository.Core/Classes/Projection/ContentGraph/References.php b/Neos.ContentRepository.Core/Classes/Projection/ContentGraph/References.php index e071bd9ffe1..d8c6d4ac242 100644 --- a/Neos.ContentRepository.Core/Classes/Projection/ContentGraph/References.php +++ b/Neos.ContentRepository.Core/Classes/Projection/ContentGraph/References.php @@ -65,9 +65,6 @@ public function getNodes(): Nodes )); } - /** - * @return \Traversable - */ public function getIterator(): \Traversable { yield from $this->references; diff --git a/Neos.ContentRepository.Core/Classes/Projection/ProjectionStatuses.php b/Neos.ContentRepository.Core/Classes/Projection/ProjectionStatuses.php index 79a59b0a550..6a3857daca4 100644 --- a/Neos.ContentRepository.Core/Classes/Projection/ProjectionStatuses.php +++ b/Neos.ContentRepository.Core/Classes/Projection/ProjectionStatuses.php @@ -36,6 +36,6 @@ public function with(string $projectionClassName, ProjectionStatus $projectionSt public function getIterator(): \Traversable { - return new \ArrayIterator($this->statuses); + yield from $this->statuses; } } diff --git a/Neos.ContentRepository.Core/Classes/Projection/Projections.php b/Neos.ContentRepository.Core/Classes/Projection/Projections.php index 0bc7dffec20..08422849c2d 100644 --- a/Neos.ContentRepository.Core/Classes/Projection/Projections.php +++ b/Neos.ContentRepository.Core/Classes/Projection/Projections.php @@ -7,7 +7,7 @@ /** * An immutable set of Content Repository projections ({@see ProjectionInterface} * - * @implements \IteratorAggregate + * @implements \IteratorAggregate> * @internal */ final class Projections implements \IteratorAggregate, \Countable @@ -86,9 +86,6 @@ public function getClassNames(): array return array_keys($this->projections); } - /** - * @return \Traversable> - */ public function getIterator(): \Traversable { yield from $this->projections; diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Node/NodeAggregateIds.php b/Neos.ContentRepository.Core/Classes/SharedModel/Node/NodeAggregateIds.php index d837e8f1da1..f0e30b17b67 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Node/NodeAggregateIds.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Node/NodeAggregateIds.php @@ -109,9 +109,6 @@ public function toStringArray(): array return array_keys($this->nodeAggregateIds); } - /** - * @return \Traversable - */ public function getIterator(): \Traversable { yield from $this->nodeAggregateIds; diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Node/PropertyNames.php b/Neos.ContentRepository.Core/Classes/SharedModel/Node/PropertyNames.php index 563b2d80fe3..b6f859cca82 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Node/PropertyNames.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Node/PropertyNames.php @@ -8,7 +8,7 @@ * @implements \IteratorAggregate * @api */ -final readonly class PropertyNames implements \IteratorAggregate, \JsonSerializable +final readonly class PropertyNames implements \IteratorAggregate, \Countable, \JsonSerializable { /** * @var array @@ -51,11 +51,18 @@ public function jsonSerialize(): mixed return $this->values; } - /** - * @return \Traversable - */ public function getIterator(): \Traversable { yield from $this->values; } + + public function isEmpty(): bool + { + return $this->values === []; + } + + public function count(): int + { + return count($this->values); + } } diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Workspace/ContentStreams.php b/Neos.ContentRepository.Core/Classes/SharedModel/Workspace/ContentStreams.php index 2789309b62a..75fea156bd8 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Workspace/ContentStreams.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Workspace/ContentStreams.php @@ -57,9 +57,6 @@ public static function createEmpty(): self return new self([]); } - /** - * @return \Traversable - */ public function getIterator(): \Traversable { yield from array_values($this->contentStreams); diff --git a/Neos.ContentRepository.Core/Classes/SharedModel/Workspace/Workspaces.php b/Neos.ContentRepository.Core/Classes/SharedModel/Workspace/Workspaces.php index 236b2170f83..f6af24a86ec 100644 --- a/Neos.ContentRepository.Core/Classes/SharedModel/Workspace/Workspaces.php +++ b/Neos.ContentRepository.Core/Classes/SharedModel/Workspace/Workspaces.php @@ -97,9 +97,6 @@ public function getDependantWorkspaces(WorkspaceName $workspaceName): Workspaces ); } - /** - * @return \Traversable - */ public function getIterator(): \Traversable { yield from array_values($this->workspaces); diff --git a/Neos.ContentRepository.Export/src/Asset/ValueObject/SerializedImageAdjustments.php b/Neos.ContentRepository.Export/src/Asset/ValueObject/SerializedImageAdjustments.php index 7e1b45a82db..40f835510e6 100644 --- a/Neos.ContentRepository.Export/src/Asset/ValueObject/SerializedImageAdjustments.php +++ b/Neos.ContentRepository.Export/src/Asset/ValueObject/SerializedImageAdjustments.php @@ -34,9 +34,6 @@ public static function fromArray(array $array): self return new self(array_map(static fn(array $adjustment) => SerializedImageAdjustment::fromArray($adjustment), $array)); } - /** - * @return \Traversable - */ public function getIterator(): \Traversable { yield from $this->serializedAdjustments; diff --git a/Neos.ContentRepository.Export/src/Event/ValueObject/ExportedEvents.php b/Neos.ContentRepository.Export/src/Event/ValueObject/ExportedEvents.php index 25736270f0a..1ce7ca98041 100644 --- a/Neos.ContentRepository.Export/src/Event/ValueObject/ExportedEvents.php +++ b/Neos.ContentRepository.Export/src/Event/ValueObject/ExportedEvents.php @@ -46,9 +46,6 @@ public function toJsonl(): string return $result; } - /** - * @return \Traversable - */ public function getIterator(): \Traversable { return ($this->generator)(); diff --git a/Neos.ContentRepository.LegacyNodeMigration/Classes/Helpers/NodeDataLoader.php b/Neos.ContentRepository.LegacyNodeMigration/Classes/Helpers/NodeDataLoader.php index 904f5700184..df9edc9ee93 100644 --- a/Neos.ContentRepository.LegacyNodeMigration/Classes/Helpers/NodeDataLoader.php +++ b/Neos.ContentRepository.LegacyNodeMigration/Classes/Helpers/NodeDataLoader.php @@ -15,9 +15,6 @@ public function __construct( ) { } - /** - * @return \Traversable> - */ public function getIterator(): \Traversable { $query = $this->connection->executeQuery(' diff --git a/Neos.ContentRepository.LegacyNodeMigration/Tests/Behavior/Bootstrap/FeatureContext.php b/Neos.ContentRepository.LegacyNodeMigration/Tests/Behavior/Bootstrap/FeatureContext.php index 00421a6bea4..8f721389aad 100644 --- a/Neos.ContentRepository.LegacyNodeMigration/Tests/Behavior/Bootstrap/FeatureContext.php +++ b/Neos.ContentRepository.LegacyNodeMigration/Tests/Behavior/Bootstrap/FeatureContext.php @@ -49,8 +49,6 @@ class FeatureContext implements Context use CRTestSuiteTrait; use CRBehavioralTestsSubjectProvider; - protected $isolated = false; - private array $nodeDataRows = []; /** @var array */ private array $mockResources = []; @@ -71,8 +69,6 @@ class FeatureContext implements Context */ private array $loggedWarnings = []; - private ContentRepository $contentRepository; - protected ContentRepositoryRegistry $contentRepositoryRegistry; public function __construct() diff --git a/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/FindOperation.php b/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/FindOperation.php index e81543cdc2a..941332441e9 100644 --- a/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/FindOperation.php +++ b/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/FindOperation.php @@ -34,6 +34,8 @@ * "find" operation working on ContentRepository nodes. This operation allows for retrieval * of nodes specified by a path, identifier or node type (recursive). * + * Relative examples depending on the node's workspace, dimension space point, visibility constraints and location in the graph: + * * Example (node name): * * q(node).find('main') @@ -42,14 +44,6 @@ * * q(node).find('main/text1') * - * Example (absolute path): - * - * q(node).find('//my-site/home') - * - * Example (identifier): - * - * q(node).find('#30e893c1-caef-0ca5-b53d-e5699bb8e506') - * * Example (node type): * * q(node).find('[instanceof Neos.NodeTypes:Text]') @@ -62,6 +56,15 @@ * * q(node).find('[instanceof Neos.NodeTypes:Text][text*="Neos"]') * + * Absolute / global examples depending only on the node's workspace and dimension space point as well as visibility constraints: + * + * Example (absolute path): + * + * q(site).find('//my-site/home') + * + * Example (global identifier): + * + * q(site).find('#30e893c1-caef-0ca5-b53d-e5699bb8e506') */ class FindOperation extends AbstractOperation { diff --git a/Neos.ContentRepository.TestSuite/Classes/Behavior/Features/Bootstrap/Helpers/NodeDiscriminators.php b/Neos.ContentRepository.TestSuite/Classes/Behavior/Features/Bootstrap/Helpers/NodeDiscriminators.php index 07924d1de4a..fbe4dab477a 100644 --- a/Neos.ContentRepository.TestSuite/Classes/Behavior/Features/Bootstrap/Helpers/NodeDiscriminators.php +++ b/Neos.ContentRepository.TestSuite/Classes/Behavior/Features/Bootstrap/Helpers/NodeDiscriminators.php @@ -68,9 +68,6 @@ public function areSimilarTo(self $other): bool return $theseDiscriminators == $otherDiscriminators; } - /** - * @return \Traversable - */ public function getIterator(): \Traversable { yield from $this->discriminators; diff --git a/Neos.Fusion/Classes/Core/FusionSourceCodeCollection.php b/Neos.Fusion/Classes/Core/FusionSourceCodeCollection.php index 54218f62f23..0469f0f33ec 100644 --- a/Neos.Fusion/Classes/Core/FusionSourceCodeCollection.php +++ b/Neos.Fusion/Classes/Core/FusionSourceCodeCollection.php @@ -68,9 +68,6 @@ public function union(FusionSourceCodeCollection $other): self return new self(...$this->fusionCodeCollection, ...$other->fusionCodeCollection); } - /** - * @return \Traversable - */ public function getIterator(): \Traversable { yield from $this->fusionCodeCollection; diff --git a/Neos.Neos/Classes/PendingChangesProjection/Changes.php b/Neos.Neos/Classes/PendingChangesProjection/Changes.php index 956e9e37210..9c23eaaf4f0 100644 --- a/Neos.Neos/Classes/PendingChangesProjection/Changes.php +++ b/Neos.Neos/Classes/PendingChangesProjection/Changes.php @@ -46,9 +46,6 @@ public static function fromArray(array $changes): self return new self($changes); } - /** - * @return \Traversable - */ public function getIterator(): \Traversable { yield from $this->changes; diff --git a/Neos.TimeableNodeVisibility/Tests/Behavior/Bootstrap/FeatureContext.php b/Neos.TimeableNodeVisibility/Tests/Behavior/Bootstrap/FeatureContext.php index 6e3ce6ff3a6..d1b22507e62 100644 --- a/Neos.TimeableNodeVisibility/Tests/Behavior/Bootstrap/FeatureContext.php +++ b/Neos.TimeableNodeVisibility/Tests/Behavior/Bootstrap/FeatureContext.php @@ -27,11 +27,6 @@ class FeatureContext implements Context use CRTestSuiteTrait; use CRBehavioralTestsSubjectProvider; - protected $isolated = false; - - - private ContentRepository $contentRepository; - protected ContentRepositoryRegistry $contentRepositoryRegistry; public function __construct()