Skip to content

Commit 2dc50ab

Browse files
committed
Bump versions
1 parent b7b121e commit 2dc50ab

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
}
1111
],
1212
"require": {
13-
"php": "^7.3 || ^8.0",
13+
"php": "^7.4 || ^8.0",
1414
"ext-tokenizer": "*",
15-
"friendsofphp/php-cs-fixer": "^3.2",
15+
"friendsofphp/php-cs-fixer": "3.4",
1616
"nexusphp/cs-config": "^3.3"
1717
},
1818
"require-dev": {
1919
"nexusphp/tachycardia": "^1.3",
20-
"phpstan/phpstan": "^0.12.94",
20+
"phpstan/phpstan": "^1.0",
2121
"phpunit/phpunit": "^9.5"
2222
},
2323
"config": {

phpstan.neon.dist

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ includes:
33

44
parameters:
55
tmpDir: build/phpstan
6-
level: 8
6+
level: 9
77
paths:
88
- src
99
- tests
@@ -19,7 +19,6 @@ parameters:
1919
checkExplicitMixedMissingReturn: true
2020
checkFunctionNameCase: true
2121
checkInternalClassCaseSensitivity: true
22-
checkMissingClosureNativeReturnTypehintRule: true
2322
checkTooWideReturnTypesInProtectedAndPublicMethods: true
2423
reportMaybesInMethodSignatures: true
2524
reportStaticMethodSignatures: true

src/CodeIgniter4.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function __construct()
3131
'array_indentation' => true,
3232
'array_push' => true,
3333
'array_syntax' => ['syntax' => 'short'],
34-
'assign_null_coalescing_to_coalesce_equal' => false, // requires 7.4+
34+
'assign_null_coalescing_to_coalesce_equal' => true,
3535
'backtick_to_shell_exec' => true,
3636
'binary_operator_spaces' => [
3737
'default' => 'single_space',
@@ -544,7 +544,7 @@ public function __construct()
544544
'trim_array_spaces' => true,
545545
'types_spaces' => ['space' => 'none'],
546546
'unary_operator_spaces' => true,
547-
'use_arrow_functions' => false, // requires PHP7.4+
547+
'use_arrow_functions' => true,
548548
'visibility_required' => ['elements' => ['const', 'method', 'property']],
549549
'void_return' => false, // changes method signature
550550
'whitespace_after_comma_in_array' => true,
@@ -556,7 +556,7 @@ public function __construct()
556556
],
557557
];
558558

559-
$this->requiredPHPVersion = 70300;
559+
$this->requiredPHPVersion = 70400;
560560

561561
$this->autoActivateIsRiskyAllowed = true;
562562
}

0 commit comments

Comments
 (0)