242 Commits

Author SHA1 Message Date
John Paul E. Balandan, CPA
797d37751a
Merge branch 'develop' into 4.6 2025-01-13 11:15:24 +08:00
John Paul E. Balandan, CPA
c3ac0f9483
chore: add more trailing commas in more places (#9395)
* Apply to parameters

* Apply to array destructuring

* Apply to match

* Apply for arguments
2025-01-13 11:03:02 +08:00
neznaika0
155f1c14de
refactor: Fix phpstan codeigniter.configArgumentInstanceof (#9390) 2025-01-13 10:52:54 +08:00
John Paul E. Balandan, CPA
c7548a3771
Merge branch 'develop' into 4.6 2024-12-29 00:21:53 +08:00
neznaika0
8cff0995de
refactor: fix phpstan only boolean allowed (#9302)
* refactor: Fix `phpstan` boolean errors

* fix: Check predis response

* refactor: Improve comparison with an empty string

* dev: Update phpstan-baseline

* fix: Revert comparison with null
2024-12-28 20:21:06 +08:00
Abdul Malik Ikhsan
345e1c3b9c
refactor: enable code quality level 34 for rector (#9311)
* refactor: enable code quality level 34 for rector

* refactor: run cs fix

* refactor: fix phpstan and regenerate baseline

* refactor: cs fix

* refactor: Cors: before never returns string

* refactor: return EXIT_ERROR on check verify command

* refactor: returns null on DebugToolbar and HoneyPot
2024-12-21 19:40:05 +08:00
michalsn
c32dcd4329
Merge remote-tracking branch 'upstream/develop' into 4.6
# Conflicts:
#	system/Autoloader/Autoloader.php
#	system/BaseModel.php
#	system/CLI/CLI.php
#	system/Database/MigrationRunner.php
#	system/Exceptions/PageNotFoundException.php
#	system/Router/RouteCollection.php
#	system/Validation/FileRules.php
#	tests/system/Autoloader/AutoloaderTest.php
#	tests/system/Filters/FiltersTest.php
#	tests/system/Test/ControllerTestTraitTest.php
#	tests/system/Test/FeatureTestTraitTest.php
#	tests/system/Validation/CreditCardRulesTest.php
#	tests/system/Validation/FileRulesTest.php
#	tests/system/Validation/StrictRules/DatabaseRelatedRulesTest.php
#	tests/system/Validation/StrictRules/FileRulesTest.php
#	tests/system/View/ViewTest.php
2024-11-17 12:21:31 +01:00
neznaika0
583e7b61da
refactor: up performance service() 2024-11-09 08:44:46 +03:00
kenjis
32a11f9d90
Merge remote-tracking branch 'upstream/develop' into 4.6
Conflicts:
	user_guide_src/source/outgoing/api_responses/002.php
2024-08-12 07:47:31 +09:00
kenjis
a325d2e90e
docs: add @var for better DX 2024-08-10 10:24:43 +09:00
kenjis
ed35c36128
docs: update PHPDoc comments 2024-08-10 10:24:10 +09:00
kenjis
e7f7ec582f
refactor: add : void 2024-06-30 11:56:55 +09:00
Abdul Malik Ikhsan
9e4777a0c8
refactor: enable AddClosureVoidReturnTypeWhereNoReturnRector to add void return on closure 2024-06-27 22:19:28 +07:00
kenjis
f3e550470f
refactor: shorten block of if 2024-06-27 13:55:21 +09:00
kenjis
0237a11d51
refactor: rename variable names 2024-06-27 13:55:20 +09:00
kenjis
c6518fe985
feat: normailze Filters filter arguments
For consistency. Route filter arguments are already normalized.
2024-06-27 10:39:58 +09:00
kenjis
e673a0e8c0
refactor: renamve variable names 2024-06-24 09:53:37 +09:00
kenjis
ad68b6c68b
docs: update doc comments 2024-06-24 09:53:37 +09:00
kenjis
851e9382fd
refactor: rename parameter names 2024-06-24 09:53:36 +09:00
kenjis
2a4880839b
feat: add Filters::getRequiredClasses() method 2024-06-24 09:53:35 +09:00
kenjis
6bf2c097fc
docs: update doc comment 2024-06-21 09:58:26 +09:00
kenjis
237ed10f3b
refactor: replace if with ternary operator 2024-06-21 09:58:25 +09:00
kenjis
7d1a10a733
refactor: extract method 2024-06-21 09:58:24 +09:00
kenjis
63a3c6004f
feat: do not instantiate the same filter class more than once 2024-06-21 09:58:24 +09:00
kenjis
52ac7ae250
refactor: rename parameter names 2024-06-21 09:58:24 +09:00
kenjis
b5b63f65e2
feat!: can execute a filter more than once with differnet arguments
Changes array structures of $filters, $filtersClass properties.
2024-06-21 09:58:24 +09:00
kenjis
725d0d4ae3
docs: add @testTag to Filters::initialize() 2024-06-21 09:58:23 +09:00
kenjis
8e5e2078f5
refactor: remove unneeded implements ExceptionInterface 2024-05-06 19:19:20 +09:00
kenjis
e25bc7e7a7
refactor: run rector 2024-04-06 09:24:47 +09:00
kenjis
62bcfa80b3
Merge pull request #8649 from kenjis/feat-cors
feat: add CORS filter
2024-03-31 08:52:10 +09:00
kenjis
492425a06d
fix: TypeError in Filters
TypeError: urldecode(): Argument #1 ($string) must be of type string, null given
2024-03-30 09:33:16 +09:00
kenjis
96ce795691
Merge remote-tracking branch 'origin/develop' into 4.5
Conflicts:
	system/CodeIgniter.php
	system/Filters/Filters.php
	system/Language/Language.php
	system/Router/Router.php
2024-03-29 13:56:45 +09:00
kenjis
8745b20dbd
fix: Filters does not decode URI path
Router does decode it, so Filters also should decode.
2024-03-29 11:18:17 +09:00
kenjis
029db62824
fix: always add Vary: Access-Control-Request-Method header for cacheablility
instead of `Vary: Origin`.
See https://github.com/codeigniter4/CodeIgniter4/pull/8649#issuecomment-2016798537
2024-03-27 19:20:43 +09:00
kenjis
8f0be9444c
feat: always add 'Vary: Origin' header to OPTIONS requests
See https://github.com/rs/cors/issues/10
2024-03-27 19:20:41 +09:00
kenjis
681c41efa8
feat: support multiple configurations 2024-03-27 19:20:40 +09:00
kenjis
31de58efd2
feat: add Cors filter 2024-03-27 19:20:37 +09:00
kenjis
0677a35325
fix: Undefined property: Config\Feature::$oldFilterOrder
When Config\Feature is not updated.
2024-03-26 08:17:02 +09:00
kenjis
fb4a1f5f30
Merge remote-tracking branch 'upstream/develop' into 4.5
Conflicts:
	phpstan-baseline.php
2024-03-25 07:52:41 +09:00
kenjis
6bde439429
docs: fix PHPDoc types for Filters 2024-03-23 21:30:34 +09:00
kenjis
3880337c93
refactor: use service() in framework code 2024-03-04 17:45:22 +09:00
kenjis
8744d96f75
docs: add doc comments 2024-02-07 09:44:26 +09:00
kenjis
fff4508121
Merge remote-tracking branch 'upstream/develop' into 4.5
Conflicts:
	system/HTTP/CLIRequest.php
	system/HTTP/IncomingRequest.php
	system/Model.php
	user_guide_src/source/changelogs/index.rst
	user_guide_src/source/installation/upgrading.rst
2024-01-28 09:08:28 +09:00
kenjis
d61e33ead1
Merge pull request #8072 from kenjis/declare_strict_types
refactor: add `declare(strict_types=1)`
2023-12-05 06:36:27 +09:00
kenjis
57c1c33db8
refactor: add declare(strict_types=1) to system files 2023-11-30 16:14:51 +09:00
kenjis
25ec3df976
refactor: add declare(strict_types=1) to system files 2023-11-30 16:14:48 +09:00
kenjis
507c79c515
refactor: extract getRequiredFilters() 2023-11-29 13:20:53 +09:00
kenjis
709b9f2e0c
docs: add @phpstan-ignore-line 2023-11-20 06:11:59 +09:00
kenjis
121756162a
fix: toolbar does not work in globals filters 2023-11-20 06:06:09 +09:00
kenjis
64d6965874
feat: to work even if Config\Filters is not updated 2023-11-20 06:06:09 +09:00