Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"docker-php/docker-php-api": "*"
},
"require": {
"php": ">=7.1",
"jane-php/jane-php": "^7.6"
"php": ">=8.2",
"jane-php/jane-php": "^7.8.0"
},
"require-dev": {
"phpunit/phpunit": "^10.4",
Expand All @@ -28,7 +28,7 @@
"4.1.36": "4.1.36.x-dev"
}
},
"minimum-stability": "dev",
"minimum-stability": "stable",
"prefer-stable": true,
"config": {
"allow-plugins": {
Expand Down
12 changes: 6 additions & 6 deletions src/Normalizer/AddressNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ class AddressNormalizer implements DenormalizerInterface, NormalizerInterface, D
use ValidatorTrait;
public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool
{
return $type === 'Docker\\API\\Model\\Address';
return $type === \Docker\API\Model\Address::class;
}
public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool
{
return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Address';
return is_object($data) && get_class($data) === \Docker\API\Model\Address::class;
}
public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed
{
Expand Down Expand Up @@ -79,7 +79,7 @@ public function normalize(mixed $object, string $format = null, array $context =
}
public function getSupportedTypes(?string $format = null) : array
{
return ['Docker\\API\\Model\\Address' => false];
return [\Docker\API\Model\Address::class => false];
}
}
} else {
Expand All @@ -91,11 +91,11 @@ class AddressNormalizer implements DenormalizerInterface, NormalizerInterface, D
use ValidatorTrait;
public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool
{
return $type === 'Docker\\API\\Model\\Address';
return $type === \Docker\API\Model\Address::class;
}
public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool
{
return is_object($data) && get_class($data) === 'Docker\\API\\Model\\Address';
return is_object($data) && get_class($data) === \Docker\API\Model\Address::class;
}
/**
* @return mixed
Expand Down Expand Up @@ -154,7 +154,7 @@ public function normalize($object, $format = null, array $context = [])
}
public function getSupportedTypes(?string $format = null) : array
{
return ['Docker\\API\\Model\\Address' => false];
return [\Docker\API\Model\Address::class => false];
}
}
}
12 changes: 6 additions & 6 deletions src/Normalizer/AuthConfigNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ class AuthConfigNormalizer implements DenormalizerInterface, NormalizerInterface
use ValidatorTrait;
public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool
{
return $type === 'Docker\\API\\Model\\AuthConfig';
return $type === \Docker\API\Model\AuthConfig::class;
}
public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool
{
return is_object($data) && get_class($data) === 'Docker\\API\\Model\\AuthConfig';
return is_object($data) && get_class($data) === \Docker\API\Model\AuthConfig::class;
}
public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed
{
Expand Down Expand Up @@ -99,7 +99,7 @@ public function normalize(mixed $object, string $format = null, array $context =
}
public function getSupportedTypes(?string $format = null) : array
{
return ['Docker\\API\\Model\\AuthConfig' => false];
return [\Docker\API\Model\AuthConfig::class => false];
}
}
} else {
Expand All @@ -111,11 +111,11 @@ class AuthConfigNormalizer implements DenormalizerInterface, NormalizerInterface
use ValidatorTrait;
public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool
{
return $type === 'Docker\\API\\Model\\AuthConfig';
return $type === \Docker\API\Model\AuthConfig::class;
}
public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool
{
return is_object($data) && get_class($data) === 'Docker\\API\\Model\\AuthConfig';
return is_object($data) && get_class($data) === \Docker\API\Model\AuthConfig::class;
}
/**
* @return mixed
Expand Down Expand Up @@ -194,7 +194,7 @@ public function normalize($object, $format = null, array $context = [])
}
public function getSupportedTypes(?string $format = null) : array
{
return ['Docker\\API\\Model\\AuthConfig' => false];
return [\Docker\API\Model\AuthConfig::class => false];
}
}
}
12 changes: 6 additions & 6 deletions src/Normalizer/AuthPostResponse200Normalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ class AuthPostResponse200Normalizer implements DenormalizerInterface, Normalizer
use ValidatorTrait;
public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool
{
return $type === 'Docker\\API\\Model\\AuthPostResponse200';
return $type === \Docker\API\Model\AuthPostResponse200::class;
}
public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool
{
return is_object($data) && get_class($data) === 'Docker\\API\\Model\\AuthPostResponse200';
return is_object($data) && get_class($data) === \Docker\API\Model\AuthPostResponse200::class;
}
public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed
{
Expand Down Expand Up @@ -77,7 +77,7 @@ public function normalize(mixed $object, string $format = null, array $context =
}
public function getSupportedTypes(?string $format = null) : array
{
return ['Docker\\API\\Model\\AuthPostResponse200' => false];
return [\Docker\API\Model\AuthPostResponse200::class => false];
}
}
} else {
Expand All @@ -89,11 +89,11 @@ class AuthPostResponse200Normalizer implements DenormalizerInterface, Normalizer
use ValidatorTrait;
public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool
{
return $type === 'Docker\\API\\Model\\AuthPostResponse200';
return $type === \Docker\API\Model\AuthPostResponse200::class;
}
public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool
{
return is_object($data) && get_class($data) === 'Docker\\API\\Model\\AuthPostResponse200';
return is_object($data) && get_class($data) === \Docker\API\Model\AuthPostResponse200::class;
}
/**
* @return mixed
Expand Down Expand Up @@ -150,7 +150,7 @@ public function normalize($object, $format = null, array $context = [])
}
public function getSupportedTypes(?string $format = null) : array
{
return ['Docker\\API\\Model\\AuthPostResponse200' => false];
return [\Docker\API\Model\AuthPostResponse200::class => false];
}
}
}
24 changes: 12 additions & 12 deletions src/Normalizer/BuildInfoNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ class BuildInfoNormalizer implements DenormalizerInterface, NormalizerInterface,
use ValidatorTrait;
public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool
{
return $type === 'Docker\\API\\Model\\BuildInfo';
return $type === \Docker\API\Model\BuildInfo::class;
}
public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool
{
return is_object($data) && get_class($data) === 'Docker\\API\\Model\\BuildInfo';
return is_object($data) && get_class($data) === \Docker\API\Model\BuildInfo::class;
}
public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed
{
Expand Down Expand Up @@ -62,7 +62,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar
$object->setError(null);
}
if (\array_key_exists('errorDetail', $data) && $data['errorDetail'] !== null) {
$object->setErrorDetail($this->denormalizer->denormalize($data['errorDetail'], 'Docker\\API\\Model\\ErrorDetail', 'json', $context));
$object->setErrorDetail($this->denormalizer->denormalize($data['errorDetail'], \Docker\API\Model\ErrorDetail::class, 'json', $context));
unset($data['errorDetail']);
}
elseif (\array_key_exists('errorDetail', $data) && $data['errorDetail'] === null) {
Expand All @@ -83,14 +83,14 @@ public function denormalize(mixed $data, string $type, string $format = null, ar
$object->setProgress(null);
}
if (\array_key_exists('progressDetail', $data) && $data['progressDetail'] !== null) {
$object->setProgressDetail($this->denormalizer->denormalize($data['progressDetail'], 'Docker\\API\\Model\\ProgressDetail', 'json', $context));
$object->setProgressDetail($this->denormalizer->denormalize($data['progressDetail'], \Docker\API\Model\ProgressDetail::class, 'json', $context));
unset($data['progressDetail']);
}
elseif (\array_key_exists('progressDetail', $data) && $data['progressDetail'] === null) {
$object->setProgressDetail(null);
}
if (\array_key_exists('aux', $data) && $data['aux'] !== null) {
$object->setAux($this->denormalizer->denormalize($data['aux'], 'Docker\\API\\Model\\ImageID', 'json', $context));
$object->setAux($this->denormalizer->denormalize($data['aux'], \Docker\API\Model\ImageID::class, 'json', $context));
unset($data['aux']);
}
elseif (\array_key_exists('aux', $data) && $data['aux'] === null) {
Expand Down Expand Up @@ -139,7 +139,7 @@ public function normalize(mixed $object, string $format = null, array $context =
}
public function getSupportedTypes(?string $format = null) : array
{
return ['Docker\\API\\Model\\BuildInfo' => false];
return [\Docker\API\Model\BuildInfo::class => false];
}
}
} else {
Expand All @@ -151,11 +151,11 @@ class BuildInfoNormalizer implements DenormalizerInterface, NormalizerInterface,
use ValidatorTrait;
public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool
{
return $type === 'Docker\\API\\Model\\BuildInfo';
return $type === \Docker\API\Model\BuildInfo::class;
}
public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool
{
return is_object($data) && get_class($data) === 'Docker\\API\\Model\\BuildInfo';
return is_object($data) && get_class($data) === \Docker\API\Model\BuildInfo::class;
}
/**
* @return mixed
Expand Down Expand Up @@ -194,7 +194,7 @@ public function denormalize($data, $type, $format = null, array $context = [])
$object->setError(null);
}
if (\array_key_exists('errorDetail', $data) && $data['errorDetail'] !== null) {
$object->setErrorDetail($this->denormalizer->denormalize($data['errorDetail'], 'Docker\\API\\Model\\ErrorDetail', 'json', $context));
$object->setErrorDetail($this->denormalizer->denormalize($data['errorDetail'], \Docker\API\Model\ErrorDetail::class, 'json', $context));
unset($data['errorDetail']);
}
elseif (\array_key_exists('errorDetail', $data) && $data['errorDetail'] === null) {
Expand All @@ -215,14 +215,14 @@ public function denormalize($data, $type, $format = null, array $context = [])
$object->setProgress(null);
}
if (\array_key_exists('progressDetail', $data) && $data['progressDetail'] !== null) {
$object->setProgressDetail($this->denormalizer->denormalize($data['progressDetail'], 'Docker\\API\\Model\\ProgressDetail', 'json', $context));
$object->setProgressDetail($this->denormalizer->denormalize($data['progressDetail'], \Docker\API\Model\ProgressDetail::class, 'json', $context));
unset($data['progressDetail']);
}
elseif (\array_key_exists('progressDetail', $data) && $data['progressDetail'] === null) {
$object->setProgressDetail(null);
}
if (\array_key_exists('aux', $data) && $data['aux'] !== null) {
$object->setAux($this->denormalizer->denormalize($data['aux'], 'Docker\\API\\Model\\ImageID', 'json', $context));
$object->setAux($this->denormalizer->denormalize($data['aux'], \Docker\API\Model\ImageID::class, 'json', $context));
unset($data['aux']);
}
elseif (\array_key_exists('aux', $data) && $data['aux'] === null) {
Expand Down Expand Up @@ -274,7 +274,7 @@ public function normalize($object, $format = null, array $context = [])
}
public function getSupportedTypes(?string $format = null) : array
{
return ['Docker\\API\\Model\\BuildInfo' => false];
return [\Docker\API\Model\BuildInfo::class => false];
}
}
}
12 changes: 6 additions & 6 deletions src/Normalizer/BuildPrunePostResponse200Normalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ class BuildPrunePostResponse200Normalizer implements DenormalizerInterface, Norm
use ValidatorTrait;
public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []) : bool
{
return $type === 'Docker\\API\\Model\\BuildPrunePostResponse200';
return $type === \Docker\API\Model\BuildPrunePostResponse200::class;
}
public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool
{
return is_object($data) && get_class($data) === 'Docker\\API\\Model\\BuildPrunePostResponse200';
return is_object($data) && get_class($data) === \Docker\API\Model\BuildPrunePostResponse200::class;
}
public function denormalize(mixed $data, string $type, string $format = null, array $context = []) : mixed
{
Expand Down Expand Up @@ -69,7 +69,7 @@ public function normalize(mixed $object, string $format = null, array $context =
}
public function getSupportedTypes(?string $format = null) : array
{
return ['Docker\\API\\Model\\BuildPrunePostResponse200' => false];
return [\Docker\API\Model\BuildPrunePostResponse200::class => false];
}
}
} else {
Expand All @@ -81,11 +81,11 @@ class BuildPrunePostResponse200Normalizer implements DenormalizerInterface, Norm
use ValidatorTrait;
public function supportsDenormalization($data, $type, string $format = null, array $context = []) : bool
{
return $type === 'Docker\\API\\Model\\BuildPrunePostResponse200';
return $type === \Docker\API\Model\BuildPrunePostResponse200::class;
}
public function supportsNormalization(mixed $data, string $format = null, array $context = []) : bool
{
return is_object($data) && get_class($data) === 'Docker\\API\\Model\\BuildPrunePostResponse200';
return is_object($data) && get_class($data) === \Docker\API\Model\BuildPrunePostResponse200::class;
}
/**
* @return mixed
Expand Down Expand Up @@ -134,7 +134,7 @@ public function normalize($object, $format = null, array $context = [])
}
public function getSupportedTypes(?string $format = null) : array
{
return ['Docker\\API\\Model\\BuildPrunePostResponse200' => false];
return [\Docker\API\Model\BuildPrunePostResponse200::class => false];
}
}
}
Loading