Skip to content

Commit

Permalink
Fix encoder constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Jan 3, 2024
1 parent b343370 commit 9127c4c
Show file tree
Hide file tree
Showing 17 changed files with 16 additions and 17 deletions.
1 change: 0 additions & 1 deletion src/Encoder/AbstractEncoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ abstract class AbstractEncoder
*/
public function __construct(protected mixed $source)
{
$this->source = $source;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Encoder/ApplicationExtensionEncoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ApplicationExtensionEncoder extends AbstractEncoder
*
* @param ApplicationExtension $source
*/
public function __construct(protected ApplicationExtension $source)
public function __construct(ApplicationExtension $source)
{
$this->source = $source;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Encoder/ColorEncoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ColorEncoder extends AbstractEncoder
*
* @param Color $source
*/
public function __construct(protected Color $source)
public function __construct(Color $source)
{
$this->source = $source;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Encoder/ColorTableEncoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ColorTableEncoder extends AbstractEncoder
*
* @param ColorTable $source
*/
public function __construct(protected ColorTable $source)
public function __construct(ColorTable $source)
{
$this->source = $source;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Encoder/CommentExtensionEncoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class CommentExtensionEncoder extends AbstractEncoder
*
* @param CommentExtension $source
*/
public function __construct(protected CommentExtension $source)
public function __construct(CommentExtension $source)
{
$this->source = $source;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Encoder/DataSubBlockEncoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class DataSubBlockEncoder extends AbstractEncoder
*
* @param DataSubBlock $source
*/
public function __construct(protected DataSubBlock $source)
public function __construct(DataSubBlock $source)
{
$this->source = $source;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Encoder/FrameBlockEncoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class FrameBlockEncoder extends AbstractEncoder
*
* @param FrameBlock $source
*/
public function __construct(protected FrameBlock $source)
public function __construct(FrameBlock $source)
{
$this->source = $source;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Encoder/GifDataStreamEncoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class GifDataStreamEncoder extends AbstractEncoder
*
* @param GifDataStream $source
*/
public function __construct(protected GifDataStream $source)
public function __construct(GifDataStream $source)
{
$this->source = $source;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Encoder/GraphicControlExtensionEncoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class GraphicControlExtensionEncoder extends AbstractEncoder
*
* @param GraphicControlExtension $source
*/
public function __construct(protected GraphicControlExtension $source)
public function __construct(GraphicControlExtension $source)
{
$this->source = $source;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Encoder/HeaderEncoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class HeaderEncoder extends AbstractEncoder
*
* @param Header $source
*/
public function __construct(protected Header $source)
public function __construct(Header $source)
{
$this->source = $source;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Encoder/ImageDataEncoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ImageDataEncoder extends AbstractEncoder
*
* @param ImageData $source
*/
public function __construct(protected ImageData $source)
public function __construct(ImageData $source)
{
$this->source = $source;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Encoder/ImageDescriptorEncoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ImageDescriptorEncoder extends AbstractEncoder
*
* @param ImageDescriptor $source
*/
public function __construct(protected ImageDescriptor $source)
public function __construct(ImageDescriptor $source)
{
$this->source = $source;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Encoder/LogicalScreenDescriptorEncoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class LogicalScreenDescriptorEncoder extends AbstractEncoder
*
* @param LogicalScreenDescriptor $source
*/
public function __construct(protected LogicalScreenDescriptor $source)
public function __construct(LogicalScreenDescriptor $source)
{
$this->source = $source;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Encoder/NetscapeApplicationExtensionEncoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class NetscapeApplicationExtensionEncoder extends ApplicationExtensionEncoder
*
* @param NetscapeApplicationExtension $source
*/
public function __construct(protected NetscapeApplicationExtension $source)
public function __construct(NetscapeApplicationExtension $source)
{
$this->source = $source;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Encoder/PlainTextExtensionEncoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class PlainTextExtensionEncoder extends AbstractEncoder
*
* @param PlainTextExtension $source
*/
public function __construct(protected PlainTextExtension $source)
public function __construct(PlainTextExtension $source)
{
$this->source = $source;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Encoder/TableBasedImageEncoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class TableBasedImageEncoder extends AbstractEncoder
*
* @param TableBasedImage $source
*/
public function __construct(protected TableBasedImage $source)
public function __construct(TableBasedImage $source)
{
$this->source = $source;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Encoder/TrailerEncoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class TrailerEncoder extends AbstractEncoder
*
* @param Trailer $source
*/
public function __construct(protected Trailer $source)
public function __construct(Trailer $source)
{
$this->source = $source;
}
Expand Down

0 comments on commit 9127c4c

Please sign in to comment.