Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump to PHPUnit 11 #9

Merged
merged 4 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/code_analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
# see https://github.com/shivammathur/setup-php
- uses: shivammathur/setup-php@v2
with:
php-version: 8.1
php-version: 8.2
coverage: none

# composer install cache - https://github.com/ramsey/composer-install
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
"bin/rule-doc-generator"
],
"require": {
"php": ">=8.1",
"php": ">=8.2",
"symfony/console": "^6.4",
"nette/robot-loader": "^3.4|^4.0",
"symplify/rule-doc-generator-contracts": "^11.1",
"nette/utils": "^3.2|^4.0",
"sebastian/diff": "^5.1",
"sebastian/diff": "^5.1|^6.0",
"illuminate/container": "^10.39",
"webmozart/assert": "^1.11",
"symfony/yaml": "^6.4",
"symfony/filesystem": "^6.4"
},
"require-dev": {
"phpunit/phpunit": "^10.5",
"phpunit/phpunit": "^11.0",
"phpstan/phpstan": "^1.10.56",
"symplify/easy-coding-standard": "^12.0",
"rector/rector": "dev-main",
Expand Down
4 changes: 1 addition & 3 deletions src/Printer/RuleDefinitionsPrinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,6 @@ private function resolveCategory(RuleDefinition $ruleDefinition, int $categorize
// remove _ as not part of title
Assert::string($categoryName);

$categoryName = trim($categoryName, '_');

return $categoryName;
return trim($categoryName, '_');
}
}
Loading