Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kingdutch/phpstan-repro
https://github.com/kingdutch/phpstan-repro
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kingdutch/phpstan-repro
- Owner: Kingdutch
- Created: 2021-04-29T12:32:19.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-04-29T12:38:55.000Z (over 3 years ago)
- Last Synced: 2024-11-07T22:49:25.490Z (3 months ago)
- Language: PHP
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#PHPStan return type reproduction
This repository exists to illustrate an issue in return type widening by a PHPStan stub file.
## Output
```
------ ------------------------------------------------------------------------------------------------------------------------------------------------------
Line test.php
------ ------------------------------------------------------------------------------------------------------------------------------------------------------
13 Function Kingdutch\ReproductionApp\expectedReturn() should return React\Promise\ExtendedPromiseInterface but returns React\Promise\PromiseInterface.
------ ------------------------------------------------------------------------------------------------------------------------------------------------------[ERROR] Found 1 error
```## Usage
```
git clone https://github.com/Kingdutch/phpstan-repro.git
cd phpstan-repro
composer install
vendor/bin/phpstan analyse test.php
```