Skip to content

Commit 99fb503

Browse files
authored
Merge pull request #11 from iwf-web/develop
Develop
2 parents 9f29380 + 03c39bc commit 99fb503

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- main
77
pull_request:
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
lint:
1114
runs-on: ubuntu-latest

src/IWFRiskySet.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* @package PHP Coding Standard
77
* @author IWF Web Solutions <web-solutions@iwf.ch>
8-
* @copyright Copyright (c) 2025-2025 IWF Web Solutions <web-solutions@iwf.ch>
8+
* @copyright Copyright (c) 2025-2026 IWF Web Solutions <web-solutions@iwf.ch>
99
* @license https://github.com/iwf-web/php-coding-standard/blob/main/LICENSE.txt MIT License
1010
* @link https://github.com/iwf-web/php-coding-standard
1111
*/
@@ -37,9 +37,14 @@ public function getRules(): array
3737
'@auto:risky' => true, // Automatically chooses PHP & PHPUnit risky rulesets based on composer.json
3838
'@PhpCsFixer:risky' => true, // includes @Symfony:risky, @PSR12:risky, and more
3939

40-
// Fix PhpUnit wrong access
40+
// Fix PhpUnit wrong access (mock expecations are not static calls)
4141
'php_unit_test_case_static_method_calls' => [
4242
'call_type' => 'self',
43+
'methods' => [
44+
'never' => 'this',
45+
'once' => 'this',
46+
'exactly' => 'this',
47+
],
4348
],
4449

4550
// Disable strict types, we use PhpStan for that

src/IWFSet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* @package PHP Coding Standard
77
* @author IWF Web Solutions <web-solutions@iwf.ch>
8-
* @copyright Copyright (c) 2025-2025 IWF Web Solutions <web-solutions@iwf.ch>
8+
* @copyright Copyright (c) 2025-2026 IWF Web Solutions <web-solutions@iwf.ch>
99
* @license https://github.com/iwf-web/php-coding-standard/blob/main/LICENSE.txt MIT License
1010
* @link https://github.com/iwf-web/php-coding-standard
1111
*/

0 commit comments

Comments
 (0)