225 Commits

Author SHA1 Message Date
Abdul Malik Ikhsan
3e90a29e6f
chore: remove JsonThrowOnErrorRector and FinalizePublicClassConstantRector from skip() config as no longer part of sets 2024-05-29 17:39:03 +07:00
kenjis
aaa37ad416
chore: skip FatalLocator in ReturnNeverTypeRector
The parent method return type is not never.
2024-04-06 09:24:49 +09:00
kenjis
b5a05a07f1
chore: change for upgrade to PHP 8.1 2024-04-06 09:24:45 +09:00
kenjis
e78c92994f
Merge remote-tracking branch 'upstream/develop' into 4.5 2024-04-05 16:59:18 +09:00
Abdul Malik Ikhsan
0987c9ac0b
chore: [Rector] Apply ExplicitBoolCompareRector 2024-04-03 22:25:35 +07:00
kenjis
98a671e3f5
Merge remote-tracking branch 'upstream/develop' into 4.5
Conflicts:
	.github/workflows/test-rector.yml
2024-03-24 12:46:13 +09:00
Abdul Malik Ikhsan
ec54a6b207
combine paths 2024-03-24 02:24:02 +07:00
Abdul Malik Ikhsan
5b2bf1399b
set cache directory 2024-03-24 02:06:38 +07:00
Abdul Malik Ikhsan
f304d95048
set cache directory 2024-03-24 02:06:21 +07:00
kenjis
8737b4b8ce
Merge remote-tracking branch 'upstream/develop' into 4.5
Conflicts:
	system/Autoloader/Autoloader.php
2024-03-15 09:26:59 +09:00
justbyitself
f3e53914b7
refactor: apply cs-fix and rector 2024-03-12 00:03:30 +01:00
justbyitself
6bcd1011e7
chore: add version-compare-func-call-to-constant rule
Add Rector rule in order to replace PHP_VERSION by PHP_VERSION_ID.
@samsonasik suggestion: https://github.com/codeigniter4/CodeIgniter4/pull/8619
2024-03-11 13:16:34 +01:00
kenjis
94c7f087b7
chore: skip rector bug 2024-02-13 08:53:12 +09:00
kenjis
059b085a3d
chore: add skip to use $created_at 2024-02-13 08:49:28 +09:00
kenjis
a253e475c3
chore: skip PHPUnit 10 rules 2024-02-06 09:14:58 +09:00
kenjis
437ce02bf2
Merge remote-tracking branch 'upstream/develop' into 4.5
Conflicts:
	system/Router/RouteCollection.php
2024-02-04 17:46:36 +09:00
Abdul Malik Ikhsan
400d171ebd
Reduce jobsize on rector config 2024-02-04 08:12:25 +07:00
kenjis
b4dd2ab23b
Merge remote-tracking branch 'upstream/develop' into 4.5 2024-01-16 16:10:25 +09:00
Abdul Malik Ikhsan
6f045bf4e0
Update Rector parallel config 2024-01-16 13:59:33 +07:00
kenjis
088d01522f
Merge remote-tracking branch 'upstream/develop' into 4.5 2024-01-16 13:55:30 +09:00
Abdul Malik Ikhsan
9fef925532
Fix parallel timeout 2024-01-09 22:15:52 +07:00
kenjis
6d34289d12
Merge remote-tracking branch 'upstream/develop' into 4.5 2023-12-26 06:53:58 +09:00
kenjis
3cfbdf2b2e
chore: add StringClassNameToClassConstantRector option 2023-12-22 10:34:47 +09:00
kenjis
ed4fce13ab
Merge remote-tracking branch 'upstream/develop' into 4.5
Conflicts:
	phpstan-baseline.php
	rector.php
	system/Database/BaseBuilder.php
	system/Honeypot/Honeypot.php
	system/Router/RouteCollection.php
	system/Test/FeatureTestCase.php
	system/Test/FeatureTestTrait.php
	system/Validation/FormatRules.php
2023-12-22 07:07:52 +09:00
kenjis
9c93833f99
chore: add DisallowedEmptyRuleFixerRector 2023-12-21 09:46:49 +09:00
kenjis
145415e81a
chore: add EmptyOnNullableObjectToInstanceOfRector 2023-12-21 09:46:48 +09:00
kenjis
f2b7ff02d3
chore: add TernaryEmptyArrayArrayDimFetchToCoalesceRector 2023-12-21 09:46:48 +09:00
kenjis
bb9e60e916
Merge remote-tracking branch 'upstream/develop' into 4.5
Conflicts:
	phpstan-baseline.php
	system/BaseModel.php
	system/Controller.php
	system/Helpers/array_helper.php
2023-12-19 11:35:20 +09:00
kenjis
e9d1fcf986
chore: add SimplifyEmptyCheckOnEmptyArrayRector 2023-12-17 17:30:15 +09:00
kenjis
797c5d650e
chore: apply rector to files in tests/_support/ 2023-12-08 15:54:55 +09:00
kenjis
71de6c6fdc
chore: add DeclareStrictTypesRector 2023-11-30 16:14:50 +09:00
kenjis
4b923d5dbf
refactor: add declare(strict_types=1) to rector.php 2023-11-30 16:14:49 +09:00
kenjis
9dab5f12a7
Merge remote-tracking branch 'upstream/develop' into 4.5 2023-11-22 09:05:15 +09:00
kenjis
5fbef68358
chore: disable RemoveVarTagFromClassConstantRector
If we want to write @var to constants, we can write.
2023-11-21 06:31:15 +09:00
kenjis
71e4831c01
docs: add @deprecated to unused param 2023-11-03 17:03:49 +09:00
Abdul Malik Ikhsan
1de08fa47e
[Rector] Apply SingleInArrayToCompareRector 2023-10-27 13:22:26 +07:00
Abdul Malik Ikhsan
83ebb79d20
[Rector] Apply BooleanInIfConditionRuleFixerRector 2023-10-16 11:28:28 +07:00
Abdul Malik Ikhsan
576dd6853c
[Rector] Enable $rectorConfig->removeUnusedImports() 2023-10-16 06:59:56 +07:00
Abdul Malik Ikhsan
02e8805693
remove CountOnNullRector from skip list as now deprecated 2023-10-06 05:08:27 +07:00
Abdul Malik Ikhsan
ab30253a75
[PHPStan] Add @var string[] on array of string with enable StringifyStrNeedlesRector 2023-09-13 23:35:01 +07:00
Abdul Malik Ikhsan
a4ec34a50d
update parallel and skip config 2023-09-13 22:35:47 +07:00
John Paul E. Balandan, CPA
042eaaaffb
Use phpstan-codeigniter 2023-09-11 16:09:29 +08:00
kenjis
0276d89290
chore: skip the specific rule
See https://github.com/codeigniter4/CodeIgniter4/pull/7904#discussion_r1318507172
2023-09-08 17:39:55 +09:00
kenjis
f75e33d57b
chore: change PHPUnitLevelSetList::UP_TO_PHPUNIT_100 to PHPUnitSetList::PHPUNIT_100
It does not work for us.
See https://github.com/codeigniter4/CodeIgniter4/pull/7904#discussion_r1318145952
2023-09-08 17:35:27 +09:00
kenjis
94d546b9a8
chore: add system/Test/ControllerResponse.php to skip list
It caused an error.

Warning: Undefined array key 1852 in /home/runner/work/CodeIgniter4/CodeIgniter4/vendor/rector/rector/vendor/nikic/php-parser/lib/PhpParser/Internal/TokenStream.php on line 209

Error: ] Could not process
         "/home/runner/work/CodeIgniter4/CodeIgniter4/system/Test/ControllerResp
         onse.php" file, due to:
         "System error: "PhpParser\Internal\TokenStream::getIndentationBefore():
         Return value must be of type int, null returned"
         Run Rector with "--debug" option and post the report here: https://github.com/rectorphp/rector/issues/new". On line:
         209

Error: Process completed with exit code 1.
2023-09-08 17:35:27 +09:00
kenjis
d669efa9b8
chore: use PPHPUnitLevelSetList::UP_TO_PHPUNIT_100 instead of PHPUnitSetList::PHPUNIT_80 2023-09-08 17:35:27 +09:00
kenjis
ef15d933e5
chore: replace deprecated sets 2023-09-08 17:35:27 +09:00
kenjis
f6bf3d2329
Merge remote-tracking branch 'upstream/develop' into 4.4 2023-08-07 05:53:43 +09:00
Abdul Malik Ikhsan
2c8ead62f7
[Rector] Remove skipped AssertPropertyExistsRector 2023-08-05 17:22:35 +07:00
kenjis
fcdf5da6f6
Merge remote-tracking branch 'upstream/develop' into 4.4 2023-07-18 18:04:07 +09:00