417 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
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
John Paul E. Balandan, CPA
bd5945df9b
Merge branch 'develop' into 4.6 2024-12-19 16:39:09 +08: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
kenjis
c91b48e268
Merge remote-tracking branch 'upstream/develop' into 4.6 2024-06-10 15:46:04 +09:00
kenjis
977059bbc8
fix: Model::find() returns incorrect data with casting 2024-06-05 18:25:57 +09:00
kenjis
a640e3b175
Merge pull request #8728 from kenjis/exception-rework-4.6
fix: Exception rework
2024-05-23 21:05:04 +09:00
Aleksey Grunin
4639608862
Update Model.php
Fix TypeError error in the methods: doFind and doFirst when using casts
2024-05-08 15:23:04 +09:00
Aleksey Grunin
5c05447288
Fix bug #8806
Bug: when the query ($this->first()) result returns NULL we get TypeError
2024-05-08 15:23:04 +09:00
kenjis
13106b84c1
refactor: use CodeIgniter\Exceptions\BadMethodCallException 2024-05-06 19:19:22 +09:00
kenjis
2460fafbe8
docs: make PHPDoc types more precise 2024-04-09 15:55:07 +09:00
kenjis
e25bc7e7a7
refactor: run rector 2024-04-06 09:24:47 +09:00
kenjis
5150c452e0
Merge remote-tracking branch 'upstream/develop' into 4.5
Conflicts:
	system/Model.php
2024-03-29 11:07:00 +09:00
kenjis
3e34865139
fix: Model::set() does not accept object 2024-03-28 20:03:55 +09:00
kenjis
013de173ea
fix: Undefined property: Config\Feature::$limitZeroAsAll
When Config\Feature is not updated.
2024-03-26 08:17:03 +09:00
kenjis
99a9148b0a
Merge remote-tracking branch 'upstream/develop' into 4.5
Conflicts:
	psalm-baseline.xml
	system/Router/AutoRouterImproved.php
	system/Router/Router.php
2024-02-26 09:42:51 +09:00
kenjis
e1df9f5bcd
Merge remote-tracking branch 'upstream/develop' into 4.5
Conflicts:
	system/Router/AutoRouterImproved.php
	system/Router/Router.php
2024-02-26 06:59:33 +09:00
John Paul E. Balandan, CPA
06353a4037
style: Enable phpdoc_list_type fixer 2024-02-26 00:19:02 +08:00
John Paul E. Balandan, CPA
609be527ce
style: enable phpdoc_array_type (#8580) 2024-02-25 22:58:47 +08:00
kenjis
570175aefb
refactor: use local variables
To fix PHPStan errors, and using a local variable is a bit faster
than method calling.
2024-02-21 11:20:28 +09:00
kenjis
2345424fbe
refactor: extract useCasts() method 2024-02-13 08:49:25 +09:00
kenjis
c9cc31a8cf
feat: add Model field casting for find*() methods 2024-02-13 08:49:23 +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
John Paul E. Balandan, CPA
05052527b0
style: apply new options to phpdoc_align fixer 2024-01-28 00:37:13 +08:00
kenjis
b2534a16d8
Merge remote-tracking branch 'origin/develop' into 4.5
Conflicts:
	phpstan-baseline.php
	system/BaseModel.php
	system/CodeIgniter.php
	system/Model.php
	system/Test/FeatureTestCase.php
	system/Test/TestResponse.php
2023-12-28 19:57:49 +09:00
kenjis
69fbb6c853
refactor: replace empty() 2023-12-26 07:26:58 +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
2718024906
fix: remove unneeded conditions 2023-12-21 09:46:51 +09:00
kenjis
d258659947
refactor: apply DisallowedEmptyRuleFixerRector 2023-12-21 09:46:49 +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
cec682b049
refactor: apply SimplifyEmptyCheckOnEmptyArrayRector 2023-12-17 17:32:04 +09:00
kenjis
5cde3b7469
docs: update @param 2023-12-09 19:17:52 +09:00
kenjis
f23b18a0ca
feat: add feature flag for limit(0) 2023-12-09 19:17:50 +09:00
kenjis
05d7a7cae1
fix!: change $limit default value from 0 to null 2023-12-09 19:17:50 +09:00
kenjis
a922030d5e
Merge remote-tracking branch 'upstream/develop' into 4.5
Conflicts:
	system/BaseModel.php
	system/Model.php
2023-12-07 18:53:33 +09:00
kenjis
dce194b848
Merge remote-tracking branch 'upstream/develop' into 4.5 2023-12-07 12:49:32 +09:00
kenjis
7ad3c38ee9
refactor: replace $data with $row 2023-12-07 09:12:56 +09:00
kenjis
b2bf84d720
refactor: replace $data with $row 2023-12-07 09:12:56 +09:00
kenjis
6b77de2edb
docs: add PHPDoc types 2023-12-07 09:12:55 +09:00
kenjis
58fce8b8ff
docs: fix PHPDoc types 2023-12-07 09:12:55 +09:00
kenjis
c602c4f67a
docs: fix PHPDoc types 2023-12-07 09:12:55 +09:00
kenjis
be70e74c4e
refactor: rename parameter name to $object 2023-12-07 09:12:54 +09:00
kenjis
285f379da4
docs: fix PHPDoc types 2023-12-07 08:57:46 +09:00
kenjis
b8330e904a
fix: processing in Model of Entity for which primary key is cast 2023-12-01 18:58:12 +09:00
kenjis
25ec3df976
refactor: add declare(strict_types=1) to system files 2023-11-30 16:14:48 +09:00
kenjis
207c66465a
Merge remote-tracking branch 'upstream/develop' into 4.5 2023-11-27 16:25:06 +09:00
kenjis
6bb7c52c70
docs: fix PHPDoc types for Model 2023-11-25 14:28:27 +09:00