-
- Downloads
New upstream version 3.2.0
No related branches found
No related tags found
Showing
- .github/workflows/continuous-integration.yml 8 additions, 5 deletions.github/workflows/continuous-integration.yml
- .github/workflows/phpstan.yml 0 additions, 3 deletions.github/workflows/phpstan.yml
- README.md 9 additions, 1 deletionREADME.md
- composer.json 12 additions, 4 deletionscomposer.json
- extension.neon 22 additions, 0 deletionsextension.neon
- phpstan-baseline.neon 90 additions, 0 deletionsphpstan-baseline.neon
- phpstan.neon.dist 6 additions, 1 deletionphpstan.neon.dist
- phpunit.xml.dist 7 additions, 2 deletionsphpunit.xml.dist
- src/PHPStan/InvalidRegexPatternRule.php 142 additions, 0 deletionssrc/PHPStan/InvalidRegexPatternRule.php
- src/PHPStan/PregMatchFlags.php 37 additions, 0 deletionssrc/PHPStan/PregMatchFlags.php
- src/PHPStan/PregMatchParameterOutTypeExtension.php 58 additions, 0 deletionssrc/PHPStan/PregMatchParameterOutTypeExtension.php
- src/PHPStan/PregMatchTypeSpecifyingExtension.php 106 additions, 0 deletionssrc/PHPStan/PregMatchTypeSpecifyingExtension.php
- src/PHPStan/UnsafeStrictGroupsCallRule.php 112 additions, 0 deletionssrc/PHPStan/UnsafeStrictGroupsCallRule.php
- src/Regex.php 2 additions, 0 deletionssrc/Regex.php
- tests/BaseTestCase.php 2 additions, 6 deletionstests/BaseTestCase.php
- tests/PHPStanTests/InvalidRegexPatternRuleTest.php 71 additions, 0 deletionstests/PHPStanTests/InvalidRegexPatternRuleTest.php
- tests/PHPStanTests/TypeInferenceTest.php 51 additions, 0 deletionstests/PHPStanTests/TypeInferenceTest.php
- tests/PHPStanTests/UnsafeStrictGroupsCallRuleTest.php 57 additions, 0 deletionstests/PHPStanTests/UnsafeStrictGroupsCallRuleTest.php
- tests/PHPStanTests/fixtures/invalid-patterns.php 22 additions, 0 deletionstests/PHPStanTests/fixtures/invalid-patterns.php
- tests/PHPStanTests/nsrt/preg-match.php 111 additions, 0 deletionstests/PHPStanTests/nsrt/preg-match.php
... | ... | @@ -20,10 +20,13 @@ |
"php": "^7.4 || ^8.0" | ||
}, | ||
"require-dev": { | ||
"symfony/phpunit-bridge": "^5", | ||
"phpstan/phpstan": "^1.3", | ||
"phpunit/phpunit": "^8 || ^9", | ||
"phpstan/phpstan": "^1.11.8", | ||
"phpstan/phpstan-strict-rules": "^1.1" | ||
}, | ||
"conflict": { | ||
"phpstan/phpstan": "<1.11.8" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Composer\\Pcre\\": "src" | ||
... | ... | @@ -37,10 +40,15 @@ |
"extra": { | ||
"branch-alias": { | ||
"dev-main": "3.x-dev" | ||
}, | ||
"phpstan": { | ||
"includes": [ | ||
"extension.neon" | ||
] | ||
} | ||
}, | ||
"scripts": { | ||
"test": "vendor/bin/simple-phpunit", | ||
"phpstan": "phpstan analyse" | ||
"test": "@php vendor/bin/phpunit", | ||
"phpstan": "@php phpstan analyse" | ||
} | ||
} |
extension.neon
0 → 100644
src/PHPStan/InvalidRegexPatternRule.php
0 → 100644
src/PHPStan/PregMatchFlags.php
0 → 100644
src/PHPStan/UnsafeStrictGroupsCallRule.php
0 → 100644
tests/PHPStanTests/TypeInferenceTest.php
0 → 100644
tests/PHPStanTests/nsrt/preg-match.php
0 → 100644
Please register or sign in to comment