Skip to content

Commit

Permalink
Merge branch '2.14.x' into 2.15.x
Browse files Browse the repository at this point in the history
* 2.14.x:
  PHPStan 1.10.14 (doctrine#10655)
  Remove JoinColumn from inverse side (doctrine#10652)
  Apply `SlevomatCodingStandard.Commenting.AnnotationName` CS rule (doctrine#10653)
  • Loading branch information
derrabus committed Apr 25, 2023
2 parents ba9f51a + 1142a39 commit a056552
Show file tree
Hide file tree
Showing 201 changed files with 651 additions and 658 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
},
"require-dev": {
"doctrine/annotations": "^1.13 || ^2",
"doctrine/coding-standard": "^9.0.2 || ^11.0",
"doctrine/coding-standard": "^9.0.2 || ^12.0",
"phpbench/phpbench": "^0.16.10 || ^1.0",
"phpstan/phpstan": "~1.4.10 || 1.10.6",
"phpstan/phpstan": "~1.4.10 || 1.10.14",
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.6",
"psr/log": "^1 || ^2 || ^3",
"squizlabs/php_codesniffer": "3.7.2",
Expand Down
6 changes: 3 additions & 3 deletions docs/en/reference/metadata-drivers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,12 @@ the ``FileDriver`` implementation for you to extend from:
class MyMetadataDriver extends FileDriver
{
/**
* {@inheritdoc}
* {@inheritDoc}
*/
protected $_fileExtension = '.dcm.ext';
/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function loadMetadataForClass($className, ClassMetadata $metadata)
{
Expand All @@ -138,7 +138,7 @@ the ``FileDriver`` implementation for you to extend from:
}
/**
* {@inheritdoc}
* {@inheritDoc}
*/
protected function _loadMappingFile($file)
{
Expand Down
2 changes: 1 addition & 1 deletion docs/en/reference/typedfieldmapper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ You need to create a class which implements ``Doctrine\ORM\Mapping\TypedFieldMap
final class CustomEnumTypedFieldMapper implements TypedFieldMapper
{
/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function validateAndComplete(array $mapping, ReflectionProperty $field): array
{
Expand Down
28 changes: 14 additions & 14 deletions lib/Doctrine/ORM/Cache/DefaultCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function __construct(EntityManagerInterface $em)
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function getEntityCacheRegion($className)
{
Expand All @@ -63,7 +63,7 @@ public function getEntityCacheRegion($className)
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function getCollectionCacheRegion($className, $association)
{
Expand All @@ -78,7 +78,7 @@ public function getCollectionCacheRegion($className, $association)
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function containsEntity($className, $identifier)
{
Expand All @@ -93,7 +93,7 @@ public function containsEntity($className, $identifier)
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function evictEntity($className, $identifier)
{
Expand All @@ -108,7 +108,7 @@ public function evictEntity($className, $identifier)
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function evictEntityRegion($className)
{
Expand All @@ -123,7 +123,7 @@ public function evictEntityRegion($className)
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function evictEntityRegions()
{
Expand All @@ -141,7 +141,7 @@ public function evictEntityRegions()
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function containsCollection($className, $association, $ownerIdentifier)
{
Expand All @@ -156,7 +156,7 @@ public function containsCollection($className, $association, $ownerIdentifier)
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function evictCollection($className, $association, $ownerIdentifier)
{
Expand All @@ -171,7 +171,7 @@ public function evictCollection($className, $association, $ownerIdentifier)
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function evictCollectionRegion($className, $association)
{
Expand All @@ -186,7 +186,7 @@ public function evictCollectionRegion($className, $association)
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function evictCollectionRegions()
{
Expand All @@ -210,15 +210,15 @@ public function evictCollectionRegions()
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function containsQuery($regionName)
{
return isset($this->queryCaches[$regionName]);
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function evictQueryRegion($regionName = null)
{
Expand All @@ -234,7 +234,7 @@ public function evictQueryRegion($regionName = null)
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function evictQueryRegions()
{
Expand All @@ -246,7 +246,7 @@ public function evictQueryRegions()
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function getQueryCache($regionName = null)
{
Expand Down
16 changes: 8 additions & 8 deletions lib/Doctrine/ORM/Cache/DefaultCacheFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public function setTimestampRegion(TimestampRegion $region)
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function buildCachedEntityPersister(EntityManagerInterface $em, EntityPersister $persister, ClassMetadata $metadata)
{
Expand Down Expand Up @@ -134,7 +134,7 @@ public function buildCachedEntityPersister(EntityManagerInterface $em, EntityPer
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function buildCachedCollectionPersister(EntityManagerInterface $em, CollectionPersister $persister, array $mapping)
{
Expand Down Expand Up @@ -162,7 +162,7 @@ public function buildCachedCollectionPersister(EntityManagerInterface $em, Colle
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function buildQueryCache(EntityManagerInterface $em, $regionName = null)
{
Expand All @@ -178,23 +178,23 @@ public function buildQueryCache(EntityManagerInterface $em, $regionName = null)
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function buildCollectionHydrator(EntityManagerInterface $em, array $mapping)
{
return new DefaultCollectionHydrator($em);
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function buildEntityHydrator(EntityManagerInterface $em, ClassMetadata $metadata)
{
return new DefaultEntityHydrator($em);
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function getRegion(array $cache)
{
Expand Down Expand Up @@ -225,7 +225,7 @@ public function getRegion(array $cache)
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function getTimestampRegion()
{
Expand All @@ -240,7 +240,7 @@ public function getTimestampRegion()
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function createCache(EntityManagerInterface $entityManager)
{
Expand Down
4 changes: 2 additions & 2 deletions lib/Doctrine/ORM/Cache/DefaultCollectionHydrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function __construct(EntityManagerInterface $em)
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function buildCacheEntry(ClassMetadata $metadata, CollectionCacheKey $key, $collection)
{
Expand All @@ -49,7 +49,7 @@ public function buildCacheEntry(ClassMetadata $metadata, CollectionCacheKey $key
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function loadCacheEntry(ClassMetadata $metadata, CollectionCacheKey $key, CollectionCacheEntry $entry, PersistentCollection $collection)
{
Expand Down
4 changes: 2 additions & 2 deletions lib/Doctrine/ORM/Cache/DefaultEntityHydrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function __construct(EntityManagerInterface $em)
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function buildCacheEntry(ClassMetadata $metadata, EntityCacheKey $key, $entity)
{
Expand Down Expand Up @@ -140,7 +140,7 @@ public function buildCacheEntry(ClassMetadata $metadata, EntityCacheKey $key, $e
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function loadCacheEntry(ClassMetadata $metadata, EntityCacheKey $key, EntityCacheEntry $entry, $entity = null)
{
Expand Down
8 changes: 4 additions & 4 deletions lib/Doctrine/ORM/Cache/DefaultQueryCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function __construct(EntityManagerInterface $em, Region $region)
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function get(QueryCacheKey $key, ResultSetMapping $rsm, array $hints = [])
{
Expand Down Expand Up @@ -227,7 +227,7 @@ public function get(QueryCacheKey $key, ResultSetMapping $rsm, array $hints = []
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function put(QueryCacheKey $key, ResultSetMapping $rsm, $result, array $hints = [])
{
Expand Down Expand Up @@ -450,15 +450,15 @@ private function getAssociationPathValue($value, array $path)
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function clear()
{
return $this->region->evictAll();
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function getRegion()
{
Expand Down
18 changes: 9 additions & 9 deletions lib/Doctrine/ORM/Cache/Logging/CacheLoggerChain.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function getLoggers()
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function collectionCacheHit($regionName, CollectionCacheKey $key)
{
Expand All @@ -50,7 +50,7 @@ public function collectionCacheHit($regionName, CollectionCacheKey $key)
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function collectionCacheMiss($regionName, CollectionCacheKey $key)
{
Expand All @@ -60,7 +60,7 @@ public function collectionCacheMiss($regionName, CollectionCacheKey $key)
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function collectionCachePut($regionName, CollectionCacheKey $key)
{
Expand All @@ -70,7 +70,7 @@ public function collectionCachePut($regionName, CollectionCacheKey $key)
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function entityCacheHit($regionName, EntityCacheKey $key)
{
Expand All @@ -80,7 +80,7 @@ public function entityCacheHit($regionName, EntityCacheKey $key)
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function entityCacheMiss($regionName, EntityCacheKey $key)
{
Expand All @@ -90,7 +90,7 @@ public function entityCacheMiss($regionName, EntityCacheKey $key)
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function entityCachePut($regionName, EntityCacheKey $key)
{
Expand All @@ -100,7 +100,7 @@ public function entityCachePut($regionName, EntityCacheKey $key)
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function queryCacheHit($regionName, QueryCacheKey $key)
{
Expand All @@ -110,7 +110,7 @@ public function queryCacheHit($regionName, QueryCacheKey $key)
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function queryCacheMiss($regionName, QueryCacheKey $key)
{
Expand All @@ -120,7 +120,7 @@ public function queryCacheMiss($regionName, QueryCacheKey $key)
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function queryCachePut($regionName, QueryCacheKey $key)
{
Expand Down
Loading

0 comments on commit a056552

Please sign in to comment.