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 6d1de46 commit 1d08538
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/HTMLConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static function create(): self
* @see HTMLConverter::create()
* @deprecated since version 9.7.0
*/
#[Deprecated(message:'use HTNLConverter::create instead', since:'league/csv:9.7.0')]
#[Deprecated(message:'use HTMLConverter::create instead', since:'league/csv:9.7.0')]
public function __construct()
{
$this->xml_converter = XMLConverter::create()
Expand Down
2 changes: 0 additions & 2 deletions src/Serializer/AfterMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
namespace League\Csv\Serializer;

use Attribute;
use Deprecated;
use ReflectionAttribute;
use ReflectionClass;

Expand All @@ -24,7 +23,6 @@
* @see MapRecord
*/
#[Attribute(Attribute::TARGET_CLASS)]
#[Deprecated(message:'Use MapRecord attribute instead', since:'league/csv:9.17.0')]
final class AfterMapping
{
public readonly MapRecord $mapRecord;
Expand Down
2 changes: 1 addition & 1 deletion src/SyntaxError.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class SyntaxError extends Exception
*
* @deprecated since version 9.7.0
*/
#[Deprecated(message:'Use namd constructor instead', since:'league/csv:9.7.0')]
#[Deprecated(message:'Use named constructor instead', since:'league/csv:9.7.0')]
public function __construct(string $message = '', int $code = 0, ?Throwable $previous = null)
{
parent::__construct($message, $code, $previous);
Expand Down

0 comments on commit 1d08538

Please sign in to comment.