Skip to content

Commit e4a3488

Browse files
committed
[BE] Countable stub with 0|positive-int
1 parent 741c401 commit e4a3488

File tree

5 files changed

+4
-39
lines changed

5 files changed

+4
-39
lines changed

changelog-2.0.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ Bleeding edge (TODO move to other sections)
99
=====================
1010

1111
* Infer explicit mixed when instantiating generic class with unknown template types (https://github.com/phpstan/phpstan-src/commit/089d4c6fb6eb709c44123548d33990113d174b86), #6398
12-
* Countable stub with `0|positive-int` ([#1027](https://github.com/phpstan/phpstan-src/pull/1027)), thanks @staabm!
1312
* Report useless `array_filter()` calls ([#1077](https://github.com/phpstan/phpstan-src/pull/1077)), #6840, thanks @leongersen!
1413
* Specify explicit mixed array type via `is_array` ([#1191](https://github.com/phpstan/phpstan-src/pull/1191)), thanks @herndlm!
1514
* Lower memory consumption thanks to breaking up of reference cycles
@@ -147,5 +146,7 @@ Bugfixes 🐛
147146
Function signature fixes 🤖
148147
=======================
149148

149+
* Countable stub with `0|positive-int` ([#1027](https://github.com/phpstan/phpstan-src/pull/1027)), thanks @staabm!
150+
150151
Internals 🔍
151152
=====================

conf/config.neon

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ parameters:
195195
- ../stubs/arrayFunctions.stub
196196
- ../stubs/core.stub
197197
- ../stubs/typeCheckingFunctions.stub
198+
- ../stubs/Countable.stub
198199
earlyTerminatingMethodCalls: []
199200
earlyTerminatingFunctionCalls: []
200201
memoryLimitFile: %tmpDir%/.memory_limit
@@ -456,13 +457,6 @@ services:
456457
arguments:
457458
duplicateStubs: %featureToggles.duplicateStubs%
458459

459-
-
460-
class: PHPStan\PhpDoc\CountableStubFilesExtension
461-
arguments:
462-
bleedingEdge: %featureToggles.bleedingEdge%
463-
tags:
464-
- phpstan.stubFilesExtension
465-
466460
-
467461
class: PHPStan\PhpDoc\SocketSelectStubFilesExtension
468462
tags:

src/PhpDoc/CountableStubFilesExtension.php

Lines changed: 0 additions & 21 deletions
This file was deleted.

stubs/Countable.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
interface Countable
44
{
55
/**
6-
* @return int
6+
* @return 0|positive-int
77
*/
88
public function count(): int;
99
}

stubs/bleedingEdge/Countable.stub

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)