Defiler0
- 活动总数 4
- 最后的活动
- 成员加入日期
- 关注 0 名用户
- 关注者数 0 名用户
- 投票数 0
- 订阅数 2
-
Defiler0 创建了一个帖子, Suggestion for “Extract closure” refactoring
We currently have “Extract method” refactoring, but sometimes I don't need the whole separate method. I'd like to have a closure instead, like when transforming code such as this:foreach ($collecti... -
Defiler0 创建了一个帖子, Type deduction for callbacks in array functions
Some time ago PhpStorm started recognizing types for parameters in callbacks used with functions like array_filter. E.g. if I write something like: /** @var int[] $a */$a = [1, 2, 3, 4];$odds = arr...