Skip to content

Commit

Permalink
Change: add support for php8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
satrun77 committed Jul 7, 2022
1 parent 4da71e5 commit 8f25f35
Show file tree
Hide file tree
Showing 9 changed files with 3,694 additions and 1,058 deletions.
27 changes: 23 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@
"silverstripe/framework": "^4.1"
},
"require-dev": {
"phpunit/phpunit": "^5.7",
"silverstripe/recipe-testing": "^2",
"friendsofphp/php-cs-fixer": "^3.2",
"phpstan/phpstan": "~0.12.80",
"symbiote/silverstripe-phpstan": "dev-master"
"symbiote/silverstripe-phpstan": "dev-php8-support",
"slevomat/coding-standard": "^7.0",
"phpunit/php-code-coverage": "^9.2"
},
"autoload": {
"psr-4": {
Expand All @@ -37,12 +39,29 @@
"fix": "php-cs-fixer fix src tests --allow-risky=yes --config=.php-cs-fixer.php",
"stan": "phpstan clear-result-cache && phpstan analyse src -c phpstan.neon -a vendor/symbiote/silverstripe-phpstan/bootstrap.php --level 4 --ansi --memory-limit=-1",
"test": "phpunit tests '' flush=1",
"coverage": "phpunit tests --coverage-clover coverage/clover.xml"
"coverage": "XDEBUG_MODE=coverage phpunit tests --coverage-clover coverage/clover.xml",
"phpcs": "phpcs src --standard=phpcs.xml --extensions=php --encoding=utf-8",
"phpcbf": "phpcbf src --standard=phpcs.xml --extensions=php --encoding=utf-8"
},
"repositories": [
{
"type": "vcs",
"url": "[email protected]:satrun77/silverstripe-phpstan.git"
}
]
],
"config": {
"allow-plugins": {
"composer/installers": true,
"silverstripe/recipe-plugin": true,
"silverstripe/vendor-plugin": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"extra": {
"project-files-installed": [
"behat.yml",
"phpcs.xml.dist",
"phpunit.xml.dist"
]
}
}
Loading

0 comments on commit 8f25f35

Please sign in to comment.