Skip to content

Commit 4e80ecb

Browse files
committed
Update php-cs-fixer to v3
1 parent 2ed1bbf commit 4e80ecb

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.php_cs.cache
1+
.php-cs-fixer.cache
22
.phpunit.result.cache
33
composer.lock
44
composer.phar

.php_cs renamed to .php-cs-fixer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
])
88
;
99

10-
return PhpCsFixer\Config::create()
11-
->setRules([
10+
$config = new PhpCsFixer\Config();
11+
return $config->setRules([
1212
'@Symfony' => true,
1313

1414
'array_syntax' => ['syntax' => 'short'],

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"psr/http-factory": "^1.0"
2525
},
2626
"require-dev": {
27-
"friendsofphp/php-cs-fixer": "^2.0",
27+
"friendsofphp/php-cs-fixer": "^3.0",
2828
"phpunit/phpunit": "^9.5",
2929
"guzzlehttp/psr7": "^2.0",
3030
"php-mock/php-mock-phpunit": "^2.6"

src/Redmine/Api/Issue.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
*/
1212
class Issue extends AbstractApi
1313
{
14-
const PRIO_LOW = 1;
15-
const PRIO_NORMAL = 2;
16-
const PRIO_HIGH = 3;
17-
const PRIO_URGENT = 4;
18-
const PRIO_IMMEDIATE = 5;
14+
public const PRIO_LOW = 1;
15+
public const PRIO_NORMAL = 2;
16+
public const PRIO_HIGH = 3;
17+
public const PRIO_URGENT = 4;
18+
public const PRIO_IMMEDIATE = 5;
1919

2020
/**
2121
* List issues.

tests/Unit/Client/NativeCurlClientTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ class NativeCurlClientTest extends TestCase
1616
{
1717
use PHPMock;
1818

19-
const __NAMESPACE__ = 'Redmine\Client';
19+
public const __NAMESPACE__ = 'Redmine\Client';
2020

21-
const DEFAULT_CURL_OPTIONS = [
21+
public const DEFAULT_CURL_OPTIONS = [
2222
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
2323
CURLOPT_PORT => 80,
2424
CURLOPT_URL => 'http://test.local/path',

0 commit comments

Comments
 (0)