- 28 May, 2020 1 commit
-
-
Grégoire Paris authored
-
- 27 May, 2020 39 commits
-
-
Grégoire Paris authored
-
Grégoire Paris authored
Psalm 6
-
Grégoire Paris authored
The php docs are not very clear about that one.
-
Grégoire Paris authored
It confuses both Psalm and PHPStan, and involves complicated mocking.
-
Grégoire Paris authored
-
Grégoire Paris authored
-
Grégoire Paris authored
-
Grégoire Paris authored
-
Grégoire Paris authored
This return type is conditional to $params['wrapperClass']. Luckily, recent versions of Psalm allow documenting it properly. See https://github.com/vimeo/psalm/issues/3277 Note that phpstan is not able to understand this yet, but still attempts to, hence the extra ignore rules.
-
Grégoire Paris authored
This hack is temporary and should be removed on 3.0.x
-
Grégoire Paris authored
-
Grégoire Paris authored
See https://github.com/vimeo/psalm/issues/3224
-
Grégoire Paris authored
This is precisely what we are testing here.
-
Grégoire Paris authored
-
Grégoire Paris authored
This is what is expected with FETCH_COLUMN
-
Grégoire Paris authored
-
Grégoire Paris authored
-
Grégoire Paris authored
-
Grégoire Paris authored
That alone fixes 6 issues found by Psalm
-
Grégoire Paris authored
-
Grégoire Paris authored
-
Grégoire Paris authored
-
Grégoire Paris authored
Not all RDBMS have a concept of database, apparently (see SQLAnywhere). Those who do not should pass in a string to stay compatible with the signature.
-
Grégoire Paris authored
-
Grégoire Paris authored
-
Grégoire Paris authored
The method signature does not allow null.
-
Grégoire Paris authored
We are testing what happens when providing the wrong type.
-
Grégoire Paris authored
-
Grégoire Paris authored
It is more simple and more accurate
-
Grégoire Paris authored
-
Grégoire Paris authored
-
Grégoire Paris authored
The latest version is easier to understand for static analyzers.
-
Grégoire Paris authored
-
Grégoire Paris authored
-
Grégoire Paris authored
-
Grégoire Paris authored
Backport removal of some deprecated APIs
-
Sergei Morozov authored
Ignore all violations of the LowercasePHPFunctions sniff in SQLSrvStatement
-
Sergei Morozov authored
-
Sergei Morozov authored
The methods has more limitations and caveats than provides real use: 1. It fetches all data in memory which is often inefficient (see #2718). 2. It fetches rows in memory one by one instead of using `fetchAll()`. 4. It doesn't allow to specify the statement fetch mode since it's instantiated internally. 5. It can be easily replaced with: ```php foreach ($conn->executeQuery($query, $params, $types) as $value) { yield $function($value); } ```
-