-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
10,933 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/.github/ export-ignore | ||
/stubs/ export-ignore | ||
/tests/ export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.php-cs-fixer.dist.php export-ignore | ||
/composer.lock export-ignore | ||
/infection.json.dist export-ignore | ||
/phpunit.xml.dist export-ignore | ||
/psalm.xml.dist export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Check | ||
|
||
on: | ||
push: | ||
branches: ['main', '*.*.x'] | ||
pull_request: ~ | ||
|
||
jobs: | ||
composer: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.1 | ||
tools: composer:v2 | ||
coverage: none | ||
- uses: ramsey/composer-install@v3 | ||
with: | ||
composer-options: --optimize-autoloader | ||
- run: composer validate | ||
- run: composer normalize --dry-run | ||
- run: composer check-require | ||
- run: composer check-unused | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.1 | ||
tools: composer:v2 | ||
coverage: none | ||
- uses: ramsey/composer-install@v3 | ||
with: | ||
composer-options: --optimize-autoloader | ||
- run: composer fixcs -- --dry-run --format=checkstyle | ||
|
||
psalm: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
dependency-versions: [locked, lowest, highest] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.1 | ||
tools: composer:v2 | ||
coverage: none | ||
- uses: ramsey/composer-install@v3 | ||
with: | ||
composer-options: --optimize-autoloader | ||
dependency-versions: ${{ matrix.dependency-versions }} | ||
- run: composer psalm -- --stats --output-format=github ${{ matrix.dependency-versions == 'locked' && '--shepherd' || '' }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/**/vendor/ | ||
/var/ | ||
/.php-cs-fixer.php | ||
/phpstan.neon | ||
/phpunit.xml | ||
/psalm.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use PhpCsFixer\Config; | ||
use PhpCsFixer\Finder; | ||
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory; | ||
use PHPyh\CodingStandard\PhpCsFixerCodingStandard; | ||
|
||
$config = (new Config()) | ||
->setFinder( | ||
Finder::create() | ||
->in(__DIR__ . '/src') | ||
->in(__DIR__ . '/tests') | ||
->append([ | ||
__FILE__, | ||
]), | ||
) | ||
->setParallelConfig(ParallelConfigFactory::detect()) | ||
->setCacheFile(__DIR__ . '/var/' . basename(__FILE__) . '.cache'); | ||
|
||
(new PhpCsFixerCodingStandard())->applyTo($config); | ||
|
||
return $config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
# Typhoon PhpStorm Reflection Stubs | ||
|
||
This repository is a readonly Typhoon monorepo subsplit. | ||
Please, open pull requests and issues in the [main repository](https://github.com/typhoon-php/typhoon). | ||
[![PHP Version Requirement](https://img.shields.io/packagist/dependency-v/typhoon/phpstorm-reflection-stubs/php)](https://packagist.org/packages/typhoon/phpstorm-reflection-stubs) | ||
[![GitHub Release](https://img.shields.io/github/v/release/typhoon-php/phpstorm-reflection-stubs)](https://github.com/typhoon-php/phpstorm-reflection-stubs/releases) | ||
[![Psalm Level](https://shepherd.dev/github/typhoon-php/phpstorm-reflection-stubs/level.svg)](https://shepherd.dev/github/typhoon-php/phpstorm-reflection-stubs) | ||
[![Psalm Type Coverage](https://shepherd.dev/github/typhoon-php/phpstorm-reflection-stubs/coverage.svg)](https://shepherd.dev/github/typhoon-php/phpstorm-reflection-stubs) | ||
|
||
Read [documentation](https://github.com/typhoon-php/typhoon/tree/0.4.x). | ||
## Installation | ||
|
||
```shell | ||
composer require typhoon/phpstorm-reflection-stubs | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.