Version 5.1 - All the GraphQL #32

Closed
timw4mail wants to merge 1160 commits from develop into master
4 changed files with 4 additions and 7 deletions
Showing only changes of commit c012b049e1 - Show all commits

View File

@ -37,7 +37,7 @@ abstract class AbstractType implements ArrayAccess, Countable {
* @param array $data
* @return array|null
*/
final public static function check($data = []): ?array
final public static function check(array $data = []): ?array
{
$currentClass = static::class;
@ -199,7 +199,7 @@ abstract class AbstractType implements ArrayAccess, Countable {
*/
final public function count(): int
{
$keys = array_keys((array)$this->toArray());
$keys = array_keys($this->toArray());
return count($keys);
}
@ -224,7 +224,7 @@ abstract class AbstractType implements ArrayAccess, Countable {
*/
final public function isEmpty(): bool
{
$self = (array)$this->toArray();
$self = $this->toArray();
foreach ($self as $value)
{
if ( ! empty($value))

View File

@ -36,8 +36,6 @@ class Anime extends AbstractType {
public string $id = '';
public array $included = [];
public ?string $show_type;
public ?string $slug;

View File

@ -26,8 +26,6 @@ final class Character extends AbstractType {
public string $id;
public array $included = [];
public ?Media $media;
public ?string $name;

View File

@ -6,6 +6,7 @@ data:
notes: ''
private: true
progress: 12
ratingTwenty: null
reconsumeCount: 0
reconsuming: true
status: current