Skip to content

Commit

Permalink
Deprecate more unused classes
Browse files Browse the repository at this point in the history
Signed-off-by: Kim Pepper <[email protected]>
  • Loading branch information
kimpepper committed Jan 23, 2025
1 parent 7582a53 commit da17d54
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/OpenSearch/Helper/Iterators/SearchHitIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@

use Iterator;

// @phpstan-ignore classConstant.deprecatedClass
@trigger_error(SearchHitIterator::class . ' is deprecated in 2.3.2 and will be removed in 3.0.0.', E_USER_DEPRECATED);

/**
* @deprecated in 2.3.2 and will be removed in 3.0.0.
*/
class SearchHitIterator implements Iterator, \Countable
{
/**
Expand Down
6 changes: 6 additions & 0 deletions src/OpenSearch/Helper/Iterators/SearchResponseIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@
use OpenSearch\Client;
use Iterator;

// @phpstan-ignore classConstant.deprecatedClass
@trigger_error(SearchResponseIterator::class . ' is deprecated in 2.3.2 and will be removed in 3.0.0.', E_USER_DEPRECATED);

/**
* @deprecated in 2.3.2 and will be removed in 3.0.0.
*/
class SearchResponseIterator implements Iterator
{
/**
Expand Down
6 changes: 6 additions & 0 deletions tests/ClientBuilder/ArrayLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
use Psr\Log\LoggerInterface;
use Psr\Log\LogLevel;

// @phpstan-ignore classConstant.deprecatedClass
@trigger_error(ArrayLogger::class . ' is deprecated in 2.4.0 and will be removed in 3.0.0.', E_USER_DEPRECATED);

/**
* @deprecated in 2.4.0 and will be removed in 3.0.0.
*/
class ArrayLogger implements LoggerInterface
{
/**
Expand Down
1 change: 1 addition & 0 deletions tests/Helper/Iterators/SearchHitIteratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
/**
* Class SearchResponseIteratorTest
*
* @deprecated in 2.3.2 and will be removed in 3.0.0.
*/
class SearchHitIteratorTest extends \PHPUnit\Framework\TestCase
{
Expand Down
1 change: 1 addition & 0 deletions tests/Helper/Iterators/SearchResponseIteratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
/**
* Class SearchResponseIteratorTest
*
* @deprecated in 2.3.2 and will be removed in 3.0.0.
*/
class SearchResponseIteratorTest extends \PHPUnit\Framework\TestCase
{
Expand Down

0 comments on commit da17d54

Please sign in to comment.