Skip to content

Commit 9cfb4ba

Browse files
Merge branch '7.4' into 8.0
* 7.4: (21 commits) [ObjectMapper] lazy loading [Filesystem] Unify logic for isAbsolute() in Path [DependencyInjection] Include return type in AppReference shape [Finder] Make method calls explicit in ExcludeDirectoryFilterIterator [Cache] Remove unset call on undefined variable in PhpArrayAdapter [Twig] Ensure WrappedTemplatedEmail::getReturnPath() returns a string [Routing] Simplify importing routes defined on controller services Fix tests [DependendcyInjection] Improve shape for "from_callable" definitions [PHPDoc] Fix various PHPDoc syntax errors [Console] Add missing VERBOSITY_SILENT case in CommandDataCollector [Notifier] Remove unused $transportName argument in EmailChannel::notify() [Translation] Remove an unused argument passed to parseNode() method [HttpClient] Reject 3xx pushed responses [Serializer] Use Asia/Tokyo instead of Japan in tests [ProxyManagerBridge] Remove comment that reference github discussion [JsonPath] Remove unused "nothing" property from JsonCrawler [ErrorHandler] Improve PHPDoc precision in SerializerErrorRenderer [Routing] Fix matching the "0" URL [Form] Fix EnumType choice_label logic for grouped choices ...
2 parents b4f7f80 + 6d43954 commit 9cfb4ba

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

Loader/Configurator/AppReference.php

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
* type?: string|null,
4343
* ignore_errors?: bool,
4444
* }>
45-
* @psalm-type ParametersConfig = array<string, scalar|\UnitEnum|array<scalar|\UnitEnum|array|null>|null>
45+
* @psalm-type ParametersConfig = array<string, scalar|\UnitEnum|array<scalar|\UnitEnum|array<mixed>|null>|null>
4646
* @psalm-type ArgumentsType = list<mixed>|array<string, mixed>
4747
* @psalm-type CallType = array<string, ArgumentsType>|array{0:string, 1?:ArgumentsType, 2?:bool}|array{method:string, arguments?:ArgumentsType, returns_clone?:bool}
4848
* @psalm-type TagsType = list<string|array<string, array<string, mixed>>> // arrays inside the list must have only one element, with the tag name as the key
@@ -94,7 +94,7 @@
9494
* autoconfigure?: bool,
9595
* bind?: array<string, mixed>,
9696
* constructor?: string,
97-
* from_callable?: mixed,
97+
* from_callable?: CallbackType,
9898
* }
9999
* @psalm-type AliasType = string|array{
100100
* alias: string,
@@ -134,21 +134,24 @@
134134
* ...<string, DefinitionType|AliasType|PrototypeType|StackType|ArgumentsType|null>
135135
* }
136136
* @psalm-type ExtensionType = array<string, mixed>
137+
* @psalm-type ConfigType = array{
138+
* imports?: ImportsConfig,
139+
* parameters?: ParametersConfig,
140+
* services?: ServicesConfig,
141+
* ...<string, ExtensionType|array{ // extra keys must follow the when@%env% pattern or match an extension alias
142+
* imports?: ImportsConfig,
143+
* parameters?: ParametersConfig,
144+
* services?: ServicesConfig,
145+
* ...<string, ExtensionType>,
146+
* }>
147+
* }
137148
*/
138149
class AppReference
139150
{
140151
/**
141-
* @param array{
142-
* imports?: ImportsConfig,
143-
* parameters?: ParametersConfig,
144-
* services?: ServicesConfig,
145-
* ...<string, ExtensionType|array{ // extra keys must follow the when@%env% pattern or match an extension alias
146-
* imports?: ImportsConfig,
147-
* parameters?: ParametersConfig,
148-
* services?: ServicesConfig,
149-
* ...<string, ExtensionType>,
150-
* }>
151-
* } $config
152+
* @param ConfigType $config
153+
*
154+
* @psalm-return ConfigType
152155
*/
153156
public static function config(array $config): array
154157
{

0 commit comments

Comments
 (0)