Skip to content

Commit

Permalink
fix Deprecated usage
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Nov 22, 2024
1 parent 5ca21fe commit 6d1de46
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 11 deletions.
3 changes: 0 additions & 3 deletions src/ByteSequence.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,12 @@

namespace League\Csv;

use Deprecated;

/**
* Defines constants for common BOM sequences.
*
* @deprecated since version 9.16.0
* @see Bom
*/
#[Deprecated(message:'Use Bom Enum instead', since:'league/csv:9.16.0')]
interface ByteSequence
{
public const BOM_UTF8 = "\xEF\xBB\xBF";
Expand Down
2 changes: 0 additions & 2 deletions src/EncloseField.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

namespace League\Csv;

use Deprecated;
use InvalidArgumentException;
use php_user_filter;

Expand All @@ -38,7 +37,6 @@
* @see https://tools.ietf.org/html/rfc4180#section-2
* @see https://bugs.php.net/bug.php?id=38301
*/
#[Deprecated(message:'Use Writter::forceEnclosure instead', since:'league/csv:9.10.0')]
class EncloseField extends php_user_filter
{
public const FILTERNAME = 'convert.league.csv.enclosure';
Expand Down
2 changes: 0 additions & 2 deletions src/EncloseFieldTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

namespace League\Csv;

use Deprecated;
use InvalidArgumentException;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Group;
Expand All @@ -27,7 +26,6 @@
* @deprecated since version 9.10.0
*/
#[Group('filter')]
#[Deprecated(message:'Use Writer::forceEnclosure instead', since:'league/csv:9.10.0')]
final class EncloseFieldTest extends TestCase
{
/**
Expand Down
2 changes: 0 additions & 2 deletions src/RFC4180Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

namespace League\Csv;

use Deprecated;
use InvalidArgumentException;
use php_user_filter;
use TypeError;
Expand Down Expand Up @@ -42,7 +41,6 @@
*
* @see https://tools.ietf.org/html/rfc4180#section-2
*/
#[Deprecated(message:'use its AbstractCsv::setEscape instead', since:'league/csv:9.2.0')]
class RFC4180Field extends php_user_filter
{
public const FILTERNAME = 'convert.league.csv.rfc4180';
Expand Down
2 changes: 0 additions & 2 deletions src/RFC4180FieldTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

namespace League\Csv;

use Deprecated;
use InvalidArgumentException;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Group;
Expand All @@ -31,7 +30,6 @@
* @deprecated since version 9.2.0
*/
#[Group('filter')]
#[Deprecated(message:'Test will be removed their are left to avoid regression', since:'league/csv:9.2.0')]
final class RFC4180FieldTest extends TestCase
{
/**
Expand Down

0 comments on commit 6d1de46

Please sign in to comment.