Skip to content

Commit d48b02a

Browse files
Copilotvoku
andauthored
Address code review: revert Closure::fromCallable, constrain phpstan to ^1.0
Agent-Logs-Url: https://github.com/voku/Arrayy/sessions/6ec0ad42-0c61-494c-828e-01fc676a2832 Co-authored-by: voku <264695+voku@users.noreply.github.com>
1 parent 7da08a6 commit d48b02a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
},
2828
"require-dev": {
2929
"phpunit/phpunit": "~6.0 || ~7.0 || ~9.0",
30-
"phpstan/phpstan": "*"
30+
"phpstan/phpstan": "^1.0"
3131
},
3232
"support": {
3333
"docs": "https://voku.github.io/Arrayy/",

src/Arrayy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7891,7 +7891,7 @@ protected static function objectToArray($object)
78917891
/**
78927892
* @psalm-suppress PossiblyInvalidArgument - the parameter is always some kind of array - false-positive from psalm?
78937893
*/
7894-
return \array_map(\Closure::fromCallable([static::class, 'objectToArray']), $object);
7894+
return \array_map([static::class, 'objectToArray'], $object);
78957895
}
78967896

78977897
/**

0 commit comments

Comments
 (0)