Skip to content

Commit f0f233b

Browse files
committed
Add phpstan & fix some doc issues
1 parent ddb3b56 commit f0f233b

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"require-dev": {
2525
"amphp/phpunit-util": "^1",
2626
"phpunit/phpunit": "^6",
27-
"friendsofphp/php-cs-fixer": "^2.3"
27+
"friendsofphp/php-cs-fixer": "^2.3",
28+
"phpstan/phpstan": "^0.9"
2829
},
2930
"autoload": {
3031
"psr-4": {

lib/Internal/ReferenceQueue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Amp\Loop;
66

77
class ReferenceQueue {
8-
/** @var callable[] */
8+
/** @var callable[]|null */
99
private $onDestruct = [];
1010

1111
/** @var int */

lib/Listener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Listener implements Iterator, Operation {
1212
/** @var string */
1313
private $channel;
1414

15-
/** @var callable */
15+
/** @var callable|null */
1616
private $unlisten;
1717

1818
/** @var \Amp\Postgres\Internal\ReferenceQueue */

lib/PgSqlResultSet.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ class PgSqlResultSet implements ResultSet {
2323
*/
2424
public function __construct($handle) {
2525
$this->handle = $handle;
26-
$this->numRows = \pg_num_rows($this->handle);
2726
}
2827

2928
/**

lib/Transaction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Transaction implements Handle, Operation {
1010
const REPEATABLE = 2;
1111
const SERIALIZABLE = 4;
1212

13-
/** @var \Amp\Postgres\Handle */
13+
/** @var \Amp\Postgres\Handle|null */
1414
private $handle;
1515

1616
/** @var int */

0 commit comments

Comments
 (0)