diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f11958..78f972d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,23 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com), and this project adheres to [Semantic Versioning](https://semver.org). +## [1.3.1] - 2021-11-01 +### Added +* *Nothing* + +### Changed +* *Nothing* + +### Deprecated +* *Nothing* + +### Removed +* *Nothing* + +### Fixed +* Fixed regression introduced on return types of `DottedAccessConfigAbstractFactory`. + + ## [1.3.0] - 2021-11-01 ### Added * *Nothing* diff --git a/src/Factory/DottedAccessConfigAbstractFactory.php b/src/Factory/DottedAccessConfigAbstractFactory.php index 8e40d7a..938602c 100644 --- a/src/Factory/DottedAccessConfigAbstractFactory.php +++ b/src/Factory/DottedAccessConfigAbstractFactory.php @@ -28,7 +28,7 @@ public function canCreate(ContainerInterface $container, $requestedName): bool / * @param string $requestedName */ // phpcs:ignore - public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null): object + public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null): mixed { $parts = explode('.', $requestedName); $serviceName = array_shift($parts); @@ -49,13 +49,13 @@ public function __invoke(ContainerInterface $container, $requestedName, ?array $ )); } - return $this->readKeysFromArray($parts, $array); + return $this->readKeysFromArray($parts, $array); // @phpstan-ignore-line } /** * @throws InvalidArgumentException */ - private function readKeysFromArray(array $keys, array|ArrayAccess $array): object + private function readKeysFromArray(array $keys, array|ArrayAccess $array): mixed { $key = array_shift($keys);