Skip to content

Commit

Permalink
added more specific array types
Browse files Browse the repository at this point in the history
  • Loading branch information
driehle committed Dec 14, 2022
1 parent 914ee43 commit 2c915c6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/ConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
final class ConfigProvider
{
/**
* @return mixed[]
* @return array<non-empty-string, mixed[]>
*/
public function __invoke(): array
{
Expand All @@ -33,7 +33,7 @@ public function __invoke(): array
/**
* Return application-level dependency configuration
*
* @return mixed[]
* @return array<non-empty-string, array<non-empty-string, class-string>>
*/
public function getDependencyConfig(): array
{
Expand All @@ -47,7 +47,7 @@ public function getDependencyConfig(): array
/**
* Default configuration for Doctrine module
*
* @return mixed[]
* @return array<non-empty-string, mixed[]>
*/
public function getDoctrineConfig(): array
{
Expand Down Expand Up @@ -79,7 +79,7 @@ public function getDoctrineConfig(): array
/**
* Factory mappings - used to define which factory to use to instantiate a particular doctrine service type
*
* @return mixed[]
* @return array<non-empty-string, class-string>
*/
public function getDoctrineFactoryConfig(): array
{
Expand All @@ -94,7 +94,7 @@ public function getDoctrineFactoryConfig(): array
}

/**
* @return mixed[]
* @return array<non-empty-string, mixed[]>
*/
public function getValidatorConfig(): array
{
Expand All @@ -113,7 +113,7 @@ public function getValidatorConfig(): array
}

/**
* @return mixed[]
* @return array<non-empty-string, array{adapter: string, options?: mixed[]}>
*/
public function getCachesConfig(): array
{
Expand Down Expand Up @@ -157,7 +157,7 @@ public function getCachesConfig(): array
* Use doctrine/cache config, when doctrine/cache:^1.0 is installed, and use laminas/laminas-cache,
* when doctrine/cache:^2.0 is installed, as the latter does not include any cache adapters anymore
*
* @return mixed[]
* @return array<non-empty-string,array{class:class-string,instance?:string,namespace?:string,directory?:string}>
*/
private function getDoctrineCacheConfig(): array
{
Expand Down

0 comments on commit 2c915c6

Please sign in to comment.