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.6 Ready code #9345

Merged
merged 155 commits into from
Dec 28, 2024
Merged
Show file tree
Hide file tree
Changes from 154 commits
Commits
Show all changes
155 commits
Select commit Hold shift + click to select a range
3dfd4bc
docs: fix param types
kenjis Sep 6, 2024
2ef57ab
docs: decorate text
kenjis Sep 6, 2024
b5b2e57
docs: add changelog and upgrade for v4.5.6
kenjis Sep 7, 2024
ee9ae5f
docs: add note
kenjis Sep 7, 2024
2492078
docs: move item
kenjis Sep 7, 2024
cb4ba98
docs: move section
kenjis Sep 7, 2024
d7bedff
docs: use GitHub markdown note format
kenjis Sep 7, 2024
ce7f591
Merge pull request #9175 from kenjis/docs-changelog-4.5.6
kenjis Sep 7, 2024
268156c
Merge pull request #9171 from kenjis/docs-url_helper.rst
kenjis Sep 7, 2024
0a6b39d
Merge pull request #9176 from kenjis/update-RELEASE.md
kenjis Sep 8, 2024
22cf15e
docs: improve description for Migration File Names
kenjis Sep 8, 2024
7113792
docs: add link to section
kenjis Sep 8, 2024
e53c32c
docs: fix typo
kenjis Sep 8, 2024
791fe2f
fix: auto_link() converts invalid string like "://codeigniter.com"
kenjis Sep 8, 2024
94fe31f
refactor: break long lines
kenjis Sep 8, 2024
647f4e7
Merge pull request #9179 from kenjis/improve-migration-file-names
kenjis Sep 9, 2024
3776790
chore(deps-dev): update rector/rector requirement from 1.2.4 to 1.2.5
dependabot[bot] Sep 9, 2024
0a9835b
Fix phpstan
samsonasik Sep 9, 2024
b678930
Merge pull request #9183 from codeigniter4/dependabot/composer/rector…
samsonasik Sep 9, 2024
45a002f
refactor: enable TypedPropertyFromAssignsRector
samsonasik Sep 9, 2024
fe65154
docs: broken link htmx ajax-header
ddevsr Sep 10, 2024
092d85b
Merge pull request #9184 from samsonasik/refactor-typed-property
samsonasik Sep 10, 2024
3f29f28
refactor: enable ClosureReturnTypeRector
samsonasik Sep 10, 2024
8ecbf0d
Fix cs
samsonasik Sep 10, 2024
1528d3d
Merge pull request #9187 from samsonasik/refactor-enable-closure-return
samsonasik Sep 10, 2024
36f9c2f
Merge pull request #9185 from ddevsr/broken-link-htmx-ajax
kenjis Sep 12, 2024
7d2d81c
docs: fix Project Files changes
kenjis Sep 13, 2024
d49d700
Merge pull request #9180 from kenjis/fix-auto_link-bug
kenjis Sep 13, 2024
d6850d4
chore: update psr/log to 3.0.2
kenjis Sep 13, 2024
bd3ee0f
Merge pull request #9188 from kenjis/fix-upgrade_455.rst
kenjis Sep 17, 2024
caf314b
Merge pull request #9189 from kenjis/update-psr-log-3.0.2
kenjis Sep 17, 2024
60aa8e3
docs: improve Factories
ddevsr Sep 9, 2024
b1d044e
fix: only v4.4.x config must set manually
ddevsr Sep 10, 2024
153922e
Merge pull request #9182 from ddevsr/docs-factories
kenjis Sep 19, 2024
a28b4bc
refactor: remove unnecessary `is_countable()` check in `getMethodParams`
datamweb Oct 1, 2024
86ddfaa
refactor: add more readonly property definitions on AutoRouteCollecto…
samsonasik Oct 2, 2024
ba8e97a
Merge pull request #9206 from datamweb/refctor-RouteCollection
kenjis Oct 3, 2024
6d3de6d
Merge pull request #9210 from samsonasik/refactor-more-readonly
samsonasik Oct 3, 2024
d385aa0
chore(deps-dev): update rector/rector requirement from 1.2.5 to 1.2.6
dependabot[bot] Oct 3, 2024
cb55765
Merge pull request #9214 from codeigniter4/dependabot/composer/rector…
samsonasik Oct 3, 2024
57e8be9
refactor: allow `null` for `$key` property to handle buffer cleanup i…
datamweb Oct 3, 2024
118c2c4
Merge pull request #9207 from datamweb/refctor-SodiumHandler
kenjis Oct 3, 2024
8f4b0da
chore(deps-dev): update rector/rector requirement from 1.2.6 to 1.2.7
dependabot[bot] Oct 14, 2024
c8b9ea4
fix: change session start log level (#9221)
element-code Oct 15, 2024
7c8216f
Refactor: enable Rector Code Quality level, apply level 9 for Simplif…
samsonasik Oct 15, 2024
bb650e1
fix invalid doc and regenerate baseline
samsonasik Oct 15, 2024
81e6289
Merge pull request #9226 from codeigniter4/dependabot/composer/rector…
samsonasik Oct 15, 2024
f53ae75
chore(deps-dev): update rector/rector requirement from 1.2.7 to 1.2.8
dependabot[bot] Oct 18, 2024
4284b6b
Merge pull request #9229 from codeigniter4/dependabot/composer/rector…
samsonasik Oct 18, 2024
c7ab0d1
Merge pull request #9227 from samsonasik/refactor-enable-rector-code-…
samsonasik Oct 19, 2024
28d7607
fix: pin python version for sphinx (#9224)
michalsn Oct 20, 2024
ff2f756
refactor: enable rector code quality level 14
samsonasik Oct 20, 2024
ba62eae
Merge pull request #9232 from samsonasik/refactor-enable-rector-code-…
samsonasik Oct 21, 2024
4a7fbd1
fix: `getValidated()` when validation multiple asterisk (#9220)
ddevsr Oct 22, 2024
11d9721
refactor: cleanup `DatabaseHandler::gc()` for session (#9230)
grimpirate Oct 22, 2024
70816be
refactor: Apply code quality level 15 for Rector
samsonasik Oct 28, 2024
8522a37
Merge pull request #9243 from samsonasik/refactor-apply-code-quality-…
samsonasik Oct 28, 2024
dede747
refactor: enable SimplifyBoolIdenticalTrueRector
samsonasik Oct 30, 2024
3f8feaa
refactor: clean up parentheses on assign and ternary
samsonasik Oct 30, 2024
caf4d53
Merge pull request #9244 from samsonasik/refactor-enable-simplify-boo…
samsonasik Oct 30, 2024
3d0f9f2
fix: Parser - Equal key name replace conflict (#9246)
CosDiabos Nov 3, 2024
fc19b69
fix: case-insensitivity in the `like()` method when in use with accen…
michalsn Nov 3, 2024
3435872
fix: TypeError for routes when translateURIDashes is enabled (#9209)
maniaba Nov 3, 2024
3e672fa
refactor: enable FlipTypeControlToUseExclusiveTypeRector
samsonasik Nov 4, 2024
65872e5
Merge pull request #9253 from samsonasik/refactor-enable-flip-type-co…
samsonasik Nov 5, 2024
9773ed1
chore(deps-dev): update rector/rector requirement from 1.2.8 to 1.2.9
dependabot[bot] Nov 5, 2024
e63774d
skip NarrowUnusedSetUpDefinedPropertyRector as buggy with default value
samsonasik Nov 5, 2024
a933bf7
run cs fix on rector.php
samsonasik Nov 5, 2024
52c74b5
Merge pull request #9257 from codeigniter4/dependabot/composer/rector…
samsonasik Nov 5, 2024
1781308
refactor: Move property to local variable on usage only in setUp() me…
samsonasik Nov 5, 2024
3f5d516
refactor: move comment from property to assign
samsonasik Nov 5, 2024
8628f12
refactor: regenerate phpstan baseline
samsonasik Nov 5, 2024
c7d012d
Merge pull request #9259 from samsonasik/refactor-move-property-to-lo…
samsonasik Nov 6, 2024
17d5669
refactor: flip assert and actuals value on tests
samsonasik Nov 8, 2024
91275ed
Merge pull request #9260 from samsonasik/refactor-flip-assert-actual
samsonasik Nov 8, 2024
aad4820
chore(deps-dev): update rector/rector requirement from 1.2.9 to 1.2.10
dependabot[bot] Nov 8, 2024
862cef6
enable skipped NarrowUnusedSetUpDefinedPropertyRector
samsonasik Nov 9, 2024
3346b6f
Merge pull request #9261 from codeigniter4/dependabot/composer/rector…
samsonasik Nov 9, 2024
583e7b6
refactor: up performance `service()`
neznaika0 Nov 1, 2024
ea38947
fix: Update the typing
neznaika0 Nov 5, 2024
a9fa3d0
Merge pull request #9248 from neznaika0/fix-call-as-service
samsonasik Nov 9, 2024
a37136a
fix: Allows get by numeric key
neznaika0 Nov 3, 2024
8a1ca7b
docs: Update changelog
neznaika0 Nov 3, 2024
3422965
refactor: Add indexes
neznaika0 Nov 4, 2024
2642a9b
docs: Clarify the log
neznaika0 Nov 4, 2024
b64aeef
refactor: Apply code quality level 24 for Rector
samsonasik Nov 11, 2024
c8b3804
refactor: use compare empty array on Forge on keys property
samsonasik Nov 12, 2024
1e9483c
Merge pull request #9267 from samsonasik/use-compare-empty-array
samsonasik Nov 12, 2024
9b6de62
Merge pull request #9264 from samsonasik/refactor-apply-code-quality-…
samsonasik Nov 12, 2024
fcf37d6
Merge pull request #9251 from neznaika0/fix-fetch-global-request
samsonasik Nov 13, 2024
4ca4204
fix: curl request crashes with params that give an int once hexed. (#…
ping-yee Nov 15, 2024
42801e7
docs: allow boolean values in the model for PHPStan (#9276)
ping-yee Nov 17, 2024
417cbd2
refactor: Fix `phpstan` errors related to `Autoloader` (#9249)
neznaika0 Nov 17, 2024
bb5f925
fix: respect complex language strings when using validation (#9201)
michalsn Nov 17, 2024
27ae8bb
fix: `DownloadResponse` cache headers (#9237)
michalsn Nov 17, 2024
55c3998
fix: extend the curl header handle.
ping-yee Nov 18, 2024
d1d5b7f
fix: The function setJSON also accepts objects
JulianAtkins Nov 18, 2024
978ca3d
refactor: remove unused (array) cast on array
samsonasik Nov 21, 2024
713c869
Merge pull request #9288 from samsonasik/refactor-remove-cast-is-array
samsonasik Nov 21, 2024
5e14d16
docs: add the change log.
ping-yee Nov 28, 2024
72f6a78
Merge pull request #9287 from JulianAtkins/develop
paulbalandan Nov 29, 2024
979ba49
Merge pull request #9285 from ping-yee/8526_curlRequest
paulbalandan Nov 29, 2024
74d3b28
refactor: use `Superglobals` in setting 'REQUEST_METHOD' in `FeatureT…
paulbalandan Nov 29, 2024
700ba29
Merge pull request #9294 from paulbalandan/phpstan-1.12
paulbalandan Nov 29, 2024
676b024
docs: Small typos in libraries/pagination.rst
obozdag May 7, 2024
d81f4c5
Merge pull request #8863 from obozdag/patch-4
paulbalandan Nov 30, 2024
99b1031
fix: fix the reconnect function.
ping-yee Nov 14, 2024
ace329f
fix: rebase.
ping-yee Nov 18, 2024
0c9799f
docs: change the change log.
ping-yee Nov 28, 2024
17fa4d0
Merge pull request #9279 from ping-yee/9043_pg_ping()
paulbalandan Nov 30, 2024
4713282
test: refactor `ConfigCheckTest`
paulbalandan Nov 30, 2024
02e75eb
refactor: use `baseURI` instead of `base_uri`
paulbalandan Nov 30, 2024
9bbe30f
delete useless test
paulbalandan Nov 30, 2024
0b2c6f8
Merge pull request #9295 from paulbalandan/config-check
paulbalandan Dec 1, 2024
4c8b782
Merge pull request #9296 from paulbalandan/curl-base-uri
paulbalandan Dec 1, 2024
695829c
Update create_news_items/001.php (#9297)
TechnoKaa Dec 2, 2024
8cf0fa1
docs: Fix $indexPage param explanations in helpers/html_helper.rst (#…
obozdag Dec 2, 2024
0d3c3b1
docs: update note about required filters (#9298)
michalsn Dec 4, 2024
21b8877
refactor: Apply code quality level 27 for rector
samsonasik Dec 5, 2024
37e6329
refactor: skip CompactToVariablesRector
samsonasik Dec 7, 2024
608b869
refactor: enable level 31: ThrowWithPreviousExceptionRector
samsonasik Dec 7, 2024
124a7e6
Merge pull request #9303 from samsonasik/refactor-apply-code-quality-…
samsonasik Dec 7, 2024
dae379f
refactor: fix `phpstan` signature for Closure (#9304)
neznaika0 Dec 10, 2024
539436f
fix: primary key mapping in the model for the entity (#9307)
michalsn Dec 11, 2024
107e2b3
refactor: rename `stdclass` to `stdClass`
paulbalandan Dec 11, 2024
2927788
refactor: fix `phpdoc.parseError` errors
paulbalandan Dec 11, 2024
be824e3
Merge pull request #9312 from paulbalandan/rename-stdclass-to-stdClass
samsonasik Dec 11, 2024
8fc60e7
Merge pull request #9313 from paulbalandan/fix-phpdoc-parse-error
samsonasik Dec 11, 2024
562ddf2
refactor: rename `controller` to `Controller`
paulbalandan Dec 11, 2024
64c8fce
refactor: fix `method.nameCase` errors
paulbalandan Dec 11, 2024
f5200b5
Merge pull request #9315 from paulbalandan/method-namecase
samsonasik Dec 11, 2024
0b0126c
Merge pull request #9314 from paulbalandan/rename-controller-to-Contr…
samsonasik Dec 11, 2024
c06d928
refactor: fix implicit array creation
paulbalandan Dec 11, 2024
e9bb603
Merge pull request #9316 from paulbalandan/implicit-array-creation
samsonasik Dec 11, 2024
9bc61b3
fix: check if defined `WRITEPATH` exists (#9317)
michalsn Dec 12, 2024
0f5de27
refactor: followup style variable array (#9319)
ddevsr Dec 12, 2024
94e57df
chore: preparation for PHPStan 2: remove CheckUseStatementsAfterLicen…
samsonasik Dec 13, 2024
6644b79
chore: fix ci run
samsonasik Dec 13, 2024
f0536a1
Merge pull request #9321 from samsonasik/chore-prepare-phpstan-2
samsonasik Dec 13, 2024
242745c
refactor: split phpstan-baseline into smaller files (#9299)
paulbalandan Dec 15, 2024
61881bd
refactor: upgrade to use phpstan 2 and rector 2 (#9322)
samsonasik Dec 15, 2024
17f7a9d
docs: phpdoc incorrect explanation regarding variable naming (#9326)
andifahruddinakas Dec 16, 2024
cc2dcee
docs: variable naming adjustments (#9324)
andifahruddinakas Dec 16, 2024
f48aa6f
refactor: fix `Forge::processIndexes()` for empty `$this->fields` (#9…
paulbalandan Dec 19, 2024
ab5536f
fix: Remove DB files after tests (#9192)
neznaika0 Dec 19, 2024
8fa419f
refactor: `Reflection*::setAccessible()` is now no-op in PHP 8.1 (#9331)
paulbalandan Dec 19, 2024
cc1b8f2
refactor: add `@throws RedirectException` in Controller::initControll…
paulbalandan Dec 19, 2024
6cbbf60
fix: handling binary data for prepared statement (#9337)
michalsn Dec 27, 2024
2114577
refactor: fix warning on new static usage
paulbalandan Dec 27, 2024
e363f47
Merge pull request #9342 from paulbalandan/new-static
samsonasik Dec 28, 2024
19ad2b9
refactor: fix used void return type (#9341)
paulbalandan Dec 28, 2024
8cff099
refactor: fix `phpstan` only boolean allowed (#9302)
neznaika0 Dec 28, 2024
ee4ee98
refactor: enable instanceof and strictBooleans rector set (#9339)
samsonasik Dec 28, 2024
6785d8f
Prep for 4.5.6 release (#9344)
paulbalandan Dec 28, 2024
ebb5bd7
chore: add branch-alias for `master` branch (#9346)
paulbalandan Dec 28, 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
  •  
  •  
  •  
10 changes: 7 additions & 3 deletions .github/workflows/deploy-distributables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,15 @@ jobs:
token: ${{ secrets.ACCESS_TOKEN }}
path: userguide

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install Sphinx
run: |
sudo apt install python3-sphinx
sudo pip3 install sphinxcontrib-phpdomain
sudo pip3 install sphinx_rtd_theme
python -m pip install --upgrade pip
pip install -r ./source/user_guide_src/requirements.txt

- name: Chmod
run: chmod +x ./source/.github/scripts/deploy-userguide
Expand Down
17 changes: 13 additions & 4 deletions .github/workflows/deploy-userguide-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,20 @@ jobs:
php-version: '8.1'
coverage: none

# Build the latest User Guide
- name: Build with Sphinx
uses: ammaraskar/sphinx-action@0.4
- name: Setup Python
uses: actions/setup-python@v5
with:
docs-folder: user_guide_src/
python-version: '3.12'

- name: Install Sphinx
run: |
python -m pip install --upgrade pip
pip install -r user_guide_src/requirements.txt

# Build the latest User Guide
- name: Build Docs with Sphinx
run: make html
working-directory: user_guide_src

- name: Add "Edit this page" links
run: |
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/reusable-coveralls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ jobs:
runs-on: ubuntu-22.04

steps:
- name: Checkout base branch for PR
if: github.event_name == 'pull_request'
uses: actions/checkout@v4
with:
ref: ${{ github.base_ref }}

- name: Checkout
uses: actions/checkout@v4

Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/reusable-phpunit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ jobs:
steps:
- name: Create database for MSSQL Server
if: ${{ inputs.db-platform == 'SQLSRV' }}
run: sqlcmd -S 127.0.0.1 -U sa -P 1Secure*Password1 -Q "CREATE DATABASE test"
run: sqlcmd -S 127.0.0.1 -U sa -P 1Secure*Password1 -Q "CREATE DATABASE test COLLATE Latin1_General_100_CS_AS_SC_UTF8"

- name: Install latest ImageMagick
if: ${{ contains(inputs.extra-extensions, 'imagick') }}
Expand All @@ -148,6 +148,12 @@ jobs:
sudo apt-get install -y gsfonts libmagickwand-dev imagemagick
sudo apt-get install --fix-broken

- name: Checkout base branch for PR
if: github.event_name == 'pull_request'
uses: actions/checkout@v4
with:
ref: ${{ github.base_ref }}

- name: Checkout
uses: actions/checkout@v4

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/reusable-serviceless-phpunit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ jobs:
sudo apt-get install -y imagemagick
sudo apt-get install --fix-broken

- name: Checkout base branch for PR
if: github.event_name == 'pull_request'
uses: actions/checkout@v4
with:
ref: ${{ github.base_ref }}

- name: Checkout
uses: actions/checkout@v4

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test-autoreview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ jobs:
name: Check normalized composer.json
runs-on: ubuntu-latest
steps:
- name: Checkout base branch for PR
if: github.event_name == 'pull_request'
uses: actions/checkout@v4
with:
ref: ${{ github.base_ref }}

- name: Checkout
uses: actions/checkout@v4

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test-coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ jobs:
- '8.3'

steps:
- name: Checkout base branch for PR
if: github.event_name == 'pull_request'
uses: actions/checkout@v4
with:
ref: ${{ github.base_ref }}

- name: Checkout
uses: actions/checkout@v4

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test-deptrac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ jobs:
name: Architectural Inspection
runs-on: ubuntu-22.04
steps:
- name: Checkout base branch for PR
if: github.event_name == 'pull_request'
uses: actions/checkout@v4
with:
ref: ${{ github.base_ref }}

- name: Checkout
uses: actions/checkout@v4

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test-phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ jobs:
strategy:
fail-fast: false
steps:
- name: Checkout base branch for PR
if: github.event_name == 'pull_request'
uses: actions/checkout@v4
with:
ref: ${{ github.base_ref }}

- name: Checkout
uses: actions/checkout@v4

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test-psalm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ jobs:
if: (! contains(github.event.head_commit.message, '[ci skip]'))

steps:
- name: Checkout base branch for PR
if: github.event_name == 'pull_request'
uses: actions/checkout@v4
with:
ref: ${{ github.base_ref }}

- name: Checkout
uses: actions/checkout@v4

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test-rector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ jobs:
matrix:
php-versions: ['8.1', '8.3']
steps:
- name: Checkout base branch for PR
if: github.event_name == 'pull_request'
uses: actions/checkout@v4
with:
ref: ${{ github.base_ref }}

- name: Checkout
uses: actions/checkout@v4

Expand Down
17 changes: 13 additions & 4 deletions .github/workflows/test-userguide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,19 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install Sphinx
run: |
python -m pip install --upgrade pip
pip install -r user_guide_src/requirements.txt

- name: Detect usage of tabs in RST files
run: php utils/check_tabs_in_rst.php

- uses: ammaraskar/sphinx-action@0.4
with:
docs-folder: user_guide_src
build-command: 'make html SPHINXOPTS="-W --keep-going -w /tmp/sphinx-log"'
- name: Build Docs with Sphinx
run: make html SPHINXOPTS="-W --keep-going -w /tmp/sphinx-log"
working-directory: user_guide_src
1 change: 1 addition & 0 deletions .php-cs-fixer.tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
'_support/View/Cells/multiplier.php',
'_support/View/Cells/colors.php',
'_support/View/Cells/addition.php',
'system/Database/Live/PreparedQueryTest.php',
])
->notName('#Foobar.php$#');

Expand Down
57 changes: 57 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,62 @@
# Changelog

## [v4.5.6](https://github.com/codeigniter4/CodeIgniter4/tree/v4.5.6) (2024-12-28)
[Full Changelog](https://github.com/codeigniter4/CodeIgniter4/compare/v4.5.5...v4.5.6)

### Fixed Bugs

* fix: auto_link() converts invalid strings like `://codeigniter.com` by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/9180
* fix: change session start log level by @element-code in https://github.com/codeigniter4/CodeIgniter4/pull/9221
* fix: `getValidated()` when validation multiple asterisk by @ddevsr in https://github.com/codeigniter4/CodeIgniter4/pull/9220
* fix: Parser - Equal key name replace conflict by @CosDiabos in https://github.com/codeigniter4/CodeIgniter4/pull/9246
* fix: case-insensitivity in the `like()` method when in use with accented characters by @michalsn in https://github.com/codeigniter4/CodeIgniter4/pull/9238
* fix: TypeError for routes when translateURIDashes is enabled by @maniaba in https://github.com/codeigniter4/CodeIgniter4/pull/9209
* fix: `fetchGlobal()` with numeric key by @neznaika0 in https://github.com/codeigniter4/CodeIgniter4/pull/9251
* fix: curl request crashes with params that give an int once hexed. by @ping-yee in https://github.com/codeigniter4/CodeIgniter4/pull/9198
* docs: allow boolean values in the model for PHPStan by @ping-yee in https://github.com/codeigniter4/CodeIgniter4/pull/9276
* fix: respect complex language strings when using validation by @michalsn in https://github.com/codeigniter4/CodeIgniter4/pull/9201
* fix: `DownloadResponse` cache headers by @michalsn in https://github.com/codeigniter4/CodeIgniter4/pull/9237
* docs: fix `@param` `ResponseInterface::setJSON()` also accepts objects by @JulianAtkins in https://github.com/codeigniter4/CodeIgniter4/pull/9287
* fix: [CURLRequest] body contains "HTTP/1.0 200 Connection established" by @ping-yee in https://github.com/codeigniter4/CodeIgniter4/pull/9285
* fix: `Postgre\Connection::reconnect()` `TypeError` in `pg_ping()` by @ping-yee in https://github.com/codeigniter4/CodeIgniter4/pull/9279
* fix: primary key mapping in the model for the entity by @michalsn in https://github.com/codeigniter4/CodeIgniter4/pull/9307
* fix: check if defined `WRITEPATH` exists by @michalsn in https://github.com/codeigniter4/CodeIgniter4/pull/9317
* fix: handling binary data for prepared statement by @michalsn in https://github.com/codeigniter4/CodeIgniter4/pull/9337

### Refactoring

* refactor: enable TypedPropertyFromAssignsRector by @samsonasik in https://github.com/codeigniter4/CodeIgniter4/pull/9184
* refactor: enable ClosureReturnTypeRector by @samsonasik in https://github.com/codeigniter4/CodeIgniter4/pull/9187
* refactor: remove unnecessary `is_countable()` check in `getMethodParams()` by @datamweb in https://github.com/codeigniter4/CodeIgniter4/pull/9206
* refactor: add more readonly property definitions on AutoRouteCollector and SiteURI by @samsonasik in https://github.com/codeigniter4/CodeIgniter4/pull/9210
* refactor: starter key handling in SodiumHandler by @datamweb in https://github.com/codeigniter4/CodeIgniter4/pull/9207
* refactor: enable rector code quality level 14 by @samsonasik in https://github.com/codeigniter4/CodeIgniter4/pull/9232
* refactor: cleanup `DatabaseHandler::gc()` for session by @grimpirate in https://github.com/codeigniter4/CodeIgniter4/pull/9230
* refactor: enable rector code quality level 15 by @samsonasik in https://github.com/codeigniter4/CodeIgniter4/pull/9243
* refactor: enable SimplifyBoolIdenticalTrueRector by @samsonasik in https://github.com/codeigniter4/CodeIgniter4/pull/9244
* refactor: enable FlipTypeControlToUseExclusiveTypeRector by @samsonasik in https://github.com/codeigniter4/CodeIgniter4/pull/9253
* refactor: flip assert and actual value position on tests by @samsonasik in https://github.com/codeigniter4/CodeIgniter4/pull/9260
* perf: Improve call as `service()` by @neznaika0 in https://github.com/codeigniter4/CodeIgniter4/pull/9248
* refactor: use compare empty array on Forge on keys property by @samsonasik in https://github.com/codeigniter4/CodeIgniter4/pull/9267
* refactor: Fix `phpstan` errors related to `Autoloader` by @neznaika0 in https://github.com/codeigniter4/CodeIgniter4/pull/9249
* refactor: use `Superglobals` in setting 'REQUEST_METHOD' in `FeatureT… by @paulbalandan in https://github.com/codeigniter4/CodeIgniter4/pull/9294
* refactor: use `baseURI` instead of `base_uri` by @paulbalandan in https://github.com/codeigniter4/CodeIgniter4/pull/9296
* refactor: Apply code quality level 31 for rector by @samsonasik in https://github.com/codeigniter4/CodeIgniter4/pull/9303
* refactor: rename `stdclass` to `stdClass` by @paulbalandan in https://github.com/codeigniter4/CodeIgniter4/pull/9312
* refactor: fix `phpDoc.parseError` errors by @paulbalandan in https://github.com/codeigniter4/CodeIgniter4/pull/9313
* refactor: fix `method.nameCase` errors by @paulbalandan in https://github.com/codeigniter4/CodeIgniter4/pull/9315
* refactor: rename `controller` to `Controller` by @paulbalandan in https://github.com/codeigniter4/CodeIgniter4/pull/9314
* refactor: fix implicit array creation by @paulbalandan in https://github.com/codeigniter4/CodeIgniter4/pull/9316
* refactor: follow up implicit variable array by @ddevsr in https://github.com/codeigniter4/CodeIgniter4/pull/9319
* refactor: split phpstan-baseline into smaller files by @paulbalandan in https://github.com/codeigniter4/CodeIgniter4/pull/9299
* refactor: upgrade to use phpstan 2 and rector 2 by @samsonasik in https://github.com/codeigniter4/CodeIgniter4/pull/9322
* refactor: fix `Forge::processIndexes()` for empty `$this->fields` by @paulbalandan in https://github.com/codeigniter4/CodeIgniter4/pull/9330
* refactor: `Reflection*::setAccessible()` is now no-op in PHP 8.1 by @paulbalandan in https://github.com/codeigniter4/CodeIgniter4/pull/9331
* refactor: add `@throws RedirectException` in `Controller::initController` by @paulbalandan in https://github.com/codeigniter4/CodeIgniter4/pull/9327
* refactor: fix warning on new static usage by @paulbalandan in https://github.com/codeigniter4/CodeIgniter4/pull/9342
* refactor: fix used void return type by @paulbalandan in https://github.com/codeigniter4/CodeIgniter4/pull/9341
* refactor: enable instanceof and strictBooleans rector set by @samsonasik in https://github.com/codeigniter4/CodeIgniter4/pull/9339

## [v4.5.5](https://github.com/codeigniter4/CodeIgniter4/tree/v4.5.5) (2024-09-07)
[Full Changelog](https://github.com/codeigniter4/CodeIgniter4/compare/v4.5.4...v4.5.5)

Expand Down
48 changes: 26 additions & 22 deletions admin/RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
- `4.y`: The next minor version. (e.g., `4.6`)
- `4.z`: The next next minor version. (e.g., `4.7`)

> [!NOTE]
> Copy this file, and replace the versions above with the actual versions.

## Merge `develop` branch into next minor version branch `4.y`

Before starting release process, if there are commits in `develop` branch that
Expand All @@ -35,6 +38,26 @@ If you release a new minor version.
"Branch protection rules" to the next minor version. E.g. `4.5` → `4.6`
* [ ] Delete the merged `4.y` branch (This closes all PRs to the branch)

## Preparation

Work off direct clones of the repos so the release branches persist for a time.

* [ ] Clone both **codeigniter4/CodeIgniter4** and **codeigniter4/userguide** and
resolve any necessary PRs
```console
rm -rf CodeIgniter4.bk userguide.bk
mv CodeIgniter4 CodeIgniter4.bk
mv userguide userguide.bk
git clone git@github.com:codeigniter4/CodeIgniter4.git
git clone git@github.com:codeigniter4/userguide.git
```
* [ ] Vet the **admin/** folders for any removed hidden files (Action deploy scripts
*do not remove these*)
```console
cd CodeIgniter4
git diff --name-status origin/master admin/
```

## Changelog

When generating the changelog each Pull Request to be included must have one of
Expand Down Expand Up @@ -65,33 +88,14 @@ the changelog.
Copy the resulting content into **CHANGELOG.md** and adjust the format to match
the existing content.

## Preparation

Work off direct clones of the repos so the release branches persist for a time.

* [ ] Clone both **codeigniter4/CodeIgniter4** and **codeigniter4/userguide** and
resolve any necessary PRs
```console
rm -rf CodeIgniter4.bk userguide.bk
mv CodeIgniter4 CodeIgniter4.bk
mv userguide userguide.bk
git clone git@github.com:codeigniter4/CodeIgniter4.git
git clone git@github.com:codeigniter4/userguide.git
```
* [ ] Vet the **admin/** folders for any removed hidden files (Action deploy scripts
*do not remove these*)
```console
cd CodeIgniter4
git diff --name-status origin/master admin/
```
* [ ] Merge any Security Advisory PRs in private forks

## Process

> **Note** Most changes that need noting in the User Guide and docs should have
> [!NOTE]
> Most changes that need noting in the User Guide and docs should have
> been included with their PR, so this process assumes you will not be
> generating much new content.

* [ ] Merge any Security Advisory PRs in private forks
* [ ] Replace **CHANGELOG.md** with the new version generated above
* [ ] Update **user_guide_src/source/changelogs/v4.x.x.rst**
* Remove the section titles that have no items
Expand Down
3 changes: 1 addition & 2 deletions admin/starter/tests/session/ExampleSessionTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php

use CodeIgniter\Test\CIUnitTestCase;
use Config\Services;

/**
* @internal
Expand All @@ -10,7 +9,7 @@ final class ExampleSessionTest extends CIUnitTestCase
{
public function testSessionSimple(): void
{
$session = Services::session();
$session = service('session');

$session->set('logged_in', 123);
$this->assertSame(123, $session->get('logged_in'));
Expand Down
3 changes: 1 addition & 2 deletions admin/starter/tests/unit/HealthTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

use CodeIgniter\Test\CIUnitTestCase;
use Config\App;
use Config\Services;
use Tests\Support\Libraries\ConfigReader;

/**
Expand All @@ -17,7 +16,7 @@ public function testIsDefinedAppPath(): void

public function testBaseUrlHasBeenSet(): void
{
$validation = Services::validation();
$validation = service('validation');

$env = false;

Expand Down
4 changes: 2 additions & 2 deletions app/Config/Events.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@
*/
if (CI_DEBUG && ! is_cli()) {
Events::on('DBQuery', 'CodeIgniter\Debug\Toolbar\Collectors\Database::collect');
Services::toolbar()->respond();
service('toolbar')->respond();
// Hot Reload route - for framework use on the hot reloader.
if (ENVIRONMENT === 'development') {
Services::routes()->get('__hot-reload', static function (): void {
service('routes')->get('__hot-reload', static function (): void {
(new HotReloader())->run();
});
}
Expand Down
2 changes: 1 addition & 1 deletion app/Config/Format.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@ class Format extends BaseConfig
*/
public function getFormatter(string $mime)
{
return Services::format()->getFormatter($mime);
return service('format')->getFormatter($mime);
}
}
Loading
Loading