Skip to content

Commit f2065f0

Browse files
authored
Merge pull request #61 from cakephp/2.x-cleanup
Cleanup
2 parents 43fadf2 + ef25885 commit f2065f0

3 files changed

Lines changed: 9 additions & 15 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- 1.x
7+
- 2.x
78
pull_request:
89
branches:
910
- '*'

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"composer-plugin-api": "^2.0"
1515
},
1616
"require-dev": {
17-
"cakephp/cakephp-codesniffer": "5.x-dev",
17+
"cakephp/cakephp-codesniffer": "^5.0",
1818
"composer/composer": "^2.0",
1919
"phpunit/phpunit": "^9.5.19"
2020
},

tests/TestCase/PluginTest.php

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,32 +14,23 @@
1414

1515
class PluginTest extends TestCase
1616
{
17-
/**
18-
* @var \Composer\Composer
19-
*/
20-
protected $composer;
17+
protected Composer $composer;
2118

22-
/**
23-
* @var \Composer\Package\Package
24-
*/
25-
protected $package;
19+
protected Package $package;
2620

2721
/**
2822
* @var \Composer\IO\IOInterface&\PHPUnit\Framework\MockObject\MockObject
2923
*/
3024
protected $io;
3125

32-
/**
33-
* @var \Cake\Composer\Plugin
34-
*/
35-
protected $plugin;
26+
protected Plugin $plugin;
3627

3728
/**
3829
* Directories used during tests
3930
*
40-
* @var array
31+
* @var array<string>
4132
*/
42-
protected $testDirs = [
33+
protected array $testDirs = [
4334
'',
4435
'vendor',
4536
'plugins',
@@ -51,6 +42,8 @@ class PluginTest extends TestCase
5142
'app_plugins/Bar',
5243
];
5344

45+
protected string $path;
46+
5447
/**
5548
* setUp
5649
*

0 commit comments

Comments
 (0)