Skip to content

Commit

Permalink
Merge pull request #70 from giansalex/fix-deprecated-php8.1
Browse files Browse the repository at this point in the history
Remove json interface Impl
  • Loading branch information
giansalex authored Dec 14, 2023
2 parents 0befc97 + 02e37df commit b725d4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 36 deletions.
19 changes: 1 addition & 18 deletions src/Peru/Reniec/Person.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@

namespace Peru\Reniec;

use JsonSerializable;

/**
* Class Person.
*/
class Person implements JsonSerializable
class Person
{
/**
* @var string
Expand All @@ -35,19 +33,4 @@ class Person implements JsonSerializable
* @var string
*/
public $codVerifica;

/**
* Specify data which should be serialized to JSON.
*
* @see http://php.net/manual/en/jsonserializable.jsonserialize.php
*
* @return mixed data which can be serialized by <b>json_encode</b>,
* which is a value of any type other than a resource.
*
* @since 5.4.0
*/
public function jsonSerialize()
{
return get_object_vars($this);
}
}
19 changes: 1 addition & 18 deletions src/Peru/Sunat/Company.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@

namespace Peru\Sunat;

use JsonSerializable;

/**
* Class Company.
*/
class Company implements JsonSerializable
class Company
{
/**
* @var string
Expand Down Expand Up @@ -111,19 +109,4 @@ class Company implements JsonSerializable
* @var string
*/
public $profesion;

/**
* Specify data which should be serialized to JSON.
*
* @see http://php.net/manual/en/jsonserializable.jsonserialize.php
*
* @return mixed data which can be serialized by <b>json_encode</b>,
* which is a value of any type other than a resource.
*
* @since 5.4.0
*/
public function jsonSerialize()
{
return get_object_vars($this);
}
}

0 comments on commit b725d4c

Please sign in to comment.