Skip to content

Commit

Permalink
Inherit annotations
Browse files Browse the repository at this point in the history
This implies disabling the UselessInheritDocComment sniff.
  • Loading branch information
greg0ire committed Oct 3, 2023
1 parent 9a86474 commit 448e610
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
<file>src</file>
<file>tests</file>

<rule ref="Doctrine" />
<rule ref="Doctrine" >
<exclude name="SlevomatCodingStandard.Commenting.UselessInheritDocComment" />
</rule>

<rule ref="PSR1.Classes.ClassDeclaration.MultipleClasses">
<exclude-pattern>tests/*</exclude-pattern>
Expand Down
6 changes: 6 additions & 0 deletions src/AbstractLazyCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ public function findFirst(Closure $p): mixed
return $this->collection->findFirst($p);
}

/**
* {@inheritDoc}
*/
public function filter(Closure $p): Collection
{
$this->initialize();
Expand All @@ -191,6 +194,9 @@ public function forAll(Closure $p): bool
return $this->collection->forAll($p);
}

/**
* {@inheritDoc}
*/
public function map(Closure $func): Collection
{
$this->initialize();
Expand Down

0 comments on commit 448e610

Please sign in to comment.