Skip to content

Commit 517b685

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into 4.5
2 parents acfe560 + bdbb775 commit 517b685

128 files changed

Lines changed: 277 additions & 42 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎app/Config/Migrations.php‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ class Migrations extends BaseConfig
2525
*
2626
* This is the name of the table that will store the current migrations state.
2727
* When migrations runs it will store in a database table which migration
28-
* level the system is at. It then compares the migration level in this
29-
* table to the $config['migration_version'] if they are not the same it
30-
* will migrate up. This must be set.
28+
* files have already been run.
3129
*/
3230
public string $table = 'migrations';
3331

‎rector.php‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
use Rector\Php71\Rector\FuncCall\CountOnNullRector;
3939
use Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector;
4040
use Rector\Php73\Rector\FuncCall\StringifyStrNeedlesRector;
41+
use Rector\PHPUnit\CodeQuality\Rector\Class_\ConstructClassMethodToSetUpTestCaseRector;
42+
use Rector\PHPUnit\CodeQuality\Rector\Class_\YieldDataProviderRector;
4143
use Rector\PHPUnit\Set\PHPUnitSetList;
4244
use Rector\Privatization\Rector\Property\PrivatizeFinalClassPropertyRector;
4345
use Rector\Set\ValueObject\LevelSetList;
@@ -51,9 +53,8 @@
5153
$rectorConfig->sets([
5254
SetList::DEAD_CODE,
5355
LevelSetList::UP_TO_PHP_74,
54-
PHPUnitSetList::PHPUNIT_SPECIFIC_METHOD,
55-
PHPUnitSetList::PHPUNIT_80,
56-
PHPUnitSetList::REMOVE_MOCKS,
56+
PHPUnitSetList::PHPUNIT_CODE_QUALITY,
57+
PHPUnitSetList::PHPUNIT_100,
5758
]);
5859

5960
$rectorConfig->parallel(240, 8, 1);
@@ -77,12 +78,20 @@
7778
__DIR__ . '/tests/_support',
7879
JsonThrowOnErrorRector::class,
7980
StringifyStrNeedlesRector::class,
81+
YieldDataProviderRector::class,
8082

8183
RemoveUnusedPrivateMethodRector::class => [
8284
// private method called via getPrivateMethodInvoker
8385
__DIR__ . '/tests/system/Test/ReflectionHelperTest.php',
8486
],
8587

88+
ConstructClassMethodToSetUpTestCaseRector::class => [
89+
// breaks the constructor
90+
__DIR__ . '/system/Test/TestResponse.php',
91+
// See https://github.com/rectorphp/rector/issues/8188
92+
__DIR__ . '/system/Test/ControllerResponse.php',
93+
],
94+
8695
RemoveUnusedConstructorParamRector::class => [
8796
// there are deprecated parameters
8897
__DIR__ . '/system/Debug/Exceptions.php',

‎system/Autoloader/Autoloader.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
* // register the autoloader
5454
* $loader->register();
5555
* ```
56+
*
57+
* @see \CodeIgniter\Autoloader\AutoloaderTest
5658
*/
5759
class Autoloader
5860
{

‎system/Autoloader/FileLocator.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
/**
1515
* Allows loading non-class files in a namespaced manner.
1616
* Works with Helpers, Views, etc.
17+
*
18+
* @see \CodeIgniter\Autoloader\FileLocatorTest
1719
*/
1820
class FileLocator
1921
{

‎system/CLI/CLI.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
* The wait() method is mostly testable, as long as you don't give it
3434
* an argument of "0".
3535
* These have been flagged to ignore for code coverage purposes.
36+
*
37+
* @see \CodeIgniter\CLI\CLITest
3638
*/
3739
class CLI
3840
{

‎system/CLI/Console.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
/**
1919
* Console
20+
*
21+
* @see \CodeIgniter\CLI\ConsoleTest
2022
*/
2123
class Console
2224
{

‎system/Cache/CacheFactory.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
/**
2020
* A factory for loading the desired
21+
*
22+
* @see \CodeIgniter\Cache\CacheFactoryTest
2123
*/
2224
class CacheFactory
2325
{

‎system/Cache/Handlers/BaseHandler.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
/**
2121
* Base class for cache handling
22+
*
23+
* @see \CodeIgniter\Cache\Handlers\BaseHandlerTest
2224
*/
2325
abstract class BaseHandler implements CacheInterface
2426
{

‎system/Cache/Handlers/DummyHandler.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
/**
1717
* Dummy cache handler
18+
*
19+
* @see \CodeIgniter\Cache\Handlers\DummyHandlerTest
1820
*/
1921
class DummyHandler extends BaseHandler
2022
{

‎system/Cache/Handlers/FileHandler.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
/**
2020
* File system cache handler
21+
*
22+
* @see \CodeIgniter\Cache\Handlers\FileHandlerTest
2123
*/
2224
class FileHandler extends BaseHandler
2325
{

0 commit comments

Comments
 (0)