Skip to content
Merged
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
1 change: 1 addition & 0 deletions src/CoreExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Patchlevel\Hydrator\Guesser\BuiltInGuesser;
use Patchlevel\Hydrator\Middleware\TransformMiddleware;

/** @experimental */
final class CoreExtension implements Extension
{
public function configure(StackHydratorBuilder $builder): void
Expand Down
1 change: 1 addition & 0 deletions src/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Patchlevel\Hydrator;

/** @experimental */
interface Extension
{
public function configure(StackHydratorBuilder $builder): void;
Expand Down
1 change: 1 addition & 0 deletions src/Extension/Cryptography/Attribute/DataSubjectId.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use Attribute;

/** @experimental */
#[Attribute(Attribute::TARGET_PROPERTY)]
final class DataSubjectId
{
Expand Down
1 change: 1 addition & 0 deletions src/Extension/Cryptography/Attribute/SensitiveData.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Attribute;
use InvalidArgumentException;

/** @experimental */
#[Attribute(Attribute::TARGET_PROPERTY)]
final class SensitiveData
{
Expand Down
1 change: 1 addition & 0 deletions src/Extension/Cryptography/BaseCryptographer.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
use function is_array;

/**
* @experimental
* @phpstan-type EncryptedDataV1 array{
* __enc: 'v1',
* data: non-empty-string,
Expand Down
1 change: 1 addition & 0 deletions src/Extension/Cryptography/Cipher/Cipher.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Patchlevel\Hydrator\Extension\Cryptography\Cipher;

/** @experimental */
interface Cipher
{
/**
Expand Down
1 change: 1 addition & 0 deletions src/Extension/Cryptography/Cipher/CipherKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Patchlevel\Hydrator\Extension\Cryptography\Cipher;

/** @experimental */
final class CipherKey
{
/**
Expand Down
1 change: 1 addition & 0 deletions src/Extension/Cryptography/Cipher/CipherKeyFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Patchlevel\Hydrator\Extension\Cryptography\Cipher;

/** @experimental */
interface CipherKeyFactory
{
/** @throws CreateCipherKeyFailed */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Patchlevel\Hydrator\HydratorException;
use RuntimeException;

/** @experimental */
final class CreateCipherKeyFailed extends RuntimeException implements HydratorException
{
public function __construct()
Expand Down
1 change: 1 addition & 0 deletions src/Extension/Cryptography/Cipher/DecryptionFailed.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Patchlevel\Hydrator\HydratorException;
use RuntimeException;

/** @experimental */
final class DecryptionFailed extends RuntimeException implements HydratorException
{
public function __construct()
Expand Down
1 change: 1 addition & 0 deletions src/Extension/Cryptography/Cipher/EncryptionFailed.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Patchlevel\Hydrator\HydratorException;
use RuntimeException;

/** @experimental */
final class EncryptionFailed extends RuntimeException implements HydratorException
{
public function __construct()
Expand Down
1 change: 1 addition & 0 deletions src/Extension/Cryptography/Cipher/MethodNotSupported.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

use function sprintf;

/** @experimental */
final class MethodNotSupported extends RuntimeException implements HydratorException
{
public function __construct(string $method)
Expand Down
1 change: 1 addition & 0 deletions src/Extension/Cryptography/Cipher/OpensslCipher.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

use const JSON_THROW_ON_ERROR;

/** @experimental */
final class OpensslCipher implements Cipher
{
/** @return non-empty-string */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use function openssl_get_cipher_methods;
use function openssl_random_pseudo_bytes;

/** @experimental */
final class OpensslCipherKeyFactory implements CipherKeyFactory
{
public const DEFAULT_METHOD = 'aes128';
Expand Down
1 change: 1 addition & 0 deletions src/Extension/Cryptography/Cryptographer.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Patchlevel\Hydrator\Extension\Cryptography\Cipher\EncryptionFailed;
use Patchlevel\Hydrator\Extension\Cryptography\Store\CipherKeyNotExists;

/** @experimental */
interface Cryptographer
{
/** @throws EncryptionFailed */
Expand Down
1 change: 1 addition & 0 deletions src/Extension/Cryptography/CryptographyExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Patchlevel\Hydrator\Extension;
use Patchlevel\Hydrator\StackHydratorBuilder;

/** @experimental */
final class CryptographyExtension implements Extension
{
public function __construct(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

use function array_key_exists;

/** @experimental */
final class CryptographyMetadataEnricher implements MetadataEnricher
{
public function enrich(ClassMetadata $classMetadata): void
Expand Down
1 change: 1 addition & 0 deletions src/Extension/Cryptography/CryptographyMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
use function is_int;
use function is_string;

/** @experimental */
final class CryptographyMiddleware implements Middleware
{
public function __construct(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

use function sprintf;

/** @experimental */
final class DuplicateSubjectIdIdentifier extends RuntimeException implements MetadataException
{
/** @param class-string $class */
Expand Down
1 change: 1 addition & 0 deletions src/Extension/Cryptography/MissingSubjectId.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

use function sprintf;

/** @experimental */
final class MissingSubjectId extends RuntimeException implements HydratorException
{
public function __construct(string $name)
Expand Down
1 change: 1 addition & 0 deletions src/Extension/Cryptography/MissingSubjectIdForField.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

use function sprintf;

/** @experimental */
final class MissingSubjectIdForField extends RuntimeException implements HydratorException
{
/** @param class-string $class */
Expand Down
1 change: 1 addition & 0 deletions src/Extension/Cryptography/SensitiveDataInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Patchlevel\Hydrator\Extension\Cryptography;

/** @experimental */
final class SensitiveDataInfo
{
public function __construct(
Expand Down
1 change: 1 addition & 0 deletions src/Extension/Cryptography/Store/CipherKeyNotExists.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

use function sprintf;

/** @experimental */
final class CipherKeyNotExists extends RuntimeException implements HydratorException
{
public function __construct(string $id)
Expand Down
1 change: 1 addition & 0 deletions src/Extension/Cryptography/Store/CipherKeyStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use Patchlevel\Hydrator\Extension\Cryptography\Cipher\CipherKey;

/** @experimental */
interface CipherKeyStore
{
/** @throws CipherKeyNotExists */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use Patchlevel\Hydrator\Extension\Cryptography\Cipher\CipherKey;

/** @experimental */
final class InMemoryCipherKeyStore implements CipherKeyStore
{
/** @var array<string, CipherKey> */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

use function sprintf;

/** @experimental */
final class SubjectIdAndSensitiveDataConflict extends RuntimeException implements MetadataException
{
/** @param class-string $class */
Expand Down
1 change: 1 addition & 0 deletions src/Extension/Cryptography/SubjectIdFieldMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Patchlevel\Hydrator\Extension\Cryptography;

/** @experimental */
final class SubjectIdFieldMapping
{
/** @param array<string, string> $nameToField */
Expand Down
1 change: 1 addition & 0 deletions src/Extension/Cryptography/SubjectIds.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use function array_merge;

/** @experimental */
final class SubjectIds
{
/** @param array<string, string> $subjectIds */
Expand Down
1 change: 1 addition & 0 deletions src/Extension/Cryptography/UnsupportedSubjectId.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use function get_debug_type;
use function sprintf;

/** @experimental */
final class UnsupportedSubjectId extends RuntimeException implements HydratorException
{
public function __construct(string $class, string $fieldName, mixed $subjectId)
Expand Down
1 change: 1 addition & 0 deletions src/Extension/Lifecycle/Attribute/PostExtract.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use Attribute;

/** @experimental */
#[Attribute(Attribute::TARGET_METHOD)]
final class PostExtract
{
Expand Down
1 change: 1 addition & 0 deletions src/Extension/Lifecycle/Attribute/PostHydrate.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use Attribute;

/** @experimental */
#[Attribute(Attribute::TARGET_METHOD)]
final class PostHydrate
{
Expand Down
1 change: 1 addition & 0 deletions src/Extension/Lifecycle/Attribute/PreExtract.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use Attribute;

/** @experimental */
#[Attribute(Attribute::TARGET_METHOD)]
final class PreExtract
{
Expand Down
1 change: 1 addition & 0 deletions src/Extension/Lifecycle/Attribute/PreHydrate.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use Attribute;

/** @experimental */
#[Attribute(Attribute::TARGET_METHOD)]
final class PreHydrate
{
Expand Down
1 change: 1 addition & 0 deletions src/Extension/Lifecycle/Lifecycle.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Patchlevel\Hydrator\Extension\Lifecycle;

/** @experimental */
final readonly class Lifecycle
{
public function __construct(
Expand Down
1 change: 1 addition & 0 deletions src/Extension/Lifecycle/LifecycleExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Patchlevel\Hydrator\Extension;
use Patchlevel\Hydrator\StackHydratorBuilder;

/** @experimental */
final readonly class LifecycleExtension implements Extension
{
public function configure(StackHydratorBuilder $builder): void
Expand Down
1 change: 1 addition & 0 deletions src/Extension/Lifecycle/LifecycleMetadataEnricher.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

use function sprintf;

/** @experimental */
final class LifecycleMetadataEnricher implements MetadataEnricher
{
public function enrich(ClassMetadata $classMetadata): void
Expand Down
1 change: 1 addition & 0 deletions src/Extension/Lifecycle/LifecycleMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

use function assert;

/** @experimental */
final class LifecycleMiddleware implements Middleware
{
/**
Expand Down
1 change: 1 addition & 0 deletions src/Middleware/Middleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use Patchlevel\Hydrator\Metadata\ClassMetadata;

/** @experimental */
interface Middleware
{
/**
Expand Down
1 change: 1 addition & 0 deletions src/Middleware/NoMoreMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Patchlevel\Hydrator\HydratorException;
use RuntimeException;

/** @experimental */
final class NoMoreMiddleware extends RuntimeException implements HydratorException
{
public function __construct()
Expand Down
1 change: 1 addition & 0 deletions src/Middleware/Stack.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Patchlevel\Hydrator\Middleware;

/** @experimental */
final class Stack
{
private int $index = 0;
Expand Down
1 change: 1 addition & 0 deletions src/Middleware/TransformMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use function array_values;
use function spl_object_id;

/** @experimental */
final class TransformMiddleware implements Middleware
{
/** @var array<int, class-string> */
Expand Down
1 change: 1 addition & 0 deletions src/StackHydrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

use const PHP_VERSION_ID;

/** @experimental */
final class StackHydrator implements HydratorWithContext
{
/** @var array<class-string, ClassMetadata> */
Expand Down
1 change: 1 addition & 0 deletions src/StackHydratorBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
use function array_merge;
use function krsort;

/** @experimental */
final class StackHydratorBuilder
{
private bool $defaultLazy = false;
Expand Down
Loading