Skip to content

Commit d854d2a

Browse files
committed
Removed phive, updated dependencies
1 parent c21c0ef commit d854d2a

12 files changed

+5626
-31
lines changed

.gitattributes

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/.gitattributes export-ignore
88
/.gitignore export-ignore
99
/.php_cs export-ignore
10-
/.phive export-ignore
10+
/tools export-ignore
1111
/psalm.xml export-ignore
1212
/phpstan.neon export-ignore
1313
/phpunit.xml export-ignore
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: "Dependabot Auto Merge"
2+
3+
on:
4+
workflow_run:
5+
types:
6+
- completed
7+
workflows:
8+
- 'Tests'
9+
- 'Mutation Tests'
10+
- 'Static Analyze'
11+
12+
jobs:
13+
merge-me:
14+
name: Merge me!
15+
runs-on: ubuntu-latest
16+
steps:
17+
- # It is often a desired behavior to merge only when a workflow execution
18+
# succeeds. This can be changed as needed.
19+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
20+
name: Merge me!
21+
uses: ridedott/merge-me-action@v2
22+
with:
23+
# Depending on branch protection rules, a manually populated
24+
# `GITHUB_TOKEN_WORKAROUND` secret with permissions to push to
25+
# a protected branch must be used. This secret can have an arbitrary
26+
# name, as an example, this repository uses `DOTTBOTT_TOKEN`.
27+
#
28+
# When using a custom token, it is recommended to leave the following
29+
# comment for other developers to be aware of the reasoning behind it:
30+
#
31+
# This must be used as GitHub Actions token does not support pushing
32+
# to protected branches.
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
vendor
2-
tools
32
*.cache
43
var

.phive/phars.xml

-8
This file was deleted.

.php_cs .php-cs-fixer.php

+9-8
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
* This configuration was taken from https://github.com/sebastianbergmann/phpunit/blob/master/.php_cs.dist
1717
* and slightly adjusted.
1818
*/
19-
return PhpCsFixer\Config::create()
19+
$config = new PhpCsFixer\Config();
20+
21+
return $config
2022
->setRiskyAllowed(true)
2123
->setCacheFile(__DIR__.'/var/.php_cs.cache')
2224
->setRules([
@@ -30,7 +32,6 @@
3032
'continue',
3133
'declare',
3234
'default',
33-
'die',
3435
'do',
3536
'exit',
3637
'for',
@@ -50,7 +51,7 @@
5051
],
5152
'braces' => true,
5253
'cast_spaces' => true,
53-
'class_attributes_separation' => ['elements' => ['const', 'method', 'property']],
54+
'class_attributes_separation' => ['elements' => ['const'=>'one', 'method'=>'one', 'property'=>'one']],
5455
'combine_consecutive_issets' => true,
5556
'combine_consecutive_unsets' => true,
5657
'compact_nullable_typehint' => true,
@@ -61,6 +62,7 @@
6162
'dir_constant' => true,
6263
'elseif' => true,
6364
'encoding' => true,
65+
'echo_tag_syntax' => true,
6466
'explicit_indirect_variable' => true,
6567
'explicit_string_variable' => true,
6668
'full_opening_tag' => true,
@@ -85,13 +87,13 @@
8587
'lowercase_static_reference' => true,
8688
'magic_constant_casing' => true,
8789
'magic_method_casing' => true,
88-
'method_argument_space' => ['ensure_fully_multiline' => true],
89-
'modernize_types_casting' => true,
90+
'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'],
91+
'modernize_types_casting' => false,
9092
'multiline_comment_opening_closing' => true,
9193
'multiline_whitespace_before_semicolons' => true,
9294
'native_constant_invocation' => false,
9395
'native_function_casing' => false,
94-
'native_function_invocation' => true,
96+
'native_function_invocation' => ['include'=>['@all']],
9597
'native_function_type_declaration_casing' => true,
9698
'new_with_braces' => false,
9799
'no_alias_functions' => true,
@@ -112,7 +114,6 @@
112114
'no_null_property_initialization' => true,
113115
'no_php4_constructor' => true,
114116
'no_short_bool_cast' => true,
115-
'no_short_echo_tag' => true,
116117
'no_singleline_whitespace_before_semicolons' => true,
117118
'no_spaces_after_function_name' => true,
118119
'no_spaces_around_offset' => true,
@@ -208,7 +209,7 @@
208209
'standardize_not_equals' => true,
209210
'strict_param' => true,
210211
'ternary_to_null_coalescing' => true,
211-
'trailing_comma_in_multiline_array' => true,
212+
'trailing_comma_in_multiline' => true,
212213
'trim_array_spaces' => true,
213214
'unary_operator_spaces' => true,
214215
'visibility_required' => [

composer.json

+13-11
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,23 @@
3535
"@test:mutation"
3636
],
3737
"test": [
38-
"tools/phpunit.phar"
38+
"tools/vendor/bin/phpunit"
3939
],
4040
"test:mutation": [
41-
"tools/infection --threads=2"
41+
"tools/vendor/bin/infection --threads=2"
4242
],
4343
"static:analyze": [
44-
"tools/psalm --output-format=compact",
45-
"tools/phpstan analyze -c phpstan.neon",
46-
"tools/php-cs-fixer fix --dry-run"
44+
"tools/vendor/bin/psalm --output-format=compact",
45+
"tools/vendor/bin/phpstan analyze -c phpstan.neon",
46+
"tools/vendor/bin/php-cs-fixer fix --dry-run"
4747
],
48-
"cs:php:fix": "tools/php-cs-fixer fix"
49-
},
50-
"extra": {
51-
"branch-alias": {
52-
"dev-latest": "1.0-dev"
53-
}
48+
"cs:php:fix": "tools/vendor/bin/php-cs-fixer fix",
49+
"tools:install": "composer install --working-dir=./tools",
50+
"post-install-cmd": [
51+
"@tools:install"
52+
],
53+
"post-update-cmd": [
54+
"@tools:install"
55+
]
5456
}
5557
}

composer.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

infection.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"testFramework": "phpunit",
2424
"phpUnit": {
25-
"customPath": "tools\/phpunit.phar"
25+
"customPath": "tools/vendor/bin/phpunit"
2626
},
2727
"bootstrap": "./vendor/autoload.php"
2828
}

tools/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
vendor

tools/composer.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "aeon-php/calendar-tools",
3+
"description": "Aeon PHP Calendar - Tools",
4+
"require-dev": {
5+
"phpunit/phpunit": "^9.5",
6+
"vimeo/psalm": "^4.6",
7+
"phpstan/phpstan": "^0.12.82",
8+
"infection/infection": "^0.22.1",
9+
"friendsofphp/php-cs-fixer": "^3.1"
10+
}
11+
}

0 commit comments

Comments
 (0)