-
Notifications
You must be signed in to change notification settings - Fork 97
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
11 changed files
with
153 additions
and
205 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 |
---|---|---|
@@ -1 +1,11 @@ | ||
/tests export-ignore | ||
*.php text eol=lf | ||
|
||
.github export-ignore | ||
tests export-ignore | ||
tmp export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
Makefile export-ignore | ||
phpcs.xml export-ignore | ||
phpstan.neon export-ignore | ||
phpunit.xml 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
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,2 +1,4 @@ | ||
/composer.lock | ||
/tests/tmp | ||
/vendor | ||
composer.lock | ||
.phpunit.result.cache |
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,23 @@ | ||
.PHONY: check | ||
check: lint cs tests phpstan | ||
|
||
.PHONY: tests | ||
tests: | ||
php vendor/bin/phpunit | ||
|
||
.PHONY: lint | ||
lint: | ||
php vendor/bin/parallel-lint --colors \ | ||
src tests | ||
|
||
.PHONY: cs | ||
cs: | ||
composer install --working-dir build-cs && php build-cs/vendor/bin/phpcs | ||
|
||
.PHONY: cs-fix | ||
cs-fix: | ||
php build-cs/vendor/bin/phpcbf | ||
|
||
.PHONY: phpstan | ||
phpstan: | ||
php vendor/bin/phpstan analyse -l 8 -c phpstan.neon src tests |
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,64 +1,63 @@ | ||
{ | ||
"name": "phpstan/phpstan-doctrine", | ||
"type": "phpstan-extension", | ||
"description": "Doctrine extensions for PHPStan", | ||
"license": [ | ||
"MIT" | ||
], | ||
"require": { | ||
"php": "^7.1 || ^8.0", | ||
"phpstan/phpstan": "^0.12.82" | ||
}, | ||
"conflict": { | ||
"doctrine/collections": "<1.0", | ||
"doctrine/common": "<2.7", | ||
"doctrine/mongodb-odm": "<1.2", | ||
"doctrine/orm": "<2.5", | ||
"doctrine/persistence": "<1.3" | ||
}, | ||
"require-dev": { | ||
"doctrine/annotations": "^1.11.0", | ||
"doctrine/collections": "^1.6", | ||
"doctrine/common": "^2.7 || ^3.0", | ||
"doctrine/dbal": "^2.13.1", | ||
"doctrine/mongodb-odm": "^1.3 || ^2.1", | ||
"doctrine/orm": "^2.5", | ||
"doctrine/persistence": "^1.1 || ^2.0", | ||
"phing/phing": "^2.16.3", | ||
"php-parallel-lint/php-parallel-lint": "^1.2", | ||
"phpstan/phpstan-phpunit": "^0.12.16", | ||
"phpstan/phpstan-strict-rules": "^0.12.5", | ||
"phpunit/phpunit": "^7.5.20", | ||
"ramsey/uuid-doctrine": "^1.5.0" | ||
}, | ||
"config": { | ||
"platform": { | ||
"php": "7.3.24", | ||
"ext-mongo": "1.6.16" | ||
}, | ||
"sort-packages": true | ||
}, | ||
"extra": { | ||
"branch-alias": { | ||
"dev-master": "0.12-dev" | ||
}, | ||
"phpstan": { | ||
"includes": [ | ||
"extension.neon", | ||
"rules.neon" | ||
] | ||
} | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"PHPStan\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"classmap": [ | ||
"tests/" | ||
] | ||
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true | ||
"name": "phpstan/phpstan-doctrine", | ||
"type": "phpstan-extension", | ||
"description": "Doctrine extensions for PHPStan", | ||
"license": [ | ||
"MIT" | ||
], | ||
"require": { | ||
"php": "^7.1 || ^8.0", | ||
"phpstan/phpstan": "^0.12.82" | ||
}, | ||
"conflict": { | ||
"doctrine/collections": "<1.0", | ||
"doctrine/common": "<2.7", | ||
"doctrine/mongodb-odm": "<1.2", | ||
"doctrine/orm": "<2.5", | ||
"doctrine/persistence": "<1.3" | ||
}, | ||
"require-dev": { | ||
"doctrine/annotations": "^1.11.0", | ||
"doctrine/collections": "^1.6", | ||
"doctrine/common": "^2.7 || ^3.0", | ||
"doctrine/dbal": "^2.13.1", | ||
"doctrine/mongodb-odm": "^1.3 || ^2.1", | ||
"doctrine/orm": "^2.5", | ||
"doctrine/persistence": "^1.1 || ^2.0", | ||
"php-parallel-lint/php-parallel-lint": "^1.2", | ||
"phpstan/phpstan-phpunit": "^0.12.16", | ||
"phpstan/phpstan-strict-rules": "^0.12.5", | ||
"phpunit/phpunit": "^7.5.20", | ||
"ramsey/uuid-doctrine": "^1.5.0" | ||
}, | ||
"config": { | ||
"platform": { | ||
"php": "7.3.24", | ||
"ext-mongo": "1.6.16" | ||
}, | ||
"sort-packages": true | ||
}, | ||
"extra": { | ||
"branch-alias": { | ||
"dev-master": "0.12-dev" | ||
}, | ||
"phpstan": { | ||
"includes": [ | ||
"extension.neon", | ||
"rules.neon" | ||
] | ||
} | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"PHPStan\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"classmap": [ | ||
"tests/" | ||
] | ||
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true | ||
} |
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
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,36 @@ | ||
<?xml version="1.0"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
bootstrap="tests/bootstrap.php" | ||
colors="true" | ||
backupGlobals="false" | ||
backupStaticAttributes="false" | ||
beStrictAboutChangesToGlobalState="true" | ||
beStrictAboutOutputDuringTests="true" | ||
beStrictAboutTestsThatDoNotTestAnything="true" | ||
beStrictAboutTodoAnnotatedTests="true" | ||
failOnRisky="true" | ||
failOnWarning="true" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" | ||
> | ||
<coverage> | ||
<include> | ||
<directory suffix=".php">./src</directory> | ||
</include> | ||
<report> | ||
<clover outputFile="tests/tmp/clover.xml"/> | ||
<text | ||
outputFile="php://stdout" | ||
showUncoveredFiles="true" | ||
showOnlySummary="true" | ||
/> | ||
</report> | ||
</coverage> | ||
|
||
<testsuites> | ||
<testsuite name="PHPStan for Symfony"> | ||
<directory suffix="Test.php">tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
|
||
<logging/> | ||
</phpunit> |
Oops, something went wrong.