diff --git a/UPGRADE-8.0.md b/UPGRADE-8.0.md index 1a0fb23c89891..480e1c7a1acea 100644 --- a/UPGRADE-8.0.md +++ b/UPGRADE-8.0.md @@ -225,6 +225,7 @@ Intl Ldap ---- + * Remove the `sizeLimit` option of `AbstractQuery` * Remove `LdapUser::eraseCredentials()` in favor of `__serialize()` Mailer diff --git a/src/Symfony/Component/Ldap/Adapter/AbstractQuery.php b/src/Symfony/Component/Ldap/Adapter/AbstractQuery.php index 1a14637fc94fe..55a500ff4616f 100644 --- a/src/Symfony/Component/Ldap/Adapter/AbstractQuery.php +++ b/src/Symfony/Component/Ldap/Adapter/AbstractQuery.php @@ -31,7 +31,6 @@ public function __construct( $resolver->setDefaults([ 'filter' => '*', 'maxItems' => 0, - 'sizeLimit' => 0, 'timeout' => 0, 'deref' => static::DEREF_NEVER, 'attrsOnly' => 0, @@ -43,8 +42,6 @@ public function __construct( $resolver->setNormalizer('filter', fn (Options $options, $value) => \is_array($value) ? $value : [$value]); - $resolver->setDeprecated('sizeLimit', 'symfony/ldap', '7.2', 'The "%name%" option is deprecated and will be removed in Symfony 8.0.'); - $this->options = $resolver->resolve($options); } } diff --git a/src/Symfony/Component/Ldap/CHANGELOG.md b/src/Symfony/Component/Ldap/CHANGELOG.md index 7b8daa3d47617..86cb9faa1c15f 100644 --- a/src/Symfony/Component/Ldap/CHANGELOG.md +++ b/src/Symfony/Component/Ldap/CHANGELOG.md @@ -4,6 +4,7 @@ CHANGELOG 8.0 --- + * Remove the `sizeLimit` option of `AbstractQuery` * Remove `LdapUser::eraseCredentials()` in favor of `__serialize()` 7.3 diff --git a/src/Symfony/Component/Ldap/Tests/Adapter/AbstractQueryTest.php b/src/Symfony/Component/Ldap/Tests/Adapter/AbstractQueryTest.php deleted file mode 100644 index ca5c2e01d832f..0000000000000 --- a/src/Symfony/Component/Ldap/Tests/Adapter/AbstractQueryTest.php +++ /dev/null @@ -1,37 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Ldap\Tests\Adapter; - -use PHPUnit\Framework\TestCase; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; -use Symfony\Component\Ldap\Adapter\AbstractQuery; -use Symfony\Component\Ldap\Adapter\CollectionInterface; -use Symfony\Component\Ldap\Adapter\ConnectionInterface; - -class AbstractQueryTest extends TestCase -{ - use ExpectUserDeprecationMessageTrait; - - /** - * @group legacy - */ - public function testSizeLimitIsDeprecated() - { - $this->expectUserDeprecationMessage('Since symfony/ldap 7.2: The "sizeLimit" option is deprecated and will be removed in Symfony 8.0.'); - - new class($this->createMock(ConnectionInterface::class), '', '', ['filter' => '*', 'sizeLimit' => 1]) extends AbstractQuery { - public function execute(): CollectionInterface - { - } - }; - } -} pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy