-
I believe this should not result in a `MismatchingDocblockReturnType`
https://psalm.dev/r/e367d0726c
```php
/**
* @template T
*/
interface FooInterface {
/**
* @return T|iterabl…
-
《PHP恨你》这个系列停笔好久了,主要是一直没空,然后光吐槽也不产生价值。不过这个我新发掘的case,勉强可算语言设计上学到的一课,所以就写一下吧。
第一件小事是,PHP的typehint不支持union type,如果一个参数可以是多个类型,就只好用注释了,或者更常见的情况——就不写了,读代码的人你自己猜吧。
[Traversable](http://php.net/manual/en/cl…
-
currently we're using `pkg_resources` to load resource files like the `default.conf`. Since Python 3.7, there is the [`importlib.resources`](https://docs.python.org/3/library/importlib.html#module-imp…
-
I find this to be a bit strange. Is there any difference that warrants one being re-exported but not the other, or was this an oversight?
Edit: this change appears to have been made in #131: https:…
-
particularité terrain:
- Constructible ou non
- Traversable ou non
- Élévation? (**hard**)
-
Is there a way to check if the current path is the root path/highest traversable path (without using RPC) of a SMB share? Example:
* For non DFS shares like `\\localhost\MyShare` the path "" (Empty…
-
All methods require iterable, however array is in the annotation.
More information in comments at this commit: https://github.com/beberlei/assert/commit/4fd15cd95f8659407bc5afb5d8248a3458318cc6
-
### Use case
Currently, the DataMasking utility only supports operations with traversable types in Python, for example: Lists, Dict, str, and others. It is a limitation for customers who want to inte…
-
System.out.println(LinkedHashMap.of("a",1, "b",2).hashCode());
System.out.println(LinkedHashMap.of("a",2, "b",1 ).hashCode());
Both maps have the same hashCode and this is wrong. I found this …
ghost updated
2 months ago
-
I just bumped into the problem mentioned here https://stackoverflow.com/a/38490637/3237351 and the solution was also indeed to go from `foldl = foldlDefault` to `fold f = foldlDefault f`. It feels lik…