22876 Commits

Author SHA1 Message Date
Abdul Malik Ikhsan
e363f4748a
Merge pull request #9342 from paulbalandan/new-static
refactor: fix warning on new static usage
2024-12-28 13:15:39 +07:00
John Paul E. Balandan, CPA
2114577483
refactor: fix warning on new static usage 2024-12-27 23:24:05 +08:00
Michal Sniatala
22b8e9e9d9
fix: prioritize headers set by the Response class (#9235)
* fix: prioritize headers set by the Response class

* cs fix

* add a note to the user guide

* docs: add an example to the header changes

* Update user_guide_src/source/changelogs/v4.6.0.rst

Co-authored-by: John Paul E. Balandan, CPA <paulbalandan@gmail.com>

---------

Co-authored-by: John Paul E. Balandan, CPA <paulbalandan@gmail.com>
2024-12-27 13:11:59 +01:00
Michal Sniatala
6cbbf601b0
fix: handling binary data for prepared statement (#9337)
* fix prepare statement sqlite

* fix prepare statement postgre

* fix prepare statement sqlsrv

* fix prepare statement oci8

* tests

* abstract isBinary() method

* fix prepare statement mysqli

* fix prepare statement oci8

* sqlsrv blob support

* fix tests

* add changelog

* fix rector

* make sqlsrv happy

* make oci8 happy - hopefully

* add a note about options for prepared statement

* ignore PreparedQueryTest.php file

* apply code suggestion for oci8
2024-12-27 08:14:06 +01: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
John Paul E. Balandan, CPA
cd8ba91b47
chore: bump to laminas-escaper v2.15 (#9333) 2024-12-21 19:15:33 +08:00
John Paul E. Balandan, CPA
3a90d72e4e
chore: fix errors on merging develop to 4.6 (#9332)
* re-bump dependencies

* regenerate phpstan baseline
2024-12-20 08:04:29 +08:00
John Paul E. Balandan, CPA
bd5945df9b
Merge branch 'develop' into 4.6 2024-12-19 16:39:09 +08:00
John Paul E. Balandan, CPA
cc1b8f2856
refactor: add @throws RedirectException in Controller::initController (#9327) 2024-12-19 16:33:56 +08:00
John Paul E. Balandan, CPA
8fa419fdad
refactor: Reflection*::setAccessible() is now no-op in PHP 8.1 (#9331) 2024-12-19 16:29:59 +08:00
neznaika0
ab5536f92b
fix: Remove DB files after tests (#9192) 2024-12-19 16:29:35 +08:00
John Paul E. Balandan, CPA
f48aa6f61e
refactor: fix Forge::processIndexes() for empty $this->fields (#9330) 2024-12-19 16:07:05 +08:00
Denny Septian Panggabean
cd5dda1037
feat: full support on PHP8.4 (#9255)
* refactor: review github CI on PHP8.4

* refactor: bump fakerphp/faker to v1.24 as minimum required

* refactor: bump mikey179/vfsstream to v1.6.12 as minimum required

* refactor: bump predis/predis to v2.3 as minimum required

* temporary ignore env PHP-CS-Fixer in github action
2024-12-17 08:52:53 +01:00
Andi Fahruddin Akas
cc2dcee4ed
docs: variable naming adjustments (#9324)
* Update 006.php

* Update 008.php

* Update 046.php
2024-12-16 19:31:13 +08:00
Andi Fahruddin Akas
17f7a9d8b9
docs: phpdoc incorrect explanation regarding variable naming (#9326)
* Update FileHandler.php

* Update BaseConnection.php

* Update Connection.php

* Update filesystem_helper.php

* Update Security.php

* Update SecurityInterface.php
2024-12-16 19:30:37 +08:00
Abdul Malik Ikhsan
61881bd3fa
refactor: upgrade to use phpstan 2 and rector 2 (#9322) 2024-12-16 02:03:01 +08:00
John Paul E. Balandan, CPA
242745c661
refactor: split phpstan-baseline into smaller files (#9299)
* refactor: split phpstan-baseline into smaller files

* Checkout base branch to resolve codeigniter4/framework

* Fix rector changes
2024-12-15 08:38:40 +08:00
Abdul Malik Ikhsan
f0536a1b55
Merge pull request #9321 from samsonasik/chore-prepare-phpstan-2
chore: preparation for PHPStan 2: remove CheckUseStatementsAfterLicenseRule
2024-12-14 01:09:02 +07:00
Abdul Malik Ikhsan
6644b79927
chore: fix ci run 2024-12-13 23:50:15 +07:00
Abdul Malik Ikhsan
94e57df8f5
chore: preparation for PHPStan 2: remove CheckUseStatementsAfterLicenseRule 2024-12-13 23:47:37 +07:00
Denny Septian Panggabean
0f5de2782f
refactor: followup style variable array (#9319) 2024-12-12 20:54:59 +08:00
Michal Sniatala
9bc61b3b2f
fix: check if defined WRITEPATH exists (#9317)
* fix: check if defined WRITEPATH exists

* cs fix

* Update system/Boot.php

Co-authored-by: Pooya Parsa <pooya_parsa_dadashi@yahoo.com>

* cs fix

---------

Co-authored-by: Pooya Parsa <pooya_parsa_dadashi@yahoo.com>
2024-12-12 08:26:35 +01:00
Abdul Malik Ikhsan
e9bb603940
Merge pull request #9316 from paulbalandan/implicit-array-creation
refactor: fix implicit array creation
2024-12-12 02:25:17 +07:00
John Paul E. Balandan, CPA
c06d9281d9
refactor: fix implicit array creation 2024-12-12 01:05:08 +08:00
Abdul Malik Ikhsan
0b0126cf8d
Merge pull request #9314 from paulbalandan/rename-controller-to-Controller
refactor: rename `controller` to `Controller`
2024-12-11 23:49:09 +07:00
Abdul Malik Ikhsan
f5200b54cc
Merge pull request #9315 from paulbalandan/method-namecase
refactor: fix `method.nameCase` errors
2024-12-11 23:48:39 +07:00
John Paul E. Balandan, CPA
64c8fcefb7
refactor: fix method.nameCase errors 2024-12-12 00:29:57 +08:00
John Paul E. Balandan, CPA
562ddf2e89
refactor: rename controller to Controller 2024-12-12 00:21:45 +08:00
Abdul Malik Ikhsan
8fc60e755d
Merge pull request #9313 from paulbalandan/fix-phpdoc-parse-error
refactor: fix `phpDoc.parseError` errors
2024-12-11 21:12:07 +07:00
Abdul Malik Ikhsan
be824e398c
Merge pull request #9312 from paulbalandan/rename-stdclass-to-stdClass
refactor: rename `stdclass` to `stdClass`
2024-12-11 21:11:05 +07:00
John Paul E. Balandan, CPA
2927788803
refactor: fix phpdoc.parseError errors 2024-12-11 18:58:28 +08:00
John Paul E. Balandan, CPA
107e2b3ff9
refactor: rename stdclass to stdClass 2024-12-11 18:43:24 +08:00
Michal Sniatala
1b530cd8b6
docs: add info about handling exceptions for non-HTML responses (#9310) 2024-12-11 08:35:33 +01:00
Michal Sniatala
539436f58d
fix: primary key mapping in the model for the entity (#9307)
* fix primary key mapping for the entity in the model

* fix phpstan

* update comment in the code
2024-12-11 08:35:20 +01:00
neznaika0
dae379fad2
refactor: fix phpstan signature for Closure (#9304) 2024-12-10 22:11:08 +08:00
Abdul Malik Ikhsan
124a7e6443
Merge pull request #9303 from samsonasik/refactor-apply-code-quality-level-27
refactor: Apply code quality level 31 for rector
2024-12-07 18:18:33 +07:00
Abdul Malik Ikhsan
608b869a20
refactor: enable level 31: ThrowWithPreviousExceptionRector 2024-12-07 17:46:25 +07:00
Abdul Malik Ikhsan
37e63299f5
refactor: skip CompactToVariablesRector 2024-12-07 17:42:53 +07:00
John Paul E. Balandan, CPA
8ba6f2ab53
Merge branch 'develop' into 4.6 2024-12-06 20:50:04 +08:00
Abdul Malik Ikhsan
21b8877620
refactor: Apply code quality level 27 for rector 2024-12-05 23:58:11 +07:00
Michal Sniatala
0d3c3b1197
docs: update note about required filters (#9298)
* docs: update note about required filters

* Update user_guide_src/source/incoming/filters.rst

Co-authored-by: John Paul E. Balandan, CPA <paulbalandan@gmail.com>

---------

Co-authored-by: John Paul E. Balandan, CPA <paulbalandan@gmail.com>
2024-12-04 07:44:14 +01:00
Thomas Meschke
455a559fb3
feat: Differentiate between kilobyte/kibibyte and megabyte/mebibyte (#9277) 2024-12-04 13:32:39 +08:00
Osman Bozdag
8cf0fa1593
docs: Fix $indexPage param explanations in helpers/html_helper.rst (#9162) 2024-12-02 19:49:38 +08:00
Michal Sniatala
35c578496b
feat: add SQLite3 config synchronous (#9202)
* feat: add SQLite3 config synchronous

* add synchronous value validation

* Update system/Database/SQLite3/Connection.php

Co-authored-by: John Paul E. Balandan, CPA <paulbalandan@gmail.com>

* add type for the synchronous property

* use InvalidArgumentException from the CodeIgniter namespace

* fix rector

---------

Co-authored-by: John Paul E. Balandan, CPA <paulbalandan@gmail.com>
2024-12-02 07:28:31 +01:00
TechnoKa
695829c52f
Update create_news_items/001.php (#9297)
Updated Filters configuration to explicitly declare the $methods property as an array, ensuring compatibility with strict typing in PHP.
2024-12-02 07:18:38 +01:00
Denny Septian Panggabean
c76a68f123
feat: CURL option force_ip_resolve (#9194)
* feat: CURL option force_ip_resolve

* test: CURL option force_ip_resolve

* docs: CURL option force_ip_resolve

* fix: PHPStan error

* fix: prevent using empty()

* fix: strict check

* tests: unknown value in option force_ip_resolve

* fix: using default match

* fix: PHPUnit option resolved_force_ip
2024-12-02 07:17:58 +01:00
Denny Septian Panggabean
c46cea4ee0
chore: update Kint to v6.0 (#9289)
* feat: update kint to v6.0

* fix: run cs
2024-12-02 07:17:23 +01:00
Dimitri Sitchet Tomkeu
bcedf1ccfc
feat: added the namespace option to the publish command (#9278) 2024-12-02 03:31:46 +08:00
John Paul E. Balandan, CPA
d6d30c0920
Merge pull request #9216 from maniaba/dev.9215
feat: [Validation] add support for `$dbGroup` as parameter in `is_unique` and `is_not_unique`
2024-12-02 01:19:11 +08:00
Amel Junuzović
86278d9ab2
feat: Add optional dbGroup support in validation rules for multiple database connections
cs fixer

docs format

fix rules

add test testIsNotUniqueWithDBConnectionAsParameter

docs: update v4.5.6.rst

docs: fix tabs

docs update for v4.6.0

Update validation.rst

Update user_guide_src/source/changelogs/v4.6.0.rst

Co-authored-by: Michal Sniatala <michal@sniatala.pl>

Add a test case for `InvalidArgumentException` and remove the duplicate comment.

refactor: code for is_unique and is_not_unique methods; extracted common code into prepareUniqueQuery method

rector and phpstan fix
2024-12-02 01:03:46 +08:00