Skip to content

Commit 9712791

Browse files
authored
Merge pull request #5668 from paulbalandan/latest-cs
Permit use of lates php-cs-fixer v3.6
2 parents e5c0d9c + 708e42a commit 9712791

File tree

10 files changed

+18
-29
lines changed

10 files changed

+18
-29
lines changed

.no-header.php-cs-fixer.dist.php

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,7 @@
3030
__DIR__ . '/admin/starter/builds',
3131
]);
3232

33-
$overrides = [
34-
'ordered_class_elements' => [
35-
'order' => [
36-
'use_trait',
37-
'constant',
38-
'property',
39-
'method',
40-
],
41-
'sort_algorithm' => 'none',
42-
],
43-
];
33+
$overrides = [];
4434

4535
$options = [
4636
'cacheFile' => 'build/.no-header.php-cs-fixer.cache',

.php-cs-fixer.dist.php

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,7 @@
3434
__DIR__ . '/spark',
3535
]);
3636

37-
$overrides = [
38-
'ordered_class_elements' => [
39-
'order' => [
40-
'use_trait',
41-
'constant',
42-
'property',
43-
'method',
44-
],
45-
'sort_algorithm' => 'none',
46-
],
47-
];
37+
$overrides = [];
4838

4939
$options = [
5040
'cacheFile' => 'build/.php-cs-fixer.cache',

admin/framework/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"require-dev": {
1818
"codeigniter/coding-standard": "^1.1",
1919
"fakerphp/faker": "^1.9",
20-
"friendsofphp/php-cs-fixer": "^3.1",
20+
"friendsofphp/php-cs-fixer": "^3.6",
2121
"mikey179/vfsstream": "^1.6",
2222
"nexusphp/cs-config": "^3.3",
2323
"phpunit/phpunit": "^9.1",

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"require-dev": {
1818
"codeigniter/coding-standard": "^1.1",
1919
"fakerphp/faker": "^1.9",
20-
"friendsofphp/php-cs-fixer": "3.4.*",
20+
"friendsofphp/php-cs-fixer": "^3.6",
2121
"mikey179/vfsstream": "^1.6",
2222
"nexusphp/cs-config": "^3.3",
2323
"nexusphp/tachycardia": "^1.0",

spark

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
#!/usr/bin/env php
22
<?php
33

4+
/**
5+
* This file is part of CodeIgniter 4 framework.
6+
*
7+
* (c) CodeIgniter Foundation <admin@codeigniter.com>
8+
*
9+
* For the full copyright and license information, please view
10+
* the LICENSE file that was distributed with this source code.
11+
*/
12+
413
/*
514
* --------------------------------------------------------------------
615
* CodeIgniter command-line tools

system/Test/Mock/MockSecurityConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace CodeIgniter\Test\Mock;
1313

14-
use Config\Security as Security;
14+
use Config\Security;
1515

1616
/**
1717
* @deprecated

tests/system/Config/ServicesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
use CodeIgniter\View\Parser;
4444
use Config\App;
4545
use Config\Exceptions;
46-
use Tests\Support\Config\Services as Services;
46+
use Tests\Support\Config\Services;
4747

4848
/**
4949
* @internal

tests/system/Cookie/CookieStoreTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function testCookieDispatching(): void
107107
$prod = $cookies['prod']->getOptions();
108108

109109
/**
110-
* @var MockObject&CookieStore $store
110+
* @var CookieStore&MockObject $store
111111
*/
112112
$store = $this->getMockBuilder(CookieStore::class)
113113
->setConstructorArgs([$cookies])

tests/system/Helpers/SecurityHelperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use CodeIgniter\Test\CIUnitTestCase;
1515
use CodeIgniter\Test\Mock\MockSecurity;
1616
use Config\App;
17-
use Tests\Support\Config\Services as Services;
17+
use Tests\Support\Config\Services;
1818

1919
/**
2020
* @internal

tests/system/Log/Handlers/ErrorlogHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function testErrorLoggingWithErrorLog(): void
3535
}
3636

3737
/**
38-
* @return MockObject&ErrorlogHandler
38+
* @return ErrorlogHandler&MockObject
3939
*/
4040
private function getMockedHandler(array $config = [])
4141
{

0 commit comments

Comments
 (0)