Skip to content

Commit 2aa3e69

Browse files
committed
Update deprecation version numbers
1 parent c938489 commit 2aa3e69

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/Doctrine/ODM/MongoDB/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ public function setLazyGhostObject(bool $flag): void
704704
}
705705

706706
if ($flag === true && PHP_VERSION_ID >= 80400) {
707-
trigger_deprecation('doctrine/mongodb-odm', '2.13', 'Using "symfony/var-exporter" lazy ghost objects is deprecated and will be impossible in Doctrine MongoDB ODM 3.0.');
707+
trigger_deprecation('doctrine/mongodb-odm', '2.14', 'Using "symfony/var-exporter" lazy ghost objects is deprecated and will be impossible in Doctrine MongoDB ODM 3.0.');
708708
}
709709

710710
$this->lazyGhostObject = $flag;
@@ -718,7 +718,7 @@ public function isLazyGhostObjectEnabled(): bool
718718
public function enableNativeLazyObjects(bool $nativeLazyObjects): void
719719
{
720720
if (PHP_VERSION_ID >= 80400 && ! $nativeLazyObjects) {
721-
trigger_deprecation('doctrine/mongodb-odm', '2.13', 'Disabling native lazy objects is deprecated and will be impossible in Doctrine MongoDB ODM 3.0.');
721+
trigger_deprecation('doctrine/mongodb-odm', '2.14', 'Disabling native lazy objects is deprecated and will be impossible in Doctrine MongoDB ODM 3.0.');
722722
}
723723

724724
if (PHP_VERSION_ID < 80400 && $nativeLazyObjects) {

lib/Doctrine/ODM/MongoDB/Mapping/LegacyReflectionFields.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function __construct(private ClassMetadata $classMetadata, private Reflec
3838
/** @param string $offset */
3939
public function offsetExists($offset): bool // phpcs:ignore
4040
{
41-
trigger_deprecation('doctrine/mongodb-odm', '2.13', 'Access to ClassMetadata::$reflFields is deprecated and will be removed in Doctrine ODM 3.0.');
41+
trigger_deprecation('doctrine/mongodb-odm', '2.14', 'Access to ClassMetadata::$reflFields is deprecated and will be removed in Doctrine ODM 3.0.');
4242

4343
return isset($this->classMetadata->propertyAccessors[$offset]);
4444
}
@@ -54,7 +54,7 @@ public function offsetGet($field): mixed // phpcs:ignore
5454
return $this->reflFields[$field];
5555
}
5656

57-
trigger_deprecation('doctrine/mongodb-odm', '2.13', 'Access to ClassMetadata::$reflFields is deprecated and will be removed in Doctrine ODM 3.0.');
57+
trigger_deprecation('doctrine/mongodb-odm', '2.14', 'Access to ClassMetadata::$reflFields is deprecated and will be removed in Doctrine ODM 3.0.');
5858

5959
if (! isset($this->classMetadata->propertyAccessors[$field])) {
6060
throw new OutOfBoundsException('Unknown field: ' . $this->classMetadata->name . ' ::$' . $field);
@@ -118,7 +118,7 @@ private function getAccessibleProperty(string $class, string $field): Reflection
118118
/** @return Generator<string, ReflectionProperty> */
119119
public function getIterator(): Traversable
120120
{
121-
trigger_deprecation('doctrine/mongodb-odm', '2.13', 'Access to ClassMetadata::$reflFields is deprecated and will be removed in Doctrine ODM 3.0.');
121+
trigger_deprecation('doctrine/mongodb-odm', '2.14', 'Access to ClassMetadata::$reflFields is deprecated and will be removed in Doctrine ODM 3.0.');
122122

123123
$keys = array_keys($this->classMetadata->propertyAccessors);
124124

@@ -129,7 +129,7 @@ public function getIterator(): Traversable
129129

130130
public function count(): int
131131
{
132-
trigger_deprecation('doctrine/mongodb-odm', '2.13', 'Access to ClassMetadata::$reflFields is deprecated and will be removed in Doctrine ODM 3.0.');
132+
trigger_deprecation('doctrine/mongodb-odm', '2.14', 'Access to ClassMetadata::$reflFields is deprecated and will be removed in Doctrine ODM 3.0.');
133133

134134
return count($this->classMetadata->propertyAccessors);
135135
}

0 commit comments

Comments
 (0)