Skip to content

Commit

Permalink
Add ReturnTypeWillChange to ReflectionEmbeddedProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus committed Jun 5, 2021
1 parent ee19cf5 commit 6432a3e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Doctrine/ORM/Mapping/ReflectionEmbeddedProperty.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

use Doctrine\Instantiator\Instantiator;
use ReflectionProperty;
use ReturnTypeWillChange;

/**
* Acts as a proxy to a nested Property structure, making it look like
Expand Down Expand Up @@ -61,6 +62,7 @@ public function __construct(ReflectionProperty $parentProperty, ReflectionProper
/**
* {@inheritDoc}
*/
#[ReturnTypeWillChange]
public function getValue($object = null)
{
$embeddedObject = $this->parentProperty->getValue($object);
Expand All @@ -75,6 +77,7 @@ public function getValue($object = null)
/**
* {@inheritDoc}
*/
#[ReturnTypeWillChange]
public function setValue($object, $value = null)
{
$embeddedObject = $this->parentProperty->getValue($object);
Expand Down
5 changes: 5 additions & 0 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@
<exclude-pattern>lib/Doctrine/ORM/Cache/DefaultQueryCache.php</exclude-pattern>
</rule>

<rule ref="SlevomatCodingStandard.Commenting.UselessInheritDocComment.UselessInheritDocComment">
<!-- Workaround for https://github.com/slevomat/coding-standard/issues/1233 -->
<exclude-pattern>lib/Doctrine/ORM/Mapping/ReflectionEmbeddedProperty.php</exclude-pattern>
</rule>

<rule ref="SlevomatCodingStandard.Classes.SuperfluousInterfaceNaming">
<exclude-pattern>lib/Doctrine/ORM/EntityManagerInterface.php</exclude-pattern>
</rule>
Expand Down

0 comments on commit 6432a3e

Please sign in to comment.