@@ -132,7 +132,7 @@ private function handleArrayNode(ArrayNode $node, ClassBuilder $class, string $n
132
132
133
133
$ hasNormalizationClosures = $ this ->hasNormalizationClosures ($ node );
134
134
$ comment = $ this ->getComment ($ node );
135
- if ($ hasNormalizationClosures && $ paramType !== ' array ' ) {
135
+ if ($ hasNormalizationClosures && ' array ' !== $ paramType ) {
136
136
$ comment = sprintf (" * @template TValue of %s \n * @param TValue \$value \n%s " , $ paramType , $ comment );
137
137
$ comment .= sprintf (' * @return %s|$this ' ."\n" , $ childClass ->getFqcn ());
138
138
$ comment .= sprintf (' * @psalm-return (TValue is array ? %s : static) ' ."\n " , $ childClass ->getFqcn ());
@@ -145,7 +145,7 @@ private function handleArrayNode(ArrayNode $node, ClassBuilder $class, string $n
145
145
$ node ->getName (),
146
146
$ this ->getType ($ childClass ->getFqcn (), $ hasNormalizationClosures )
147
147
);
148
- $ body = $ hasNormalizationClosures && $ paramType !== ' array ' ? '
148
+ $ body = $ hasNormalizationClosures && ' array ' !== $ paramType ? '
149
149
COMMENTpublic function NAME(PARAM_TYPE $value = []): CLASS|static
150
150
{
151
151
if (!\is_array($value)) {
@@ -286,7 +286,7 @@ public function NAME(string $VAR, TYPE $VALUE): static
286
286
$ paramType = $ this ->getParamType ($ noKey ? $ nodeParameterTypes : $ prototypeParameterTypes );
287
287
288
288
$ comment = $ this ->getComment ($ node );
289
- if ($ hasNormalizationClosures && $ paramType !== ' array ' ) {
289
+ if ($ hasNormalizationClosures && ' array ' !== $ paramType ) {
290
290
$ comment = sprintf (" * @template TValue of %s \n * @param TValue \$value \n%s " , $ paramType , $ comment );
291
291
$ comment .= sprintf (' * @return %s|$this ' ."\n" , $ childClass ->getFqcn ());
292
292
$ comment .= sprintf (' * @psalm-return (TValue is array ? %s : static) ' ."\n " , $ childClass ->getFqcn ());
@@ -296,7 +296,7 @@ public function NAME(string $VAR, TYPE $VALUE): static
296
296
}
297
297
298
298
if ($ noKey ) {
299
- $ body = $ hasNormalizationClosures && $ paramType !== ' array ' ? '
299
+ $ body = $ hasNormalizationClosures && ' array ' !== $ paramType ? '
300
300
COMMENTpublic function NAME(PARAM_TYPE $value = []): CLASS|static
301
301
{
302
302
$this->_usedProperties[ \'PROPERTY \'] = true;
@@ -321,7 +321,7 @@ public function NAME(string $VAR, TYPE $VALUE): static
321
321
'PARAM_TYPE ' => $ paramType ,
322
322
]);
323
323
} else {
324
- $ body = $ hasNormalizationClosures && $ paramType !== ' array ' ? '
324
+ $ body = $ hasNormalizationClosures && ' array ' !== $ paramType ? '
325
325
COMMENTpublic function NAME(string $VAR, PARAM_TYPE $VALUE = []): CLASS|static
326
326
{
327
327
if (!\is_array($VALUE)) {
0 commit comments