Skip to content

Commit

Permalink
Misc: update dependencies & limit to php >= 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
satrun77 committed Nov 1, 2021
1 parent 8b00ace commit 090df36
Show file tree
Hide file tree
Showing 5 changed files with 5,732 additions and 29 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Ignore everything
_notes/
templates/
.php-cs-fixer.cache
/silverstripe-cache
/coverage
/vendor
/assets
/resources
27 changes: 27 additions & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

$config = new PhpCsFixer\Config();
return $config->setRules([
'@PSR1' => true,
'@PSR2' => true,
'@PSR12' => true,
'@PhpCsFixer' => true,
'@Symfony' => true,
'protected_to_private' => false,
'yoda_style' => false,
'no_trailing_comma_in_list_call' => false,
'global_namespace_import' => [
'import_classes' => true,
'import_constants' => null,
'import_functions' => null,
],
'binary_operator_spaces' => [
'default' => 'align',
],
'list_syntax' => [
'syntax' => 'short',
],
'array_syntax' => ['syntax' => 'short'],
'self_static_accessor' => true,
'mb_str_functions' => true,
])->setUsingCache(false);
28 changes: 18 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,33 @@
"template"
],
"license": "MIT",
"authors": [{
"name": "Mohamed Alsharaf",
"email": "[email protected]",
"homepage": "http://my.geek.nz",
"role": "Developer"
}],
"authors": [
{
"name": "Mohamed Alsharaf",
"email": "[email protected]",
"homepage": "http://my.geek.nz",
"role": "Developer"
}
],
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"silverstripe/cms": "^4.1",
"silverstripe/vendor-plugin": "^1.0"
"php": ">=7.4",
"silverstripe/framework": "^4.1"
},
"require-dev": {
"phpunit/phpunit": "^5.7",
"squizlabs/php_codesniffer": "^3.0"
"friendsofphp/php-cs-fixer": "^3.2"
},
"autoload": {
"psr-4": {
"Moo\\": "src/"
"Moo\\": "src/",
"Moo\\Test\\": "tests/"
}
},
"scripts": {
"fix": "php-cs-fixer fix src tests --allow-risky=yes --config=.php-cs-fixer.php",
"test": "phpunit tests '' flush=1",
"coverage": "phpunit tests --coverage-html coverage"
}
}
Loading

0 comments on commit 090df36

Please sign in to comment.