Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.5.0 Ready code #8723

Merged
merged 1,180 commits into from
Apr 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1180 commits
Select commit Hold shift + click to select a range
db3464a
refactor: remove deprecated BaseService::discoverServices()
kenjis Feb 27, 2024
b55a590
docs: add changelog
kenjis Feb 27, 2024
7e00435
chore: remove ignoreErrors
kenjis Feb 27, 2024
5c4aa4b
refactor: use $options['component'] instead of $component
kenjis Mar 2, 2024
06e0753
feat: add Factories::get()
kenjis Mar 2, 2024
839b29d
refactor: config() uses Factories::get()
kenjis Mar 2, 2024
4658167
Merge pull request #8581 from kenjis/feat-spark-phpini-check
kenjis Mar 2, 2024
e72ce8f
Merge remote-tracking branch 'upstream/develop' into 4.5
kenjis Mar 2, 2024
b6556f7
docs: make @var more detailed
kenjis Feb 28, 2024
39bed21
feat: add Services::get(),set(),override()
kenjis Feb 28, 2024
3880337
refactor: use service() in framework code
kenjis Feb 28, 2024
8084f1e
refactor: use Services::get() in service()
kenjis Mar 4, 2024
d23acf0
refactor: use Services::get() in Config\Services
kenjis Mar 4, 2024
9ac1dda
feat: add $factories to save factory methods
kenjis Feb 28, 2024
c9a4bb8
refactor: by rector
kenjis Mar 4, 2024
a663b36
Merge pull request #8589 from kenjis/remove-BaseService-discoverServices
kenjis Mar 5, 2024
8b0752a
Merge remote-tracking branch 'upstream/develop' into 4.5
kenjis Mar 5, 2024
91fea1a
refactor: remove unnecessary $services assignment
kenjis Mar 5, 2024
3c71913
docs: add changelog
kenjis Mar 5, 2024
4462a8d
test: change classname
kenjis Mar 5, 2024
48294a8
test: fix test method names
kenjis Mar 5, 2024
c821b69
fix: exception message
kenjis Mar 5, 2024
1db8db6
fix: paramete/return types
kenjis Mar 5, 2024
15ad0a3
Merge remote-tracking branch 'upstream/develop' into 4.5
kenjis Mar 5, 2024
87db593
Merge pull request #8609 from kenjis/deprecate-BaseConfig-services
kenjis Mar 5, 2024
48e0bea
Merge pull request #8600 from kenjis/feat-Factories-get-v2
kenjis Mar 7, 2024
452543e
Merge pull request #8607 from kenjis/feat-Services-get
kenjis Mar 7, 2024
be6930d
Merge remote-tracking branch 'upstream/develop' into 4.5
kenjis Mar 7, 2024
7187893
added SQLite3 to exclude database
ddevsr Mar 2, 2024
67268a1
docs: note preload to deployment
ddevsr Mar 2, 2024
9775472
fix: typo
ddevsr Mar 2, 2024
c01bc72
docs: change explanation
ddevsr Mar 2, 2024
d4cd63e
Update user_guide_src/source/installation/preloading/001.php
ddevsr Mar 2, 2024
48550aa
fix: typography
ddevsr Mar 5, 2024
64fa90a
change notes
ddevsr Mar 6, 2024
27973c7
change notes
ddevsr Mar 7, 2024
6aed088
Update user_guide_src/source/installation/deployment.rst
ddevsr Mar 8, 2024
4d121a7
fix: change notes
ddevsr Mar 8, 2024
f0601de
Merge remote-tracking branch 'upstream/develop' into 4.5
kenjis Mar 9, 2024
8125c13
Merge remote-tracking branch 'upstream/develop' into 4.5
kenjis Mar 10, 2024
c38d7de
Merge pull request #8597 from ddevsr/preload
kenjis Mar 10, 2024
1322265
refactor: remove deprecated Request::$proxyIPs
kenjis Mar 11, 2024
e4a7e79
refactor: move IncomingRequest::$config to RequestTrait::$config
kenjis Mar 11, 2024
35a2ec4
refactor: remove deprecated IncomingRequest::$enableCSRF
kenjis Mar 11, 2024
5ef64a0
refactor: remove deprecated IncomingRequest::removeRelativeDirectory()
kenjis Mar 11, 2024
6683b65
docs: add changelog
kenjis Mar 11, 2024
ef64dfb
refactor: followup performance service()
ddevsr Mar 14, 2024
e371c09
Merge pull request #8617 from kenjis/refactor-Request
kenjis Mar 15, 2024
8737b4b
Merge remote-tracking branch 'upstream/develop' into 4.5
kenjis Mar 15, 2024
7d2d577
Merge remote-tracking branch 'upstream/develop' into 4.5
kenjis Mar 15, 2024
28a8009
refactor: move CodeIgniter::initializeKint() to Autoloader
kenjis Feb 18, 2024
470dace
docs: remove unneeded @var
kenjis Feb 18, 2024
4e602a6
refactor: move CodeIgniter::bootstrapEnvironment() to bootstrap.php
kenjis Feb 18, 2024
85adb5b
docs: remove meaningless @codeCoverageIgnore
kenjis Feb 18, 2024
c157590
docs: add comment headings
kenjis Feb 18, 2024
e670df1
refactor: move DEFINE ENVIRONMENT to bootstrap.php
kenjis Feb 18, 2024
66c81bc
refactor: move Services::exceptions()->initialize() to bootstrap.php
kenjis Feb 18, 2024
83c15b9
refactor: move CodeIgniter::resolvePlatformExtensions() to bootstrap.php
kenjis Feb 18, 2024
fb00173
refactor: remove variables
kenjis Feb 18, 2024
a87af65
refactor: match test/bootstrap to system/bootstrap as much as possible
kenjis Feb 18, 2024
3c8b1c3
refactor: remove `$_SERVER['app.baseURL'] = 'http://example.com/'`
kenjis Feb 18, 2024
a1c1be2
refactor: remove unneeded `require_once COMPOSER_PATH`
kenjis Feb 18, 2024
ff6a2d5
fix: move LOAD ENVIRONMENT BOOTSTRAP to index.php
kenjis Feb 18, 2024
3f55c98
fix: move BOOTSTRAP THE APPLICATION down
kenjis Feb 18, 2024
a3bccfb
fix: add missing LOAD ENVIRONMENT BOOTSTRAP
kenjis Feb 19, 2024
10a60e0
fix: index.php and spark do not work
kenjis Feb 19, 2024
793b57a
fix: Undefined variable $paths
kenjis Feb 19, 2024
48307b5
chore: add exlucde for PHPCPD
kenjis Feb 19, 2024
46230e7
docs: add user guide
kenjis Mar 3, 2024
3dba2bc
docs: fix by proofreading
kenjis Mar 15, 2024
e75e128
docs: fix by proofreading
kenjis Mar 15, 2024
458333c
docs: add Bootstrap change to changelog
kenjis Mar 15, 2024
b50cfbd
Merge pull request #8603 from kenjis/fix-move-kint-autoload
kenjis Mar 16, 2024
3e9a9c9
Merge pull request #8623 from ddevsr/use-services
kenjis Mar 16, 2024
1671882
refactor: extract Boot class
kenjis Feb 19, 2024
5338b3d
refactor: move code to Boot class
kenjis Feb 19, 2024
529eb95
refactor: use Boot class in Test/bootstrap.php
kenjis Feb 19, 2024
5691689
refactor: fix method name
kenjis Feb 19, 2024
c5191a0
refactor: remove rtrim()
kenjis Feb 19, 2024
41db766
docs: update comments
kenjis Feb 19, 2024
7b81bb0
docs: add user guide
kenjis Feb 19, 2024
c335731
docs: add @codeCoverageIgnore
kenjis Feb 19, 2024
4a430ea
docs: remove space
kenjis Mar 16, 2024
4cd1a70
docs: remove @used-by
kenjis Mar 16, 2024
a95c6f1
refactor: extract boot() method
kenjis Mar 16, 2024
1022a33
refactor: improve readability
kenjis Mar 16, 2024
61bf440
refactor: remove unneeded unset()
kenjis Mar 16, 2024
dc9caae
refactor: move checkMissingExtensions() up
kenjis Mar 17, 2024
a5ee340
refactor: early return
kenjis Mar 17, 2024
44583a4
fix: change HTTP status code from 200 to 503
kenjis Mar 17, 2024
842fd6e
feat: "system/bootstrap.php" shows upgrade error message
kenjis Mar 17, 2024
a3a7aa7
Merge remote-tracking branch 'upstream/develop' into 4.5
kenjis Mar 18, 2024
b17255a
Merge remote-tracking branch 'upstream/develop' into 4.5
kenjis Mar 20, 2024
cc01dd2
Merge remote-tracking branch 'upstream/develop' into 4.5
kenjis Mar 22, 2024
98a671e
Merge remote-tracking branch 'upstream/develop' into 4.5
kenjis Mar 24, 2024
fb4a1f5
Merge remote-tracking branch 'upstream/develop' into 4.5
kenjis Mar 24, 2024
8c91b0d
Merge pull request #8569 from kenjis/fix-composer-autoload-psr-4
kenjis Mar 25, 2024
0677a35
fix: Undefined property: Config\Feature::$oldFilterOrder
kenjis Feb 22, 2024
013de17
fix: Undefined property: Config\Feature::$limitZeroAsAll
kenjis Feb 22, 2024
879479c
Merge pull request #8578 from kenjis/improve-redis-session
kenjis Mar 25, 2024
6d595e0
Merge remote-tracking branch 'upstream/develop' into 4.5
kenjis Mar 25, 2024
c2eed1b
Merge remote-tracking branch 'upstream/develop' into 4.5
kenjis Mar 26, 2024
135f4e6
chore: vendor/bin/phpstan analyze --generate-baseline phpstan-baselin…
kenjis Mar 26, 2024
76a7c6c
Merge pull request #8660 from kenjis/update-phpstan-baseline-4.5
kenjis Mar 26, 2024
020da9b
Merge pull request #8570 from kenjis/fix-for-backward-compat
kenjis Mar 26, 2024
39210be
Merge pull request #8604 from kenjis/feat-add-Boot-class
kenjis Mar 26, 2024
c1ca7b7
feat: add config Cache::$configCacheEnabled
kenjis Feb 19, 2024
97de8bb
refactor: move code from spark to Boot class
kenjis Feb 19, 2024
b61baa7
docs: update "How to Enable Config Caching"
kenjis Feb 19, 2024
e32b962
config: move $cacheQueryString down
kenjis Feb 26, 2024
1018706
fix: extract autoloadHelpers()
kenjis Feb 27, 2024
eba1e9e
fix: method name case
kenjis Feb 27, 2024
fef194b
perf: add config Optimize and move $configCacheEnabled
kenjis Feb 29, 2024
8f46563
feat: add Config\Optimize::$locatorCacheEnabled
kenjis Feb 29, 2024
0e81024
docs: add notes for environment variables
kenjis Feb 29, 2024
fd25f15
feat: add HTTP\Cors class
kenjis Mar 22, 2024
31de58e
feat: add Cors filter
kenjis Mar 22, 2024
78fd0b4
docs: fix HTTP method name in comment
kenjis Mar 22, 2024
d42c786
feat: make $allowedOriginsPatterns more secure
kenjis Mar 22, 2024
48ac9cd
chore: add exclude
kenjis Mar 22, 2024
fafd863
test: fix return type
kenjis Mar 23, 2024
ab31388
refactor: extract checkWildcard() method
kenjis Mar 23, 2024
026eeb0
refactor: extract checkWildcardAndCredentials() method
kenjis Mar 23, 2024
f879d28
test: fix typo in method name
kenjis Mar 23, 2024
6751eef
test: add tests for exception messages
kenjis Mar 23, 2024
2f01450
test: add credit in comment
kenjis Mar 23, 2024
a019896
docs: add user guide
kenjis Mar 23, 2024
ee1eb5c
test: rename test method
kenjis Mar 24, 2024
681c41e
feat: support multiple configurations
kenjis Mar 24, 2024
85dda5d
test: move private methods up
kenjis Mar 24, 2024
8f0be94
feat: always add 'Vary: Origin' header to OPTIONS requests
kenjis Mar 24, 2024
ba09b87
docs: add @var
kenjis Mar 24, 2024
0da9ae7
refactor: early return
kenjis Mar 24, 2024
0faef2d
docs: changed options routes
kenjis Mar 24, 2024
c93083e
docs: add about supportsCredentials
kenjis Mar 24, 2024
161e889
docs: remove duplicated sample code
kenjis Mar 24, 2024
9950328
docs: improve descriptions
kenjis Mar 24, 2024
029db62
fix: always add `Vary: Access-Control-Request-Method` header for cach…
kenjis Mar 25, 2024
2664c06
docs: add doc comments
kenjis Mar 25, 2024
d52f07b
test: add return types
kenjis Mar 27, 2024
84855d6
test: add types
kenjis Mar 27, 2024
3a7e880
docs: add link to Filter argument
kenjis Mar 27, 2024
6fd8afb
Merge pull request #8605 from kenjis/feat-add-config-optimize
kenjis Mar 27, 2024
fcf905f
feat: add `spark optimize` command to optimize for production
kenjis Mar 7, 2024
b1bd41b
docs: add user guide
kenjis Mar 7, 2024
8d6d6f8
feat: add error handling
kenjis Mar 7, 2024
4302753
fix: FileLocatorCach is not removed if $locatorCacheEnabled is alread…
kenjis Mar 7, 2024
46e3348
docs: add section for "spark optimize"
kenjis Mar 8, 2024
1a9dfab
Merge remote-tracking branch 'upstream/develop' into 4.5
kenjis Mar 27, 2024
8e1ef75
test: refactor test code
kenjis Mar 26, 2024
39ada81
test: add tests for escapeIdentifiers()
kenjis Mar 26, 2024
371299e
feat: add escapeIdentifier() method
kenjis Mar 26, 2024
712ab9c
feat: createDatabase() and dropDatabase() supports database name with…
kenjis Mar 26, 2024
11e23a4
feat: tableExists() supports database name with dots
kenjis Mar 26, 2024
7c2b4e2
docs: add PHPDoc types
kenjis Mar 26, 2024
fe26efe
fix: add missing $sql
kenjis Mar 26, 2024
591b971
chore: update phpstan-baseline
kenjis Mar 26, 2024
c8a92fb
fix: remove unneeded escape
kenjis Mar 27, 2024
41a48ec
fix: add SQLSRV\Forge::createDatabase()
kenjis Mar 27, 2024
927a829
docs: add user guide
kenjis Mar 27, 2024
6a552e0
docs: add since v4.5.0 db names with dots are supported
kenjis Mar 28, 2024
0e6bd76
Merge remote-tracking branch 'upstream/develop' into 4.5
kenjis Mar 28, 2024
9e10860
config: add charset and DBCollat for database.tests
kenjis Mar 26, 2024
33d7d2a
Merge pull request #8664 from kenjis/feat-database-name-with-dot
kenjis Mar 28, 2024
e131c46
Merge pull request #8662 from kenjis/update-env
kenjis Mar 28, 2024
301ffb8
Merge pull request #8610 from kenjis/feat-add-spark-optimize
kenjis Mar 28, 2024
9820c31
Merge remote-tracking branch 'upstream/develop' into 4.5
kenjis Mar 28, 2024
f413b23
docs: improve upgrade instruction
kenjis Mar 29, 2024
00896cf
feat: environment-specific Config\Security::$redirect
kenjis Mar 29, 2024
5150c45
Merge remote-tracking branch 'upstream/develop' into 4.5
kenjis Mar 29, 2024
96ce795
Merge remote-tracking branch 'origin/develop' into 4.5
kenjis Mar 29, 2024
de655f4
refactor: add declare(strict_types=1)
kenjis Mar 30, 2024
492425a
fix: TypeError in Filters
kenjis Mar 30, 2024
f7c46dd
test: update FiltersTest assertion
kenjis Mar 30, 2024
cceb1e8
test: update ConfigCheckTest assertions
kenjis Mar 30, 2024
879d002
Merge pull request #8682 from kenjis/fix-BadRequestException-strict_t…
kenjis Mar 30, 2024
ee8e117
Merge pull request #8683 from kenjis/fix-Filters-4.5
kenjis Mar 30, 2024
0dd758c
Add support for Faker modifiers
paulbalandan Mar 28, 2024
be5e8a2
Add tests
paulbalandan Mar 28, 2024
31afcfa
Add documentation
paulbalandan Mar 28, 2024
62bcfa8
Merge pull request #8649 from kenjis/feat-cors
kenjis Mar 30, 2024
ebadd4c
Merge pull request #8672 from kenjis/docs-upgrade-450-auto-routing-le…
kenjis Mar 30, 2024
3574196
Merge pull request #8671 from paulbalandan/fabricator-modifiers
kenjis Mar 30, 2024
0bab68b
Merge pull request #8673 from kenjis/config-Security-redirect
kenjis Mar 30, 2024
aea4197
Merge remote-tracking branch 'upstream/develop' into 4.5
kenjis Mar 31, 2024
c174fdb
refactor: remove inappropriate default values
kenjis Mar 31, 2024
03b406b
docs: remove line breaks
kenjis Apr 1, 2024
9e07476
docs: add sample db config as comments
kenjis Apr 1, 2024
ad86ac0
docs: deprecate BaseConnection::$strictOn
kenjis Apr 1, 2024
8cd8d7c
docs: add changelog
kenjis Apr 1, 2024
8b7dfcb
Merge remote-tracking branch 'upstream/develop' into 4.5
kenjis Apr 2, 2024
2c2b3cd
Merge pull request #8693 from kenjis/refactor-db-properties
kenjis Apr 2, 2024
2975508
Merge remote-tracking branch 'upstream/develop' into 4.5
kenjis Apr 2, 2024
4567010
docs: add section "Routing"
kenjis Apr 3, 2024
91007ed
docs: move item in Others to Libraries
kenjis Apr 3, 2024
2be1a1c
docs: chaneg item order in Others
kenjis Apr 3, 2024
f55d781
docs: move important sections up
kenjis Apr 3, 2024
660ce93
docs: add PHPUnit requirement change
kenjis Apr 3, 2024
8757ca3
Merge remote-tracking branch 'upstream/develop' into 4.5
kenjis Apr 3, 2024
e1f1450
docs: add new features in 4.5
kenjis Apr 4, 2024
ff7c020
Merge pull request #8699 from kenjis/docs-reorganize-changelog-450
kenjis Apr 5, 2024
6cf6f93
feat: `spark config:check` shows Config Caching state
kenjis Apr 5, 2024
6b80f3d
docs: update user guide
kenjis Apr 5, 2024
e78c929
Merge remote-tracking branch 'upstream/develop' into 4.5
kenjis Apr 5, 2024
c3817a6
Merge pull request #8710 from kenjis/update-security.rst-4.5
kenjis Apr 5, 2024
0cab3e5
Merge pull request #8711 from kenjis/feat-config-check-shows-config-c…
kenjis Apr 5, 2024
2f3cc3d
Merge remote-tracking branch 'upstream/develop' into 4.5
kenjis Apr 5, 2024
b5a05a0
chore: change for upgrade to PHP 8.1
kenjis Dec 21, 2023
e25bc7e
refactor: run rector
kenjis Feb 25, 2024
93bb672
docs: restore comments that are deleted by rector
kenjis Feb 25, 2024
b3d844e
style: add space after !
kenjis Feb 25, 2024
caa1b3d
style: tweaks constructors
kenjis Feb 25, 2024
e843fec
refactor: run rector (2nd time)
kenjis Feb 25, 2024
91cad9e
test: remove invalid return never
kenjis Mar 30, 2024
b15ba48
chore: vendor/bin/phpstan analyze --generate-baseline phpstan-baselin…
kenjis Mar 30, 2024
aaa37ad
chore: skip FatalLocator in ReturnNeverTypeRector
kenjis Mar 30, 2024
a2f9b2b
docs: add CI4 features to "OWASP API Security Top 10 2023"
kenjis Apr 6, 2024
53d86e4
Merge pull request #8715 from kenjis/update-security.rst-4.5
kenjis Apr 6, 2024
1e00416
Merge remote-tracking branch 'upstream/develop' into 4.5
kenjis Apr 6, 2024
812302e
Merge remote-tracking branch 'upstream/develop' into 4.5
kenjis Apr 6, 2024
d01b3a6
Merge remote-tracking branch 'origin/develop' into 4.5
kenjis Apr 7, 2024
77cbf2c
Merge pull request #8354 from kenjis/rector-upgrade-php81-CI45
kenjis Apr 7, 2024
fc989b1
chore: update PHPUnit to 10
kenjis Oct 20, 2023
041cd7a
test: rename abtract classname for PHPUnit10
kenjis Oct 21, 2023
e360bed
chore: update phpunit.xml.dist for PHPUnit10
kenjis Oct 21, 2023
3434262
chore: update gitignore for PHPUnit10
kenjis Oct 21, 2023
9568dc9
test: update PHPUnit error message for PHPUnit10
kenjis Oct 21, 2023
18d6a84
style: break long line
kenjis Oct 21, 2023
8b137fb
chore: update nexusphp/tachycardia
kenjis Oct 20, 2023
bec9e6d
chore: change config section order
kenjis Oct 27, 2023
38d4aa7
test: workaround for errors on PHPUnit 10 and PHP 8.3
kenjis Feb 26, 2024
100ea8a
chore: change output dir for coverage.txt
kenjis Mar 5, 2024
5bf6de9
fix: update toString() params
kenjis Mar 5, 2024
21e99b5
test: workaround for errors on PHPUnit 10 and PHP 8.3
kenjis Mar 5, 2024
a0849d5
test: fix test for error handling
kenjis Mar 5, 2024
bf733f3
test: fix CommonFunctionsTest::testTraceWithCSP()
kenjis Mar 5, 2024
625d42b
test: add type definitions
kenjis Apr 2, 2024
7fe8996
chore: vendor/bin/phpstan analyze --generate-baseline phpstan-baselin…
kenjis Apr 2, 2024
9e009e9
chore: update PHPUnit version
kenjis Apr 2, 2024
5c45ef1
Merge pull request #8069 from kenjis/update-phpunit-10
kenjis Apr 7, 2024
7188805
Merge pull request #8720 from codeigniter4/4.5
kenjis Apr 7, 2024
bf5da9a
docs: fix merge mistake in "Deployment to Shared Hosting Services"
kenjis Apr 7, 2024
8fd2799
Merge pull request #8721 from kenjis/docs-fix-deployment-to-shared-ho…
kenjis Apr 7, 2024
8460b46
Prep for 4.5.0 release
kenjis Apr 7, 2024
7d44d6a
docs: update warning
kenjis Apr 7, 2024
020bd63
docs: add highlights
kenjis Apr 7, 2024
4fdcbcf
docs: fix link anchor text
kenjis Apr 7, 2024
8d1f2cd
docs: fix typo
kenjis Apr 7, 2024
25aab3e
docs: add missing Config files to "Content Changes"
kenjis Apr 7, 2024
37b5ca0
Merge pull request #8722 from kenjis/release-4.5.0
kenjis Apr 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/deploy-userguide-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
php-version: '8.1'
coverage: none

# Build the latest User Guide
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/reusable-coveralls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ jobs:
vendor/bin/phpcov merge --clover build/logs/clover.xml build/cov
- name: Upload coverage to Coveralls
run: vendor/bin/php-coveralls --verbose --exclude-no-stmt --ansi
run: |
composer global require php-coveralls/php-coveralls
php-coveralls --verbose --exclude-no-stmt --ansi
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/test-coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
fail-fast: false
matrix:
php-version:
- '7.4'
- '8.0'
- '8.1'
- '8.2'

steps:
- name: Checkout
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-phpcpd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
php-version: '8.1'
tools: phpcpd
extensions: dom, mbstring

Expand All @@ -57,4 +57,6 @@ jobs:
--exclude system/Debug/Exceptions.php
--exclude system/HTTP/SiteURI.php
--exclude system/Validation/Rules.php
--exclude system/Autoloader/Autoloader.php
--exclude system/Config/Filters.php
-- app/ public/ system/
12 changes: 2 additions & 10 deletions .github/workflows/test-phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
steps:
- id: coverage-php-version
run: |
echo "version=8.1" >> $GITHUB_OUTPUT
echo "version=8.2" >> $GITHUB_OUTPUT

sanity-tests:
name: Others
Expand All @@ -56,8 +56,6 @@ jobs:
strategy:
matrix:
php-version:
- '7.4'
- '8.0'
- '8.1'
- '8.2'
- '8.3'
Expand Down Expand Up @@ -87,8 +85,6 @@ jobs:
fail-fast: false
matrix:
php-version:
- '7.4'
- '8.0'
- '8.1'
- '8.2'
- '8.3'
Expand All @@ -101,7 +97,7 @@ jobs:
mysql-version:
- '8.0'
include:
- php-version: '7.4'
- php-version: '8.1'
db-platform: MySQLi
mysql-version: '5.7'
- php-version: '8.3'
Expand Down Expand Up @@ -130,8 +126,6 @@ jobs:
strategy:
matrix:
php-version:
- '7.4'
- '8.0'
- '8.1'
- '8.2'
- '8.3'
Expand Down Expand Up @@ -160,8 +154,6 @@ jobs:
strategy:
matrix:
php-version:
- '7.4'
- '8.0'
- '8.1'
- '8.2'
- '8.3'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-rector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-versions: ['7.4', '8.0']
php-versions: ['8.1', '8.3']
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,6 @@ nb-configuration.xml
/results/
/phpunit*.xml
/.phpunit.*.cache
/.phpunit.cache

/.php-cs-fixer.php
13 changes: 5 additions & 8 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,10 @@
'[email protected]'
);

// @TODO: remove this check when support for PHP 7.4 is dropped
if (PHP_VERSION_ID >= 80000) {
$config
->registerCustomFixers(FixerGenerator::create('vendor/nexusphp/cs-config/src/Fixer', 'Nexus\\CsConfig\\Fixer'))
->setRules(array_merge($config->getRules(), [
NoCodeSeparatorCommentFixer::name() => true,
]));
}
$config
->registerCustomFixers(FixerGenerator::create('vendor/nexusphp/cs-config/src/Fixer', 'Nexus\\CsConfig\\Fixer'))
->setRules(array_merge($config->getRules(), [
NoCodeSeparatorCommentFixer::name() => true,
]));

return $config;
13 changes: 5 additions & 8 deletions .php-cs-fixer.no-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,10 @@

$config = Factory::create(new CodeIgniter4(), $overrides, $options)->forProjects();

// @TODO: remove this check when support for PHP 7.4 is dropped
if (PHP_VERSION_ID >= 80000) {
$config
->registerCustomFixers(FixerGenerator::create('vendor/nexusphp/cs-config/src/Fixer', 'Nexus\\CsConfig\\Fixer'))
->setRules(array_merge($config->getRules(), [
NoCodeSeparatorCommentFixer::name() => true,
]));
}
$config
->registerCustomFixers(FixerGenerator::create('vendor/nexusphp/cs-config/src/Fixer', 'Nexus\\CsConfig\\Fixer'))
->setRules(array_merge($config->getRules(), [
NoCodeSeparatorCommentFixer::name() => true,
]));

return $config;
13 changes: 5 additions & 8 deletions .php-cs-fixer.user-guide.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,10 @@

$config = Factory::create(new CodeIgniter4(), $overrides, $options)->forProjects();

// @TODO: remove this check when support for PHP 7.4 is dropped
if (PHP_VERSION_ID >= 80000) {
$config
->registerCustomFixers(FixerGenerator::create('vendor/nexusphp/cs-config/src/Fixer', 'Nexus\\CsConfig\\Fixer'))
->setRules(array_merge($config->getRules(), [
NoCodeSeparatorCommentFixer::name() => true,
]));
}
$config
->registerCustomFixers(FixerGenerator::create('vendor/nexusphp/cs-config/src/Fixer', 'Nexus\\CsConfig\\Fixer'))
->setRules(array_merge($config->getRules(), [
NoCodeSeparatorCommentFixer::name() => true,
]));

return $config;
132 changes: 132 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,137 @@
# Changelog

## [v4.5.0](https://github.com/codeigniter4/CodeIgniter4/tree/v4.5.0) (2024-04-07)
[Full Changelog](https://github.com/codeigniter4/CodeIgniter4/compare/v4.4.8...v4.5.0)

### Breaking Changes

* refactor: always use multiple filters by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7903
* fix: update psr/log to v2 and fix Logger interface by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7967
* fix: incorrect return type for Model::objectToRawArray() by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7986
* fix: filter exec order by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7955
* refactor: Remove deprecated Config\Config by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8016
* fix: `FileLocator::findQualifiedNameFromPath()` behavior by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8010
* refactor: remove deprecated methods in Model by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8032
* fix: route options are not merged (outer filter is merged with inner filter) by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8033
* fix: route options are not merged (inner filter overrides outer filter) by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7981
* feat: FileLocator caching by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8017
* refactor: remove deprecated properties and methods in CodeIgniter class by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8050
* fix: make Factories final by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8056
* refactor: remove deprecated test classes by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8057
* refactor: make IncomingRequest::$uri protected by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8067
* refactor: remove deprecated spark commands by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8086
* refactor: remove deprecated Request::isValidIP() by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8090
* fix: set_cookie() $expire type by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8080
* fix: remove traditional validation rule param types (1/2) by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8078
* fix: filters are executed when controller does not exist with Auto Routing (Legacy). by @ping-yee in https://github.com/codeigniter4/CodeIgniter4/pull/7925
* fix: remove traditional validation rule param types (2/2) by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8124
* refactor: remove deprecated ModelFactory by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8139
* refactor: remove deprecated properties in Response by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8142
* fix: remove deprecated upper functionality in `Request::getMethod()` by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8186
* feat: new Required Filters by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8053
* refactor: remove deprecated CastException exception by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8469
* refactor: remove deprecated MockSecurityConfig by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8472
* refactor: remove deprecated CodeIgniter\Entity by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8497
* refactor: remove deprecated Cache\Exceptions\ExceptionInterface by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8498
* fix: API\ResponseTrait can't return string as JSON by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8490
* feat: Validation::run() accepts DB connection by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8499
* feat: 404 Override sets 404 by default by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8535
* refactor: remove deprecated const SPARKED by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8559
* refactor: remove deprecated BaseService::discoverServices() by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8589
* fix: move Kint loading to Autoloader by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8603
* feat: add Boot class by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8604

### Fixed Bugs

* fix: error on `Config\Kint` with Config Caching by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8003
* fix: route key lowercase HTTP verbs by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8235
* fix: use `addHeader()` by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8240
* fix: QueryBuilder limit(0) bug by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8280
* fix: SQLite3 may not throw DatabaseException by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8467
* [4.5] fix: DEBUG-VIEW comments are not output by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8523
* [4.5] fix: $db->dateFormat merge by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8539
* [4.5] fix: spark does not work with composer install --no-dev by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8534
* [4.5] fix: Composer autoload.psr4 by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8569
* [4.5] fix: errors when not updating Config\Feature by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8570
* [4.5] fix: TypeError in Filters by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8683

### New Features

* feat: Language translations finder and update by @neznaika0 in https://github.com/codeigniter4/CodeIgniter4/pull/7896

### Enhancements

* feat: domparser - ability to write more advanced expressions by @michalsn in https://github.com/codeigniter4/CodeIgniter4/pull/7946
* feat: [Validation] Callable Rules by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7933
* perf: autoloader by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8005
* feat: db:table shows db config by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7972
* feat: add `{memory_usage}` replacement by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8008
* perf: replace $locator->getClassname() with findQualifiedNameFromPath() by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8012
* feat: add Method/Route logging in exceptionHandler() by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8108
* feat: add `config:check` command to check Config vaules by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8110
* feat: one generator command could have multiple views by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8119
* feat: improve CLI input testability by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7978
* feat: add ArrayHelper::dotKeyExists() by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8131
* feat: add CSP clearDirective() to clear existing directive by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8220
* feat: [Validation] add `field_exists` rule by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8123
* feat: add Message::addHeader() to add header with the same name by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8194
* feat: `spark filter:check` shows "Required Filters" by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8236
* feat: [Commands] `lang:find` show bad keys when scanning (v2) by @neznaika0 in https://github.com/codeigniter4/CodeIgniter4/pull/8285
* feat: add `--dbgroup` option to `spark db:table` by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8292
* feat: [Auto Routing Improved] add option to translate uri to camel case by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8321
* feat: `spark routes` shows "Required Filters" by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8237
* feat: HTTP method-aware web page caching by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8364
* feat: `spark make:test` creates test files in `/tests/` directory v2 by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8388
* feat: [Routing] add option to pass multiple URI segments to one Controller parameter by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8348
* feat: add DataConverter to convert types by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8230
* feat: [Model] add option $updateOnlyChanged by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8455
* feat: add event points for spark commands by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8496
* feat: 404 controller also can get PageNotFoundException message by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8491
* feat: add DB config `dateFormat` to provide default date/time formats by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8525
* feat: use $db->dateFormat in Model by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8538
* feat: permit __invoke() method as Controller default method by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8533
* feat: add Model field casting by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8243
* feat: add spark command to check php.ini by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8581
* feat: improve Redis Session by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8578
* feat: add Config\Optimize by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8605
* feat: support database name with dots by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8664
* feat: add `spark optimize` command by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8610
* feat: add CORS filter by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8649
* feat: Support faker modifiers on Fabricator by @paulbalandan in https://github.com/codeigniter4/CodeIgniter4/pull/8671
* feat: environment-specific Config\Security::$redirect by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8673
* feat: `spark config:check` detects Config Caching by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8711

### Refactoring

* Drop PHP 7.4 support by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7924
* [4.5] refactor: remove unused `use` in Model by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8045
* [4.5] refactor: remove BaseModel assert() by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8046
* [4.5] refactor: Filters by rector by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8071
* perf: defer instantiation of Validation in Model by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8087
* refactor: fix types by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8091
* refactor: move ArrayHelper class by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8130
* [4.5] refactor: fix types by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8138
* refactor: fix param types by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8175
* refactor: Validation rule field_exists by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8242
* refactor: `TestResponse` is now a class of its own by @paulbalandan in https://github.com/codeigniter4/CodeIgniter4/pull/8264
* refactor: fix TypeError in strict mode by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8270
* refactor: add `declare(strict_types=1)` by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8072
* refactor: remove deprecated Controller::loadHelpers() by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8286
* refactor: remove deprecated methods in Security by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8287
* refactor: HTTP verbs in Router by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8317
* refactor: remove unused exception classes by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8468
* [4.5] refactor: add `declare(strict_types=1)` to ForgeModifyColumnTest by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8502
* [4.5] refactor: use local variables in Model by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8565
* refactor: remove unnecessary BaseService::$services assignment by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8609
* perf: add Factories::get() v2 by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8600
* perf: add Services::get() by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8607
* refactor: remove deprecated items in Request by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8617
* refactor: followup performance `service()` by @ddevsr in https://github.com/codeigniter4/CodeIgniter4/pull/8623
* [4.5] refactor: add declare(strict_types=1) in BadRequestException by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8682
* refactor: DB config properties by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8693
* refactor: upgrade to PHP 8.1 with rector by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8354
* refactor: update PHPUnit to 10 by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8069

## [v4.4.8](https://github.com/codeigniter4/CodeIgniter4/tree/v4.4.8) (2024-04-07)
[Full Changelog](https://github.com/codeigniter4/CodeIgniter4/compare/v4.4.7...v4.4.8)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Made with [contrib.rocks](https://contrib.rocks).

## Server Requirements

PHP version 7.4 or higher is required, with the following extensions installed:
PHP version 8.1 or higher is required, with the following extensions installed:

- [intl](http://php.net/manual/en/intl.requirements.php)
- [mbstring](http://php.net/manual/en/mbstring.installation.php)
Expand Down
2 changes: 1 addition & 1 deletion admin/framework/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Please read the [*Contributing to CodeIgniter*](https://github.com/codeigniter4/

## Server Requirements

PHP version 7.4 or higher is required, with the following extensions installed:
PHP version 8.1 or higher is required, with the following extensions installed:

- [intl](http://php.net/manual/en/intl.requirements.php)
- [mbstring](http://php.net/manual/en/mbstring.installation.php)
Expand Down
Loading
Loading