Skip to content

Commit

Permalink
Merge pull request #17 from NaokiTsuchiya/update-workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
NaokiTsuchiya authored Oct 15, 2022
2 parents e9b50a6 + 8d05b6b commit 1dd4777
Show file tree
Hide file tree
Showing 8 changed files with 57 additions and 59 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -27,7 +27,7 @@ jobs:
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
dependencies: 'lowest'
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
Expand All @@ -37,7 +37,7 @@ jobs:
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand All @@ -55,6 +55,6 @@ jobs:
run: ./vendor/bin/phpunit --coverage-clover=coverage.xml

- name: Upload coverage report
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
10 changes: 5 additions & 5 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -27,7 +27,7 @@ jobs:
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand All @@ -44,7 +44,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -68,7 +68,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -80,7 +80,7 @@ jobs:
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"yiisoft/yii": "^1.1.22"
},
"require-dev": {
"bamarni/composer-bin-plugin": "^1.4",
"bamarni/composer-bin-plugin": "^1.8",
"phpunit/phpunit": "^9.5"
},
"autoload": {
Expand Down
4 changes: 1 addition & 3 deletions src/UrlRuleList.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ public function __invoke(CUrlManager $urlManager): array
return $rules;
}

/**
* @param ReflectionClass<object> $reflectionClass
*/
/** @param ReflectionClass<object> $reflectionClass */
private function getRulesProperty(ReflectionClass $reflectionClass): ReflectionProperty
{
if ($reflectionClass->hasProperty('_rules')) {
Expand Down
6 changes: 3 additions & 3 deletions tests/UrlRuleListTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function testInvoke(): void
],
],
],
]
],
);
$urlManager = $app->getUrlManager();
$rules = ($this->urlRuleList)($urlManager);
Expand All @@ -65,7 +65,7 @@ public function testExtendUrlManager(): void
],
],
],
]
],
);
$urlManager = $app->getUrlManager();
assert($urlManager instanceof ExtendUrlManager);
Expand All @@ -90,7 +90,7 @@ public function testExtendExtendUrlManager(): void
],
],
],
]
],
);
$urlManager = $app->getUrlManager();
assert($urlManager instanceof ExtendExtendUrlManager);
Expand Down
14 changes: 7 additions & 7 deletions vendor-bin/tools/composer.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"require-dev": {
"doctrine/coding-standard": "^9.0",
"phpmd/phpmd": "^2.11",
"phpmetrics/phpmetrics": "^2.7",
"phpstan/phpstan": "^1.2",
"psalm/plugin-phpunit": "^0.16.1",
"squizlabs/php_codesniffer": "^3.6",
"vimeo/psalm": "^4.15"
"doctrine/coding-standard": "^10.0",
"phpmd/phpmd": "^2.13",
"phpmetrics/phpmetrics": "^2.8",
"phpstan/phpstan": "^1.8",
"psalm/plugin-phpunit": "^0.17.0",
"squizlabs/php_codesniffer": "^3.7",
"vimeo/psalm": "^4.29"
},
"config": {
"allow-plugins": {
Expand Down
70 changes: 35 additions & 35 deletions vendor-bin/tools/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1dd4777

Please sign in to comment.