Skip to content

Commit

Permalink
chore: code style
Browse files Browse the repository at this point in the history
  • Loading branch information
petrknap committed Apr 1, 2024
1 parent c4a1b79 commit 9fbaf7b
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 13 deletions.
4 changes: 3 additions & 1 deletion src/Coder.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@

namespace PetrKnap\Binary;

use PetrKnap\Shorts\Exception\CouldNotProcessData;

/**
* @internal please use subclass
*
* @phpstan-consistent-constructor override {@see self::create()} if not
*
* @implements CoderInterface<Exception\CouldNotProcessData>
* @implements CoderInterface<CouldNotProcessData>
*/
abstract class Coder implements CoderInterface
{
Expand Down
6 changes: 3 additions & 3 deletions src/Coder/Exception/CouldNotDecodeData.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

namespace PetrKnap\Binary\Coder\Exception;

use PetrKnap\Shorts\CouldNotProcessDataException;
use PetrKnap\Shorts\Exception\CouldNotProcessData;

/**
* @extends CouldNotProcessDataException<string>
* @extends CouldNotProcessData<string>
*/
final class CouldNotDecodeData extends CouldNotProcessDataException implements CoderException
final class CouldNotDecodeData extends CouldNotProcessData implements CoderException
{
}
6 changes: 3 additions & 3 deletions src/Coder/Exception/CouldNotEncodeData.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

namespace PetrKnap\Binary\Coder\Exception;

use PetrKnap\Shorts\CouldNotProcessDataException;
use PetrKnap\Shorts\Exception\CouldNotProcessData;

/**
* @extends CouldNotProcessDataException<string>
* @extends CouldNotProcessData<string>
*/
final class CouldNotEncodeData extends CouldNotProcessDataException implements CoderException
final class CouldNotEncodeData extends CouldNotProcessData implements CoderException
{
}
2 changes: 2 additions & 0 deletions src/CoderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

namespace PetrKnap\Binary;

use PetrKnap\Shorts\Exception;

/**
* @internal please use subinterface
*
Expand Down
6 changes: 3 additions & 3 deletions src/Serializer/Exception/CouldNotSerializeData.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

namespace PetrKnap\Binary\Serializer\Exception;

use PetrKnap\Shorts\CouldNotProcessDataException;
use PetrKnap\Shorts\Exception\CouldNotProcessData;

/**
* @extends CouldNotProcessDataException<mixed>
* @extends CouldNotProcessData<mixed>
*/
final class CouldNotSerializeData extends CouldNotProcessDataException implements SerializerException
final class CouldNotSerializeData extends CouldNotProcessData implements SerializerException
{
}
6 changes: 3 additions & 3 deletions src/Serializer/Exception/CouldNotUnserializeData.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

namespace PetrKnap\Binary\Serializer\Exception;

use PetrKnap\Shorts\CouldNotProcessDataException;
use PetrKnap\Shorts\Exception\CouldNotProcessData;

/**
* @extends CouldNotProcessDataException<string>
* @extends CouldNotProcessData<string>
*/
final class CouldNotUnserializeData extends CouldNotProcessDataException implements SerializerException
final class CouldNotUnserializeData extends CouldNotProcessData implements SerializerException
{
}

0 comments on commit 9fbaf7b

Please sign in to comment.