Skip to content

4.3.7 Ready code #7750

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

Merged
merged 332 commits into from
Jul 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
332 commits
Select commit Hold shift + click to select a range
481b4c3
Merge pull request #7633 from kenjis/fix-docs-RedirectException-2
kenjis Jun 28, 2023
7d598e7
Merge pull request #7634 from kenjis/docs-force_https
kenjis Jun 28, 2023
7740034
Merge pull request #7635 from kenjis/fix-docs-forceGlobalSecureReques…
kenjis Jun 28, 2023
13e782d
Merge pull request #7636 from kenjis/docs-time.rst
kenjis Jun 28, 2023
b1b5544
Merge pull request #7637 from kenjis/docs-with-in-titles
kenjis Jun 28, 2023
2753ad7
docs: fix @param
kenjis Jun 29, 2023
757de43
Update user_guide_src/source/database/configuration.rst
puschie286 Jun 29, 2023
120b08d
Merge pull request #7624 from puschie286/sqlsrv-default-port-connecti…
kenjis Jun 29, 2023
70f566f
docs: Add the type.
ping-yee Jun 29, 2023
af377af
Merge pull request #7639 from kenjis/fix-phpdoc-param-CodeIgniter
kenjis Jun 29, 2023
fccea01
fix: remove incorrect param type in number_to_roman()
kenjis Jun 29, 2023
41dbea0
docs: align comments
kenjis Jun 29, 2023
713c1db
docs: update reference
kenjis Jun 29, 2023
8f6c2db
chore(deps-dev): update rector/rector requirement from 0.17.1 to 0.17.2
dependabot[bot] Jun 29, 2023
229427a
Merge pull request #7622 from jozefrebjak/fix-curlrequest-http-proxy
kenjis Jun 29, 2023
eeaa556
Merge pull request #7613 from ping-yee/230624_mixed_in_system
kenjis Jun 29, 2023
46e1ab1
Merge pull request #7640 from kenjis/fix-number_to_roman
kenjis Jun 29, 2023
81849ed
Merge pull request #7641 from codeigniter4/dependabot/composer/rector…
samsonasik Jun 29, 2023
4823409
docs: update comment
kenjis Jun 30, 2023
a98b6f0
docs: add "Configuring Caching"
kenjis Jun 30, 2023
5f5a5be
docs: fix descriptions
kenjis Jun 30, 2023
93006e3
Merge pull request #7597 from kenjis/fix-AutoRouterImproved-params-no…
kenjis Jun 30, 2023
0ea35d6
docs: do not recomment to use PHP function
kenjis May 17, 2023
12c7bb9
docs: remove inaccurate description
kenjis Jul 3, 2023
cba7713
docs: add note
kenjis Jul 3, 2023
5cfefc0
docs: add @phpstan-ignore-next-line in number_to_size()
kenjis Jul 3, 2023
89292d8
Merge pull request #7645 from kenjis/fix-phpstan-error-number_to_size
kenjis Jul 3, 2023
6f93b8b
docs:replace type mixed at all helpers class.
ping-yee Jun 24, 2023
753edef
docs: fix some type.
ping-yee Jun 29, 2023
87f6906
docs: fix the type.
ping-yee Jun 29, 2023
3240062
fix: fix some error.
ping-yee Jun 29, 2023
5d7b886
fix: fix the conflict
ping-yee Jul 3, 2023
b8524e8
fix: Add one more limit type.
ping-yee Jun 30, 2023
63ba16f
fix: fix the error.
ping-yee Jun 30, 2023
bdd2b50
fix: remove the phpstan message.
ping-yee Jun 30, 2023
d88d751
fix: changed by rector.
ping-yee Jul 3, 2023
95cf346
fix: fix the phpstan
ping-yee Jul 3, 2023
311d66e
Merge pull request #7612 from ping-yee/230624_mix_in_helpers
kenjis Jul 3, 2023
8bcc33e
Merge pull request #7505 from kenjis/fix-docs-session-destroy
kenjis Jul 3, 2023
da41b55
Merge pull request #7599 from kenjis/fix-TestResponseTest
kenjis Jul 3, 2023
e62b539
Merge pull request #7642 from kenjis/docs-caching-cacheQueryString
kenjis Jul 3, 2023
5f2cdd2
test: add tests for $params in call()
kenjis Jun 21, 2023
f7ef278
test: add test values with various types
kenjis Jun 21, 2023
d96be52
fix: FeatureTestTrait changes $params values passed to call()
kenjis Jun 21, 2023
63296de
test: add tests for call() params and REQUEST
kenjis Jun 21, 2023
9981d44
test: add tests for PUT JSON request and REQUEST
kenjis Jun 21, 2023
10f5034
docs: add @param
kenjis Jun 21, 2023
903fee8
refactor: add ()
kenjis Jun 21, 2023
79b83c0
fix: incorrect REQUEST superglobal data
kenjis Jun 21, 2023
faa014c
test: add test for JSON request Content-Type
kenjis Jun 21, 2023
c7ec2c9
fix: incorrect logic in setRequestBody()
kenjis Jun 21, 2023
d9d19c6
docs: fix @param type
kenjis Jun 21, 2023
963b2e2
refactor: remove uneeded isset()
kenjis Jun 21, 2023
d273222
fix: [BC] change priority for request body
kenjis Jun 21, 2023
5fe0572
docs: improve feature.rst
kenjis Jun 29, 2023
3c43081
docs: add changelog, upgrade guide, and missing explanation for $params
kenjis Jun 30, 2023
f1509f1
test: fix typo in method name
kenjis Jul 3, 2023
54ebb52
test: add test for missing argument
kenjis Jul 4, 2023
2ff1dc8
fix: improve exception message
kenjis Jul 4, 2023
d7cda93
Merge pull request #7652 from kenjis/fix-url-to-error-msg
samsonasik Jul 4, 2023
73d3997
Merge pull request #7602 from kenjis/fix-FeatureTestTrait-params-type
kenjis Jul 4, 2023
7131946
docs: improve sample code
kenjis Jul 5, 2023
a14c229
Merge pull request #7654 from kenjis/fix-docs-database-configuration-…
kenjis Jul 5, 2023
d91fb77
docs: fix @param in CLIRequest
kenjis Jul 5, 2023
752eddc
docs: fix @return in FilterInterface
kenjis Jul 5, 2023
ab19d07
docs: fix typo in OCI8\Connection
kenjis Jul 5, 2023
90089c9
docs: fix versions of @deprecated
kenjis Jul 5, 2023
97dfb4a
docs: fix @var in UserAgent
kenjis Jul 5, 2023
960cb91
docs: fix @param in URI
kenjis Jul 5, 2023
2cda17f
docs: fix @param in CURLRequest
kenjis Jul 5, 2023
b6ed0ae
docs: fix @param in MessageInterface
kenjis Jul 5, 2023
684e478
docs: fix @return in ResponseTrait
kenjis Jul 5, 2023
563ef33
docs: fix @param in RouteCollection
kenjis Jul 5, 2023
96d92dd
docs: fix @param in MessageTrait
kenjis Jul 5, 2023
9f1fdc6
docs: fix @return in FileCollection
kenjis Jul 5, 2023
eb22231
docs: improve comments in Validation
kenjis Jul 5, 2023
8d175b2
docs: fix text decoration
kenjis Jul 5, 2023
b4ea83b
docs: update PHP version for sample
kenjis Jul 5, 2023
c4b2e1e
docs: minor improvements
kenjis Jul 5, 2023
13287e7
Make typed property for ResponseTraitTest
samsonasik Jul 5, 2023
6e8c0d7
Merge pull request #7659 from samsonasik/typed-property
samsonasik Jul 5, 2023
5a5bfae
docs: fix by proofreading
kenjis Jul 5, 2023
388029c
Merge pull request #7657 from kenjis/fix-doc-comments
kenjis Jul 5, 2023
77a7d27
docs: fix by proofreading
kenjis Jul 6, 2023
6425b1d
Merge pull request #7658 from kenjis/fix-docs-running.rst
kenjis Jul 6, 2023
73aded6
docs: fix text decoration
kenjis Jul 6, 2023
da06727
docs: add sub section titles, etc.
kenjis Jul 6, 2023
99ae8bd
docs: extract source files and fix some bugs
kenjis Jul 6, 2023
1a54772
docs: add () after method name
kenjis Jul 6, 2023
6d13ca9
docs: add @param
kenjis Jul 6, 2023
6e0a9a5
Remove `SODIUM_LIBRARY_VERSION` from `dynamicConstantNames`
paulbalandan Jul 6, 2023
e5cfd4e
Remove `parallel.processTimeout`
paulbalandan Jul 6, 2023
245b36e
Merge pull request #7662 from kenjis/fix-docs-view-cells
kenjis Jul 6, 2023
17e566a
Merge pull request #7665 from codeigniter4/update-phpstan-neon
kenjis Jul 6, 2023
9977c31
Merge pull request #7666 from codeigniter4/remove-process-timeout
kenjis Jul 6, 2023
f61b41d
fix: normailze params
kenjis Jul 6, 2023
8133881
[Rector] Remove NodeConnectingVisitor from phsptan config
samsonasik Jul 6, 2023
3d946c8
change neon file should run rector as well
samsonasik Jul 6, 2023
e1c3739
Merge pull request #7669 from samsonasik/remove-node-connecting-visitor
samsonasik Jul 6, 2023
1a83ef4
Merge pull request #7663 from kenjis/fix-view-cell-caching
kenjis Jul 6, 2023
39406f0
docs: add max_length to sample code
kenjis Jul 7, 2023
9cefb0e
docs: improve upgrade instruction for validation placeholder
kenjis Jul 7, 2023
c875d33
docs: improve descriptions in Factories
kenjis Jul 7, 2023
1a1d618
docs: add section titles and note
kenjis Jul 7, 2023
87864bd
docs: remove unneeded description
kenjis Jul 7, 2023
9084605
docs: add explanation
kenjis Jul 7, 2023
78ff86f
refactor: simplify code of `FileHandler::getItem()`
paulbalandan Jul 6, 2023
47990ba
[Rector] Refactor UnderscoreToCamelCaseVariableNameRector as removed …
samsonasik Jul 7, 2023
baf3fdb
Merge pull request #7675 from samsonasik/rector-refactor-under
samsonasik Jul 7, 2023
b815c48
Merge pull request #7667 from paulbalandan/refactor-file-handler-cache
paulbalandan Jul 7, 2023
bc408a5
docs: make option values stand out
kenjis Jul 7, 2023
36e4050
docs: make comment on one line
kenjis Jul 7, 2023
6f2969d
docs: fix types in reference
kenjis Jul 7, 2023
d8aef2c
docs: make description more precise
kenjis Jul 7, 2023
d692016
Merge pull request #7674 from kenjis/docs-Factories
kenjis Jul 7, 2023
ca4a6ba
docs: fix incorrect sample code
kenjis Jul 7, 2023
b81d4c3
docs: fix heading marks
kenjis Jul 6, 2023
5e6f96a
docs: improve references
kenjis Jul 6, 2023
b0db781
docs: remove leading `/` in example path
kenjis Jul 6, 2023
9d19dd6
docs: add about Composer packages
kenjis Jul 6, 2023
fdc7bd5
docs: improve description
kenjis Jul 7, 2023
5fec4b6
docs: improve sample code
kenjis Jul 7, 2023
3295b20
docs: improve description
kenjis Jul 7, 2023
cd52324
docs: add explanation
kenjis Jul 7, 2023
92d10b2
docs: clarify what two registrars can do
kenjis Jul 7, 2023
c79698f
docs: add config() in Global Functions
kenjis Jul 8, 2023
3ccc7a2
Merge pull request #7672 from kenjis/docs-validation-rules
kenjis Jul 8, 2023
97f9034
Merge pull request #7673 from kenjis/fix-docs-Registrars
kenjis Jul 8, 2023
a8a53e7
docs: change TOC depth to 3
kenjis Jul 8, 2023
a8eec1e
docs: add sub section titles
kenjis Jul 8, 2023
947a104
docs: move paragraph to correct section
kenjis Jul 8, 2023
bf965a1
docs: add note for validation placeholders
kenjis Jul 8, 2023
c9924db
docs: update sample code for validation placeholder
kenjis Jul 8, 2023
5a0f9cb
docs: add max_length to sample code
kenjis Jul 8, 2023
eda2ff4
docs: add note for In-Model Validation
kenjis Jul 8, 2023
ff3dd1c
test: add test to reproduce bug
kenjis Jul 9, 2023
c193ce7
fix: view_cell() cannot load classes with the same short name
kenjis Jul 9, 2023
bc2c953
refactor: [Redis Cache] fix phpstan baseline error
paulbalandan Jul 8, 2023
14171bf
[Rector] Remove findParentType() on RemoveErrorSuppressInTryCatchStmt…
samsonasik Jul 9, 2023
1dc8b6b
Merge pull request #7687 from samsonasik/remove-find-parent
samsonasik Jul 9, 2023
416312e
[Rector] Remove findParentType() on UnderscoreToCamelCaseVariableName…
samsonasik Jul 9, 2023
3dc315f
Fix php syntax on php 7.4 compat
samsonasik Jul 9, 2023
053f85f
Merge pull request #7688 from samsonasik/remove-parent-under
samsonasik Jul 9, 2023
026eb6b
Merge pull request #7685 from kenjis/docs-in-model-validation
kenjis Jul 10, 2023
c72fa24
fix: setValidationRule() cannot use with ruleGroup
kenjis Jul 10, 2023
9192068
docs: add changelog and upgrade guide
kenjis Jul 10, 2023
f45d036
docs: fix sample code of Config\Validation
kenjis Jul 10, 2023
a6571c3
build(deps-dev): update rector/rector requirement from 0.17.2 to 0.17.3
dependabot[bot] Jul 10, 2023
0b2674f
Merge pull request #7693 from codeigniter4/dependabot/composer/rector…
samsonasik Jul 10, 2023
19db8f7
Merge pull request #7683 from paulbalandan/redis-cache
paulbalandan Jul 11, 2023
5062e81
Merge pull request #7681 from kenjis/docs-add-common-config
kenjis Jul 11, 2023
f30542c
Merge pull request #7692 from kenjis/docs-config-validation
kenjis Jul 11, 2023
b352160
docs: fix Section Headings marks
kenjis Jul 8, 2023
35e5342
docs: indent config values in sample
kenjis Jul 8, 2023
92e5a8f
docs: add sub section titles and fix
kenjis Jul 8, 2023
0a1e43a
docs: add new line
kenjis Jul 8, 2023
c917982
docs: change sub section order
kenjis Jul 8, 2023
fdf3252
docs: change sub section titles and level
kenjis Jul 8, 2023
18d5cf4
docs: change TOC depth to 3
kenjis Jul 8, 2023
eb465d9
docs: add ".. code-block:: apache"
kenjis Jul 8, 2023
9afea6f
docs: add new line
kenjis Jul 8, 2023
d98ec38
docs: change location of project folder and explanin folder structure
kenjis Jul 8, 2023
45165e1
docs: fix directory separator for Windows
kenjis Jul 11, 2023
d778ec3
Merge pull request #7686 from kenjis/fix-view-cells-same-short-name
kenjis Jul 11, 2023
6cedbe9
Merge pull request #7679 from kenjis/docs-apache-config
kenjis Jul 11, 2023
d2511e5
docs: add "Hosting with Subfolder"
kenjis Jul 8, 2023
00661b9
docs: add comments
kenjis Jul 12, 2023
c95912e
fix: auto-routing legacy with $routes->add() behavior
kenjis Jul 10, 2023
7493f07
docs: change order of sentences
kenjis Jul 10, 2023
2f16b45
test: update test
kenjis Jul 10, 2023
f96e132
fix: prohibit CLI route with parameterized method
kenjis Jul 10, 2023
6d2cefc
fix: $cliRoutes contains only CLI routes, not '*' routes
kenjis Jul 10, 2023
9c62817
refactor: remove `if`
kenjis Jul 10, 2023
a70eafb
docs: add changelog
kenjis Jul 10, 2023
bed018a
refactor: improve parameter name
kenjis Jul 12, 2023
03cbbdb
build(deps-dev): update rector/rector requirement from 0.17.3 to 0.17.5
dependabot[bot] Jul 12, 2023
017cdbd
Merge pull request #7698 from codeigniter4/dependabot/composer/rector…
samsonasik Jul 12, 2023
998eb53
docs: remove Migrate controller sample
kenjis Jul 13, 2023
f203918
docs: add "..." to command output
kenjis Jul 13, 2023
5624e4b
docs: separate options for database sessions
kenjis Jul 13, 2023
a634472
docs: fix text decoration
kenjis Jul 13, 2023
46a2703
refactor: use new Paths() instead of config()
kenjis Jul 13, 2023
cdf6b22
Update number_helper.php
sba Jul 13, 2023
0af3f73
Update NumberHelperTest.php
sba Jul 13, 2023
254435e
docs: add notes
kenjis Jul 13, 2023
e25fe3d
Update v4.3.7.rst
sba Jul 13, 2023
a2fed68
docs: replace Note: with NOTE:
kenjis Jul 13, 2023
60b76e8
Update number_helper.php
sba Jul 13, 2023
137f6d6
docs: update 404 links
kenjis Jul 13, 2023
eaf0cff
docs: improve warning
kenjis Jul 14, 2023
38a6c97
docs: improve description
kenjis Jul 14, 2023
5381d50
docs: add sub section title and improve description
kenjis Jul 14, 2023
b924bf4
docs: add warning
kenjis Jul 14, 2023
69dad6e
docs: add link to other page
kenjis Jul 14, 2023
f4225d2
build(deps-dev): update rector/rector requirement from 0.17.5 to 0.17.6
dependabot[bot] Jul 14, 2023
afea23f
Merge pull request #7709 from codeigniter4/dependabot/composer/rector…
samsonasik Jul 14, 2023
0c7e178
Merge pull request #7705 from kenjis/docs-testing-overview
kenjis Jul 16, 2023
b84bd14
Merge pull request #7690 from kenjis/fix-auto-routing-legacy-cli-routes
kenjis Jul 16, 2023
c9c82b2
Merge pull request #7701 from sba/number_to_amount
kenjis Jul 16, 2023
e37b134
Merge pull request #7702 from kenjis/refactor-config-Paths
kenjis Jul 16, 2023
70eade0
Merge pull request #7691 from kenjis/fix-model-validation
kenjis Jul 16, 2023
eb39818
[Rector] Enable skipped GetMockBuilderGetMockToCreateMockRector on Em…
samsonasik Jul 17, 2023
6a7e802
Merge pull request #7697 from kenjis/docs-add-comments-Cache-Handlers
kenjis Jul 18, 2023
cc61150
Merge pull request #7714 from samsonasik/enable-skip-get-mock
samsonasik Jul 18, 2023
39e9a1d
Merge pull request #7700 from kenjis/docs-migration.rst
kenjis Jul 18, 2023
5c227fe
Merge pull request #7706 from kenjis/docs-dotenv-and-credentials
kenjis Jul 18, 2023
00c7086
Adjust registering of custom fixers for PHP 8.0+ only
paulbalandan Jul 18, 2023
8024ff9
Merge pull request #7712 from paulbalandan/cs-workflow
paulbalandan Jul 18, 2023
ac87a1e
Configure `php_unit_data_provider_return_type` fixer
paulbalandan Jul 17, 2023
150583c
Bump to phpstan level 6
paulbalandan Jul 17, 2023
6c70392
Dump existing 613 errors to PHP baseline
paulbalandan Jul 17, 2023
d834166
`disableProcessTimeout` in `analyze` Composer
ddevsr Jul 19, 2023
9810c1f
Fix PHPDoc of Config\Cache::$validHandlers
paulbalandan Jul 20, 2023
49807bf
Merge pull request #7678 from kenjis/docs-old
kenjis Jul 21, 2023
f1f4a53
Merge pull request #7711 from paulbalandan/data-provider-return-type
kenjis Jul 21, 2023
047800f
Merge pull request #7720 from paulbalandan/config-cache-phpdoc
kenjis Jul 21, 2023
a20df27
Merge pull request #7713 from paulbalandan/phpstan-level-6
kenjis Jul 21, 2023
2a2a40d
chore: update test-phpstan.yml
kenjis Jul 21, 2023
006d755
Merge pull request #7722 from kenjis/update-test-phpstan.yml
kenjis Jul 21, 2023
da93771
test: add test for maskSensitiveData()
kenjis Jul 21, 2023
6b624d6
fix: $sensitiveDataInTrace does not work
kenjis Jul 21, 2023
36a5f5a
test: add test for maskSensitiveData() and trace data key
kenjis Jul 21, 2023
d6725aa
chore: fix cache file
kenjis Jul 21, 2023
29af186
fix: maskSensitiveData() may mask backtrace data like `file`
kenjis Jul 21, 2023
13782b3
test: use `use` statement
kenjis Jul 21, 2023
a18c060
Merge pull request #7728 from kenjis/fix-php-cs-fixer.user-guide
paulbalandan Jul 21, 2023
96ed873
refactor: services function actually returns `object|null`
paulbalandan Jul 21, 2023
ef387aa
Merge pull request #7730 from paulbalandan/service-functions
paulbalandan Jul 22, 2023
fc4387f
Merge pull request #7715 from ddevsr/patch-1
samsonasik Jul 24, 2023
23336a3
build(deps-dev): update rector/rector requirement from 0.17.6 to 0.17.7
dependabot[bot] Jul 24, 2023
6808cc3
Merge pull request #7734 from codeigniter4/dependabot/composer/rector…
samsonasik Jul 25, 2023
246eba4
fix: wrong Config classname to config()
kenjis Jul 25, 2023
75d87ed
Fix failures due to line ending
paulbalandan Jul 19, 2023
ccbfcfa
Fix failures due to path in heredoc
paulbalandan Jul 25, 2023
5c51240
Merge pull request #7735 from kenjis/fix-Toolbar-config
kenjis Jul 25, 2023
f6d834e
Merge pull request #7719 from paulbalandan/failing-tests
kenjis Jul 25, 2023
48d5ded
Merge pull request #7725 from kenjis/fix-sensitiveDataInTrace
kenjis Jul 25, 2023
322fdd7
Merge pull request #7680 from kenjis/docs-apache-config-subfolder
kenjis Jul 27, 2023
9f8bc2f
style: Use all available checked tokens for `no_extra_blank_lines`
paulbalandan Jul 21, 2023
1890d05
docs: replace `U+2019` with `U+0060`
paulbalandan Jul 27, 2023
daf48bb
Add types for app
paulbalandan Jul 27, 2023
6cd1a91
Merge pull request #7729 from paulbalandan/no-extra-blank-lines
paulbalandan Jul 27, 2023
f09575c
Merge pull request #7741 from paulbalandan/app-types
paulbalandan Jul 27, 2023
621edbe
Merge pull request #7740 from paulbalandan/unicode-apostrophe
paulbalandan Jul 27, 2023
68a0907
Add types to Autoloader
paulbalandan Jul 29, 2023
361cb3f
Add void return to tests
paulbalandan Jul 29, 2023
fbdcee4
Merge pull request #7746 from paulbalandan/types-autoloader
kenjis Jul 29, 2023
1ce507e
Merge pull request #7748 from paulbalandan/tests-void-return
kenjis Jul 29, 2023
efdfd98
Prep for 4.3.7 release
kenjis Jul 30, 2023
0d22b68
Merge pull request #7749 from kenjis/release-4.3.7
kenjis Jul 30, 2023
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
  •  
  •  
  •  
6 changes: 4 additions & 2 deletions .github/workflows/test-phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ on:
- 'system/**.php'
- 'utils/**.php'
- composer.json
- '**.neon.dist'
- phpstan.neon.dist
- phpstan-baseline.php
- '.github/workflows/test-phpstan.yml'

push:
Expand All @@ -24,7 +25,8 @@ on:
- 'system/**.php'
- 'utils/**.php'
- composer.json
- '**.neon.dist'
- phpstan.neon.dist
- phpstan-baseline.php
- '.github/workflows/test-phpstan.yml'

concurrency:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-rector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:
- '.github/workflows/test-rector.yml'
- composer.json
- rector.php
- '**.neon.dist'

push:
branches:
Expand All @@ -28,6 +29,7 @@ on:
- '.github/workflows/test-rector.yml'
- composer.json
- rector.php
- '**.neon.dist'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand Down
42 changes: 34 additions & 8 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,45 @@
__DIR__ . '/spark',
]);

$overrides = [];
$overrides = [
'php_unit_data_provider_return_type' => true,
'no_extra_blank_lines' => [
'tokens' => [
'attribute',
'break',
'case',
'continue',
'curly_brace_block',
'default',
'extra',
'parenthesis_brace_block',
'return',
'square_brace_block',
'switch',
'throw',
'use',
],
],
];

$options = [
'cacheFile' => 'build/.php-cs-fixer.cache',
'finder' => $finder,
'customFixers' => FixerGenerator::create('vendor/nexusphp/cs-config/src/Fixer', 'Nexus\\CsConfig\\Fixer'),
'customRules' => [
NoCodeSeparatorCommentFixer::name() => true,
],
'cacheFile' => 'build/.php-cs-fixer.cache',
'finder' => $finder,
];

return Factory::create(new CodeIgniter4(), $overrides, $options)->forLibrary(
$config = Factory::create(new CodeIgniter4(), $overrides, $options)->forLibrary(
'CodeIgniter 4 framework',
'CodeIgniter Foundation',
'[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,
]));
}

return $config;
42 changes: 34 additions & 8 deletions .php-cs-fixer.no-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,41 @@
__DIR__ . '/admin/starter/builds',
]);

$overrides = [];
$overrides = [
'php_unit_data_provider_return_type' => true,
'no_extra_blank_lines' => [
'tokens' => [
'attribute',
'break',
'case',
'continue',
'curly_brace_block',
'default',
'extra',
'parenthesis_brace_block',
'return',
'square_brace_block',
'switch',
'throw',
'use',
],
],
];

$options = [
'cacheFile' => 'build/.php-cs-fixer.no-header.cache',
'finder' => $finder,
'customFixers' => FixerGenerator::create('vendor/nexusphp/cs-config/src/Fixer', 'Nexus\\CsConfig\\Fixer'),
'customRules' => [
NoCodeSeparatorCommentFixer::name() => true,
],
'cacheFile' => 'build/.php-cs-fixer.no-header.cache',
'finder' => $finder,
];

return Factory::create(new CodeIgniter4(), $overrides, $options)->forProjects();
$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,
]));
}

return $config;
51 changes: 39 additions & 12 deletions .php-cs-fixer.user-guide.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,51 @@
])
->notPath([
'ci3sample/',
'libraries/sessions/016.php',
'database/query_builder/075.php',
'libraries/sessions/016.php',
'outgoing/response/031.php',
'outgoing/response/032.php',
]);

$overrides = [
'echo_tag_syntax' => false,
'php_unit_internal_class' => false,
'no_unused_imports' => false,
'class_attributes_separation' => false,
'echo_tag_syntax' => false,
'php_unit_internal_class' => false,
'no_unused_imports' => false,
'class_attributes_separation' => false,
'php_unit_data_provider_return_type' => true,
'no_extra_blank_lines' => [
'tokens' => [
'attribute',
'break',
'case',
'continue',
'curly_brace_block',
'default',
'extra',
'parenthesis_brace_block',
'return',
'square_brace_block',
'switch',
'throw',
'use',
],
],
];

$options = [
'cacheFile' => 'build/.php-cs-fixer.user-guide.cache',
'finder' => $finder,
'customFixers' => FixerGenerator::create('vendor/nexusphp/cs-config/src/Fixer', 'Nexus\\CsConfig\\Fixer'),
'customRules' => [
NoCodeSeparatorCommentFixer::name() => true,
],
'cacheFile' => 'build/.php-cs-fixer.user-guide.cache',
'finder' => $finder,
];

return Factory::create(new CodeIgniter4(), $overrides, $options)->forProjects();
$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,
]));
}

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

## [v4.3.7](https://github.com/codeigniter4/CodeIgniter4/tree/v4.3.7) (2023-07-30)
[Full Changelog](https://github.com/codeigniter4/CodeIgniter4/compare/v4.3.6...v4.3.7)

### Breaking Changes

* fix: FeatureTestTrait may change $params values passed to call(), and a few bug fixes by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7602
* fix: auto routing legacy and $route->add() by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7690
* fix: [Model] setValidationRule() cannot use with ruleGroup by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7691

### Fixed Bugs

* docs: fix incorrect description on RedirectException (1) by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7629
* docs: fix incorrect description on RedirectException (2) by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7633
* fix: skip http proxy added header by @jozefrebjak in https://github.com/codeigniter4/CodeIgniter4/pull/7622
* fix: number_to_roman() param type by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7640
* fix: [Auto Routing Improved] feature testing may use incorrect param count by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7597
* fix: `url_to()` error message by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7652
* fix: [ViewCells] caching by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7663
* fix: [ViewCells] when there are cells with the same short name, only the first cell is loaded by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7686
* Fix number comparison in number_to_amount() in number_helper.php by @sba in https://github.com/codeigniter4/CodeIgniter4/pull/7701
* fix: wrong Config classname to config() in Toolbar by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7735
* fix: $sensitiveDataInTrace does not work by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7725

### Enhancements

* Remove PHPStan from pre-commit hook by @lonnieezell in https://github.com/codeigniter4/CodeIgniter4/pull/7618

### Refactoring

* refactor: remove unused property in Encryption\Handlers\BaseHandler by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7579
* refactor: use ::class to config() param by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7611
* refactor: remove unused non-empty array in RequestTrait by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7620
* refactor: [Cache] simplify code of `FileHandler::getItem()` by @paulbalandan in https://github.com/codeigniter4/CodeIgniter4/pull/7667
* refactor: replace `config(Paths::class)` by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7702

## [v4.3.6](https://github.com/codeigniter4/CodeIgniter4/tree/v4.3.6) (2023-06-18)
[Full Changelog](https://github.com/codeigniter4/CodeIgniter4/compare/v4.3.5...v4.3.6)

Expand Down
4 changes: 2 additions & 2 deletions admin/RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ the existing content.
* Title: `4.x.x Ready code`
* Description: blank
* Merge the PR then create a new Release:
* Version: `v4.x.x`
* Tag: `v4.x.x` (Create new tag)
* Target: `master`
* Title: `CodeIgniter 4.x.x`
* Description:
Expand All @@ -97,7 +97,7 @@ the existing content.
## New Contributors
*

Full Changelog: https://github.com/codeigniter4/CodeIgniter4/compare/v4.x.x...v4.x.x
**Full Changelog**: https://github.com/codeigniter4/CodeIgniter4/compare/v4.x.x...v4.x.x
```
* Watch for the "Deploy Distributable Repos" action to make sure **framework**,
**appstarter**, and **userguide** get updated
Expand Down
16 changes: 0 additions & 16 deletions admin/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,6 @@ if [ "$STAGED_PHP_FILES" != "" ]; then
done
fi

if [ "$FILES" != "" ]; then
echo "Running PHPStan..."

# Run on whole codebase
if [ -d /proc/cygdrive ]; then
XDEBUG_MODE=off ./vendor/bin/phpstan analyse
else
XDEBUG_MODE=off php ./vendor/bin/phpstan analyse
fi

if [ $? != 0 ]; then
echo "Fix the phpstan error(s) before commit."
exit 1
fi
fi

if [ "$FILES" != "" ]; then
echo "Running PHP CS Fixer..."

Expand Down
2 changes: 1 addition & 1 deletion app/Config/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class App extends BaseConfig

/**
* --------------------------------------------------------------------------
* URI PROTOCOL
* Force Global Secure Requests
* --------------------------------------------------------------------------
*
* If true, this will force every request made to this application to be
Expand Down
5 changes: 4 additions & 1 deletion app/Config/Autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
* can find the files as needed.
*
* NOTE: If you use an identical key in $psr4 or $classmap, then
* the values in this file will overwrite the framework's values.
* the values in this file will overwrite the framework's values.
*
* NOTE: This class is required prior to Autoloader instantiation,
* and does not extend BaseConfig.
*/
class Autoload extends AutoloadConfig
{
Expand Down
17 changes: 10 additions & 7 deletions app/Config/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Config;

use CodeIgniter\Cache\CacheInterface;
use CodeIgniter\Cache\Handlers\DummyHandler;
use CodeIgniter\Cache\Handlers\FileHandler;
use CodeIgniter\Cache\Handlers\MemcachedHandler;
Expand Down Expand Up @@ -53,12 +54,12 @@ class Cache extends BaseConfig
* Whether to take the URL query string into consideration when generating
* output cache files. Valid options are:
*
* false = Disabled
* true = Enabled, take all query parameters into account.
* Please be aware that this may result in numerous cache
* files generated for the same page over and over again.
* array('q') = Enabled, but only take into account the specified list
* of query parameters.
* false = Disabled
* true = Enabled, take all query parameters into account.
* Please be aware that this may result in numerous cache
* files generated for the same page over and over again.
* ['q'] = Enabled, but only take into account the specified list
* of query parameters.
*
* @var bool|string[]
*/
Expand Down Expand Up @@ -95,7 +96,8 @@ class Cache extends BaseConfig
* A string of reserved characters that will not be allowed in keys or tags.
* Strings that violate this restriction will cause handlers to throw.
* Default: {}()/\@:
* Note: The default set is required for PSR-6 compliance.
*
* NOTE: The default set is required for PSR-6 compliance.
*/
public string $reservedCharacters = '{}()/\@:';

Expand Down Expand Up @@ -157,6 +159,7 @@ class Cache extends BaseConfig
* that are listed here are allowed to be used.
*
* @var array<string, string>
* @phpstan-var array<string, class-string<CacheInterface>>
*/
public array $validHandlers = [
'dummy' => DummyHandler::class,
Expand Down
2 changes: 1 addition & 1 deletion app/Config/ContentSecurityPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class ContentSecurityPolicy extends BaseConfig

// -------------------------------------------------------------------------
// Sources allowed
// Note: once you set a policy to 'none', it cannot be further restricted
// NOTE: once you set a policy to 'none', it cannot be further restricted
// -------------------------------------------------------------------------

/**
Expand Down
2 changes: 1 addition & 1 deletion app/Config/Filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Filters extends BaseConfig
*
* If you use this, you should disable auto-routing because auto-routing
* permits any HTTP method to access a controller. Accessing the controller
* with a method you dont expect could bypass the filter.
* with a method you don't expect could bypass the filter.
*/
public array $methods = [];

Expand Down
Loading