From ac70b31baec6fbc9fb042a55a7cefac0d502230b Mon Sep 17 00:00:00 2001 From: Priyadi Iman Nurcahyo <1102197+priyadi@users.noreply.github.com> Date: Sun, 13 Oct 2024 18:12:33 +0700 Subject: [PATCH] chore: rector run (#230) --- CHANGELOG.md | 1 + src/Proxy/Implementation/ProxyFactory.php | 1 + src/Proxy/Implementation/ProxyRegistry.php | 1 + src/TransformerRegistry/SearchResult.php | 2 +- .../Fixtures/ExtraTargetValues/SomeObjectWithPropertyDto.php | 1 + 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e3b18c4..a20f0ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ * perf: move `TypeResolver` outside of the hot path * perf(`ObjectCache`): use sentinel value instead of exception * feat: extra target values +* chore: rector run ## 1.10.0 diff --git a/src/Proxy/Implementation/ProxyFactory.php b/src/Proxy/Implementation/ProxyFactory.php index 5ad466f..dc22f3c 100644 --- a/src/Proxy/Implementation/ProxyFactory.php +++ b/src/Proxy/Implementation/ProxyFactory.php @@ -37,6 +37,7 @@ public function __construct( /** * @param class-string $class */ + #[\Override] public function warmingCreateProxy(string $class): void { $targetProxyClass = ProxyNamer::generateProxyClassName($class); diff --git a/src/Proxy/Implementation/ProxyRegistry.php b/src/Proxy/Implementation/ProxyRegistry.php index f62a012..fc9b13a 100644 --- a/src/Proxy/Implementation/ProxyRegistry.php +++ b/src/Proxy/Implementation/ProxyRegistry.php @@ -39,6 +39,7 @@ public function __construct( } } + #[\Override] public function warmingRegisterProxy(string $class, string $sourceCode): void { $preWarmedProxyDirectory = $this->preWarmedProxyDirectory; diff --git a/src/TransformerRegistry/SearchResult.php b/src/TransformerRegistry/SearchResult.php index faa4724..8759314 100644 --- a/src/TransformerRegistry/SearchResult.php +++ b/src/TransformerRegistry/SearchResult.php @@ -20,7 +20,7 @@ * @internal * @implements \IteratorAggregate */ -final class SearchResult implements \IteratorAggregate, \Countable +final readonly class SearchResult implements \IteratorAggregate, \Countable { /** * @param list $sourceTypes diff --git a/tests/src/Fixtures/ExtraTargetValues/SomeObjectWithPropertyDto.php b/tests/src/Fixtures/ExtraTargetValues/SomeObjectWithPropertyDto.php index 9669f34..1a4b426 100644 --- a/tests/src/Fixtures/ExtraTargetValues/SomeObjectWithPropertyDto.php +++ b/tests/src/Fixtures/ExtraTargetValues/SomeObjectWithPropertyDto.php @@ -16,5 +16,6 @@ final class SomeObjectWithPropertyDto { public ?string $property = null; + public ?\DateTimeInterface $date = null; }