Skip to content

4.1.5 Ready code #5294

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 588 commits into from
Nov 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
588 commits
Select commit Hold shift + click to select a range
33f4635
docs: add headings
kenjis Oct 12, 2021
69fbed9
docs: remove unnecessary blank lines
kenjis Oct 12, 2021
aa81929
docs: update about coding-standard repository
kenjis Oct 12, 2021
25ec4b2
Merge pull request #5199 from kenjis/update-admin-readme
kenjis Oct 12, 2021
cc0b7e9
Simplify query string output in timeline.
Oct 12, 2021
f4e4cfe
Merge pull request #5197 from kenjis/update-readme
lonnieezell Oct 12, 2021
8d2678f
Remove duplicate parentheses.
sfadschm Oct 13, 2021
e393aac
docs: fix by proofreading
kenjis Oct 13, 2021
105253c
docs: fix by proofreading
kenjis Oct 13, 2021
a790f87
docs: fix by proofreading
kenjis Oct 13, 2021
b3cda21
docs: fix by proofreading
kenjis Oct 13, 2021
51c070f
docs: fix by proofreading
kenjis Oct 13, 2021
0ce3a2c
Merge pull request #5198 from kenjis/fix-docs-csrf
kenjis Oct 13, 2021
125052a
docs: Github -> GitHub
kenjis Oct 13, 2021
101db15
chore(deps-dev): update rector/rector requirement
dependabot[bot] Oct 13, 2021
00b6e32
docs: add escape for identifiers.
ytetsuro Oct 15, 2021
22a4c24
docs: add escape for identifiers.
ytetsuro Oct 15, 2021
87ffde8
Merge pull request #5196 from sfadschm/timeline-query-strings
kenjis Oct 15, 2021
0045a6f
Merge pull request #5171 from ytetsuro/fix/#5164_add_dropKey_method
lonnieezell Oct 15, 2021
2007d64
[Debug] Improve keyword highlighting and escaping of query strings
sfadschm Oct 16, 2021
26e0025
Fix CSRF filter does not work when set it to only post
kenjis Oct 16, 2021
f3424a5
Fix GC issue when session lifetime is set to 0
lf-uraku-yuki Oct 16, 2021
dfe4ad4
docs: small improvement in debugging
kenjis Oct 17, 2021
59c79d9
fix: test failures on macOS
kenjis Oct 17, 2021
59ae985
Add `@group CacheLive` to tests
kenjis Oct 17, 2021
d10a602
docs: hashed id (`encodeID()`) in CodeIgniter\Model has been removed
kenjis Oct 17, 2021
52af51d
docs: unify the decoration of app/Config/*.php
kenjis Oct 18, 2021
a2309e6
fix: add fallbacks for realpath() so VFS is supported
kenjis Oct 18, 2021
b6c3ddb
Merge pull request #5213 from kenjis/fix-docs-app-config-decoration
lonnieezell Oct 18, 2021
24196f9
test: remove invalid @runTestsInSeparateProcesses
kenjis Oct 19, 2021
34afde8
chore(deps-dev): update rector/rector requirement
dependabot[bot] Oct 19, 2021
5290051
Merge pull request #5219 from codeigniter4/dependabot/composer/rector…
samsonasik Oct 19, 2021
9718fa0
docs: improve tests/README.md
kenjis Oct 20, 2021
7a1cf38
docs: change the version of PHPUnit to major version only
kenjis Oct 20, 2021
ac7d3b6
docs: improve Form Validation Tutorial
kenjis Oct 20, 2021
eb5d8c2
docs: improve contributing docs
kenjis Oct 20, 2021
5e03647
test: fix @var classname typo
kenjis Oct 20, 2021
654c2b7
docs: add warning about auto-routing and filters
kenjis Oct 20, 2021
3ea7c95
chore(deps-dev): update rector/rector requirement (#5225)
dependabot[bot] Oct 20, 2021
9a87de8
Merge pull request #5221 from kenjis/fix-tests-readme
kenjis Oct 21, 2021
2263430
feat: add Session based CSRF protection
kenjis Oct 12, 2021
991c412
refactor: add missing return type
kenjis Oct 12, 2021
537867a
docs: add Session based CSRF Protection
kenjis Oct 12, 2021
b2fb16a
docs: fix text decoration
kenjis Oct 12, 2021
9851344
chore: Security can depend on Session
kenjis Oct 13, 2021
f43f46b
Merge pull request #5195 from ytetsuro/fix/remove-unnecesary-escape-f…
kenjis Oct 21, 2021
562c12e
docs: update link for CSRF protection
kenjis Oct 22, 2021
010fa68
docs: fix sample code
kenjis Oct 22, 2021
045c6ea
docs: remove Config\App.CSRFProtection which does not exist
kenjis Oct 22, 2021
485a0c3
docs: replace deprecated Config\App.CSRFCookieName
kenjis Oct 22, 2021
e3eea94
docs: make @deprecated IncomingRequest::$enableCSRF that is not used
kenjis Oct 22, 2021
5d87249
test: remove $CSRFProtection properties in Mock*Config.php
kenjis Oct 22, 2021
2a9ab6a
docs: remove inappropriate samples
kenjis Oct 22, 2021
02a747f
docs: decorate variables
kenjis Oct 22, 2021
09612db
docs: fix descrition aboug PHP native functions
kenjis Oct 22, 2021
a087518
Merge pull request #5201 from kenjis/add-csrf-session
kenjis Oct 23, 2021
fb30326
docs: fix comment
kenjis Oct 21, 2021
d67de20
feat: protect CSRF for PUT/PATCH/DELETE
kenjis Oct 21, 2021
adf02f0
fix: HTTP Method Spoofing does not work correctly for Config\Filter::…
kenjis Oct 21, 2021
f44ceba
test: fix test
kenjis Oct 21, 2021
fa78859
test: fix tests
kenjis Oct 21, 2021
11b5c26
test: fix tests
kenjis Oct 21, 2021
070cdb4
docs: update user guide
kenjis Oct 22, 2021
df15a3f
Merge pull request #5228 from kenjis/csrf-put-patch-delete
kenjis Oct 23, 2021
e19228a
docs: improve Upgrading 4.1.5 page format
kenjis Oct 22, 2021
ed23c34
Merge pull request #5232 from kenjis/fix-docs-upgrade_415
kenjis Oct 23, 2021
f985561
Rename toolbar loader to be a regular JS file
paulbalandan Oct 24, 2021
4876b48
[HTTP] Update Http Status Description based on latest iana.org
samsonasik Oct 24, 2021
54d4ed1
Merge pull request #5217 from kenjis/fix-BaseConnectionTest
kenjis Oct 24, 2021
fec6ed7
Merge pull request #5235 from samsonasik/update-http-status-code-desc…
kenjis Oct 24, 2021
1121aba
test: reduce the size of the method to be mocked
kenjis Oct 25, 2021
6af9fc5
test: add a test case
kenjis Oct 25, 2021
2a3767a
docs: fix format of testing/overview.rst
kenjis Oct 25, 2021
e2f4e59
docs: Zip file does not contain the user guide
kenjis Oct 25, 2021
2060447
Merge pull request #5230 from kenjis/fix-docs-csrf
kenjis Oct 25, 2021
a9d72a7
Merge pull request #5231 from kenjis/remove-csrf-properties
kenjis Oct 25, 2021
fe5037d
Merge pull request #5233 from kenjis/fix-docs-validation
kenjis Oct 25, 2021
024df6c
fix: remove extra DIRECTORY_SEPARATOR
kenjis Oct 25, 2021
7634d3a
[Rector] Using LevelSetList::UP_TO_PHP_73
samsonasik Oct 25, 2021
dd72eef
clean up existing already in set list
samsonasik Oct 25, 2021
d1edaee
fix: reset unneeded headers to prevent request error
kenjis Oct 19, 2021
245dade
fix: reset unneeded configs
kenjis Oct 19, 2021
fa3620b
test: add test for CURLRequest unshared headers
kenjis Oct 19, 2021
4b51e01
test: fix test method names
kenjis Oct 19, 2021
c497b28
Switch PHPCPD to tool
MGatner Oct 25, 2021
8cd8fed
Merge pull request #5239 from samsonasik/use-up-to-php73
samsonasik Oct 25, 2021
5c82c43
Merge pull request #5240 from codeigniter4/phpcpd-tool
MGatner Oct 25, 2021
c53578a
Merge pull request #5238 from kenjis/fix-docs-upgrade_4xx
paulbalandan Oct 26, 2021
338dace
Merge pull request #5237 from kenjis/fix-docs-testing/overview
paulbalandan Oct 26, 2021
0061d9d
docs: remove unnecessary headings
kenjis Oct 26, 2021
5a1c780
docs: decorate HTML tags
kenjis Oct 26, 2021
6953587
Merge pull request #5211 from kenjis/fix-publisher-macos
samsonasik Oct 26, 2021
4de1831
test: fix failed test
kenjis Oct 26, 2021
0923134
test: fix failed test
kenjis Oct 26, 2021
2634423
Merge pull request #5241 from kenjis/fix-docs-typography.rst
kenjis Oct 26, 2021
6550690
Merge pull request #5236 from kenjis/fix-csrf-tests
kenjis Oct 26, 2021
f1a9f3b
test: fix setUp()
kenjis Oct 27, 2021
ee2b894
Fix wrong helper path resolution
paulbalandan Oct 27, 2021
d7c9ad2
test: fix setUp()
kenjis Oct 27, 2021
f758702
Apply suggestions from code review
paulbalandan Oct 28, 2021
120a56a
Update tests/system/CommonHelperTest.php
paulbalandan Oct 28, 2021
568d8a9
docs: decorate `.env` with `**`
kenjis Oct 28, 2021
5ca28c0
Merge pull request #5245 from kenjis/fix-test-TimeTest
kenjis Oct 28, 2021
d263558
Update tests/system/CommonHelperTest.php
paulbalandan Oct 28, 2021
e307ef5
fix: remove populateHeaders() not to share request headers form brows…
kenjis Oct 28, 2021
7ae9a8b
Merge pull request #5246 from paulbalandan/helper-loading
kenjis Oct 28, 2021
9d23926
Merge pull request #5248 from kenjis/fix-docs-dotenv
kenjis Oct 28, 2021
0b18ab8
style: change global_namespace_import to true in php-cs-fixer
kenjis Oct 28, 2021
9cbe0f2
fix: make $unsharedHeaders protected
kenjis Oct 29, 2021
c9bac5f
fix: reset $unsharedHeaders after sending request
kenjis Oct 29, 2021
d39543e
docs: improve changelogs/v4.1.5.rst format
kenjis Oct 29, 2021
9a6a0d3
docs: add upgrading and changelog
kenjis Oct 29, 2021
9a39199
Merge pull request #5250 from kenjis/global_namespace_import-true
kenjis Oct 29, 2021
f5c1d2d
docs: fix method name
kenjis Oct 29, 2021
0a38cf3
docs: replace csrf with CSRF
kenjis Oct 29, 2021
06cc51c
docs: fix 404 link and make the note more accurate
kenjis Oct 29, 2021
613b980
fix: remove $unsharedHeaders and add $defaultOptions
kenjis Oct 29, 2021
8b08642
docs: fix changelogs/v4.1.5.rst
kenjis Oct 29, 2021
182c252
docs: fix upgrade_415.rst
kenjis Oct 29, 2021
741d488
Merge pull request #5244 from kenjis/fix-test-CreateDatabaseTest
kenjis Oct 29, 2021
096c6ac
Merge pull request #5252 from kenjis/fix-docs-security_helper
kenjis Oct 29, 2021
aed89d9
fix: add config $CURLRequestShareOptions for the CURLRequest
kenjis Oct 29, 2021
436013e
test: add tests for $CURLRequestShareOptions = false
kenjis Oct 29, 2021
9e88ec4
test: add tests for sharing options
kenjis Oct 29, 2021
fed4a33
Merge pull request #5253 from kenjis/fix-docs-upgrade_security
paulbalandan Oct 29, 2021
b648d2d
Cleanup php-cs-fixer config files
paulbalandan Oct 29, 2021
3ac80c3
Run `builds` thru CS lint
paulbalandan Oct 29, 2021
ef47af4
Remove unnecessary comments
paulbalandan Oct 29, 2021
1a048f9
Other optimizations
paulbalandan Oct 29, 2021
c28ae89
Disable blank issues
paulbalandan Oct 29, 2021
d7364cd
Speed up `CommonSingleServiceTest`
paulbalandan Oct 29, 2021
ec303bf
Replace explicit calls to `Services::reset()` in tests
paulbalandan Oct 29, 2021
88c45d6
Fix wrong logic
paulbalandan Oct 29, 2021
a6c06cc
refactor: remove unnecessary second param
kenjis Oct 29, 2021
f53a1da
refactor: move Config\App::$CURLRequestShareOptions to Config\CURLReq…
kenjis Oct 30, 2021
772a408
fix: change from private to protected
kenjis Oct 30, 2021
3901496
docs: add PHPDoc comments
kenjis Oct 30, 2021
8a5973b
config: add curlrequest.shareOptions
kenjis Oct 30, 2021
88963ba
docs: add about CURLRequest $shareOptions
kenjis Oct 30, 2021
3a4cffc
Merge pull request #5254 from paulbalandan/php-cs-fixer-cleanup
kenjis Oct 30, 2021
1d0b0d8
Merge pull request #5255 from paulbalandan/optimize-builds
paulbalandan Oct 30, 2021
b1945a2
Merge pull request #5259 from paulbalandan/reset-services
kenjis Oct 30, 2021
916a7b0
refactor: remove static variable and add a proptery for it
kenjis Oct 31, 2021
601d295
refactor: break long lines
kenjis Oct 31, 2021
c36ce02
refactor: remove static variables and add properties
kenjis Oct 31, 2021
dbfacc0
refactor: break long lines
kenjis Oct 31, 2021
833ca56
Apply suggestions from code review
paulbalandan Oct 31, 2021
8d5dc08
Change empty to is identical check
paulbalandan Oct 31, 2021
4034dc4
Merge pull request #5262 from kenjis/remove-static-for-php81
paulbalandan Oct 31, 2021
ef7d23d
Replace usage of `FILTER_SANITIZE_STRING`
paulbalandan Oct 31, 2021
6a689bf
Enable `ordered_class_elements` rule
paulbalandan Oct 31, 2021
d8b750b
test: refactor: $request -> $this->request
kenjis Oct 26, 2021
1f4ba30
test: refactor: reset $_SERVER
kenjis Oct 26, 2021
3ea1ede
test: refactor: change the position of line breaks
kenjis Oct 26, 2021
64b3778
test: refactor: extract createFilters() method
kenjis Oct 26, 2021
df72c88
test: refactor: use ::class keyword
kenjis Oct 26, 2021
908c562
test: refactor: remove unused property
kenjis Oct 26, 2021
01fc237
test: refactor: fix wrong config class type
kenjis Oct 28, 2021
1d9c1b6
test: refactor: remove $this->request that I forgot to remove
kenjis Oct 28, 2021
24713d4
test: refactor: use method chaining
kenjis Oct 28, 2021
dbbdd2d
Merge pull request #5249 from kenjis/remove-curl-headers-sharing
kenjis Nov 1, 2021
3b2fd6e
refactor: remove else
kenjis Nov 1, 2021
4671341
Merge pull request #5258 from paulbalandan/common-single-service
kenjis Nov 1, 2021
5b1060f
Merge pull request #5257 from paulbalandan/blank-issue-policy
paulbalandan Nov 1, 2021
d1f1f6b
fix: `$this->request->setLocale()` does not work for `lang()` in 404 …
kenjis Nov 1, 2021
e0d48a1
Merge pull request #5263 from paulbalandan/filter-sanitize-string
paulbalandan Nov 1, 2021
1ecae2f
Merge pull request #5265 from paulbalandan/ordered_class_elements
paulbalandan Nov 1, 2021
51966d0
Convert bug report to new syntax
paulbalandan Oct 31, 2021
9fb5164
Merge pull request #5264 from paulbalandan/issue-forms
kenjis Nov 1, 2021
c833671
Fix typo: dropdowm --> dropdown
paulbalandan Nov 1, 2021
f2ca146
feat: add valid_url_strict rule
kenjis Nov 1, 2021
10b3de2
docs: make @return strict
kenjis Oct 14, 2021
0f3088c
fix: make the return type of insertBatch() the same as updateBatch()
kenjis Oct 14, 2021
c18c70e
refactor: do not use $this->binds when insertBatch()
kenjis Oct 15, 2021
acd566d
refactor: reduce memory useage when insertBatch() with $set is not null
kenjis Oct 15, 2021
bc36f0c
refactor: resetWrite() when testMode
kenjis Oct 15, 2021
adbdd70
refactor: vendor/bin/rector process
kenjis Oct 15, 2021
8ce7847
test: remove tests for getOriginalQuery()
kenjis Oct 15, 2021
5165550
refactor: do not use $this->binds when updateBatch()
kenjis Oct 15, 2021
3ad6c4c
refactor: reduce memory useage when updateBatch() with $set is not null
kenjis Oct 15, 2021
1b7bc3d
refactor: remove ()
kenjis Nov 1, 2021
94eaf09
test: add test for getOriginalQuery()
kenjis Nov 1, 2021
5ad421a
docs: add breaking changes to changelog
kenjis Nov 1, 2021
6e1194f
refactor: remove ()
kenjis Nov 1, 2021
cc5b1d0
docs: add breaking changes to upgrade note
kenjis Nov 1, 2021
2165b11
Enclose the PR template's notes as comments
paulbalandan Nov 1, 2021
b8c1939
Simplify logic of `number_to_roman` function
paulbalandan Nov 1, 2021
0568464
[Rector] Refactor UnderscoreToCamelCaseVariableNameRector so no longe…
samsonasik Nov 1, 2021
efb3b4d
cast to int for strpos result
samsonasik Nov 1, 2021
0859f20
Merge pull request #5271 from samsonasik/refactor-underscore-to-camel…
samsonasik Nov 1, 2021
9c5f5cc
docs: make the description more precise
kenjis Nov 1, 2021
e08bc93
docs: make the description more specific
kenjis Nov 1, 2021
9810218
Merge pull request #5242 from kenjis/refactor-FiltersTest
kenjis Nov 1, 2021
019ea5a
refactor: remove if statements
kenjis Nov 1, 2021
5b91b08
docs: add how to fix code with Rector
kenjis Nov 2, 2021
1b0850e
refactor: simplify return statement
kenjis Nov 2, 2021
7eaaa42
Merge pull request #5273 from kenjis/fix-contributing/pull_request
kenjis Nov 2, 2021
fab038d
Merge pull request #5267 from kenjis/fix-localization-not-work-for-40…
kenjis Nov 2, 2021
eeaa4db
docs: move CSRF Protection Methods section up
kenjis Nov 2, 2021
8ffd0ad
docs: fix sample code format
kenjis Nov 2, 2021
0705c53
docs: decorate HTML tags with '``'
kenjis Nov 2, 2021
0519177
docs: decorate variables with '``'
kenjis Nov 2, 2021
ab71b75
docs: fix file path decoration
kenjis Nov 2, 2021
81bb21d
Merge pull request #5276 from kenjis/fix-html_helper.rst
kenjis Nov 2, 2021
c0bb804
Merge pull request #5275 from kenjis/fix-security.rst
kenjis Nov 2, 2021
e94394a
Fix compatibility of Postgres result for PHP 8.1
paulbalandan Nov 2, 2021
cb56555
Skip if result object has no `close` method
paulbalandan Nov 2, 2021
af7dcf3
Call `close` in `tearDown`
paulbalandan Nov 2, 2021
32f88ce
Use class const for seeder name
paulbalandan Nov 2, 2021
eb1b621
Remove duplicated `$refresh` property
paulbalandan Nov 2, 2021
45ebd9c
docs: add the reason for the change
kenjis Nov 2, 2021
9d329a7
docs: add the reason for the change
kenjis Nov 2, 2021
af247f4
Merge pull request #5279 from paulbalandan/pgsql-close
paulbalandan Nov 3, 2021
4995720
Merge pull request #5278 from paulbalandan/pgsql-result
paulbalandan Nov 3, 2021
0f036a6
fix: module filters are not discovered when you use module route with…
kenjis Nov 3, 2021
621323b
docs: add sample code for Acme\Blog namespace definition
kenjis Nov 3, 2021
a5e9aae
docs: add about Filter file
kenjis Nov 3, 2021
b1d3dd9
refactor: move discoverFilters() to the instructor
kenjis Nov 3, 2021
0965002
docs: fix doc comments
kenjis Nov 3, 2021
3075273
docs: add why HTTP-verb-based routes are safer
kenjis Nov 4, 2021
ae9f434
docs: add warning about auto route and CSRF protection
kenjis Nov 4, 2021
54130d7
fix: remove mailto,tel,sms from the default valid schemas
kenjis Nov 5, 2021
2ad981a
docs: update explanation of valid_url_strict
kenjis Nov 5, 2021
a8890e1
test: add test for discovering module filters
kenjis Nov 5, 2021
96ffbf9
docs: add section to enable CSRF filter
kenjis Nov 5, 2021
620a560
docs: update coding style and its explanation
kenjis Nov 5, 2021
cdb7b0e
docs: replace php with PHP
kenjis Nov 5, 2021
5fdcd7e
docs: add or fix text decoration
kenjis Nov 5, 2021
03c536f
docs: fix incorrect explanation
kenjis Nov 5, 2021
4f810ac
docs: move note to appropriate place
kenjis Nov 5, 2021
8299a6e
docs: small improvement
kenjis Nov 5, 2021
494b904
docs: update screenshots
kenjis Nov 5, 2021
6c676c4
docs: update screenshot and its explanation
kenjis Nov 5, 2021
85e0d8b
docs: expand the text area
kenjis Nov 5, 2021
7f01e12
docs: remove duplicated return
kenjis Nov 5, 2021
88aeb16
chore: add note to update to the latest version
kenjis Nov 5, 2021
df65368
[Rector] Remove FixClassCaseSensitivityNameRector
samsonasik Nov 5, 2021
3a1683d
Merge pull request #5288 from codeigniter4/samsonasik-patch-1
samsonasik Nov 5, 2021
edacaa4
Merge pull request #5287 from kenjis/update-bug-report-template
kenjis Nov 5, 2021
031e4b8
Merge pull request #5285 from kenjis/update-tutorial
kenjis Nov 5, 2021
01c55b0
Merge pull request #5281 from kenjis/fix-modules.rst
kenjis Nov 6, 2021
16c40a4
Merge pull request #5268 from kenjis/add-valid_url_strict
kenjis Nov 7, 2021
6b882e9
Merge pull request #5280 from kenjis/fix-module-route-filter
kenjis Nov 7, 2021
9c712aa
docs: fix RST format
kenjis Nov 7, 2021
8b1a786
docs: fix by review
kenjis Nov 7, 2021
4f75e9b
Merge pull request #5284 from kenjis/fix-docs-routing.rst
kenjis Nov 7, 2021
f6cd180
Merge pull request #5291 from kenjis/fix-docs-caching.rst
kenjis Nov 7, 2021
3fe0214
Merge pull request #5202 from kenjis/fix-insertBatch-memory-leak
kenjis Nov 8, 2021
0334967
Prep for 4.1.5 release
MGatner Nov 8, 2021
eede117
Merge pull request #5293 from codeigniter4/release-4.1.5
MGatner Nov 8, 2021
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
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ contributing/ export-ignore
.editorconfig export-ignore
.nojekyll export-ignore export-ignore
CODE_OF_CONDUCT.md export-ignore
DCO.txt export-ignore
PULL_REQUEST_TEMPLATE.md export-ignore
stale.yml export-ignore
Vagrantfile.dist export-ignore
Expand Down
39 changes: 0 additions & 39 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

105 changes: 105 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
name: Bug report
description: Create a report to help us improve CodeIgniter
title: "Bug: "
labels: ['bug']

body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!

Before you begin, **please ensure that there are no existing issues,
whether still open or closed, related to your report**.
If there is, your report will be closed promptly.

And if you are not using the [latest version](https://github.com/codeigniter4/CodeIgniter4/releases) of CodeIgniter, please update.

---

- type: dropdown
id: php-version
attributes:
label: PHP Version
description: Which PHP versions did you run your code?
multiple: true
options:
- '7.3'
- '7.4'
- '8.0'
- '8.1'
validations:
required: true

- type: input
id: codeigniter-version
attributes:
label: CodeIgniter4 Version
validations:
required: true

- type: dropdown
id: operating-systems
attributes:
label: Which operating systems have you tested for this bug?
description: You may select more than one.
multiple: true
options:
- macOS
- Windows
- Linux
validations:
required: true

- type: dropdown
id: server
attributes:
label: Which server did you use?
options:
- apache
- cli
- cli-server (PHP built-in webserver)
- cgi-fcgi
- fpm-fcgi
- phpdbg
validations:
required: true

- type: input
id: database
attributes:
label: Database
validations:
required: false

- type: textarea
id: description
attributes:
label: What happened?
placeholder: Tell us what you see!
validations:
required: true

- type: textarea
attributes:
label: Steps to Reproduce
description: Steps to reproduce the behavior.
validations:
required: true

- type: textarea
attributes:
label: Expected Output
description: What do you expect to happen instead of this filed bug?
validations:
required: true

- type: textarea
attributes:
label: Anything else?
description: |
Links? References? Anything that will give us more context about the issue you are encountering!

Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
validations:
required: false
9 changes: 9 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
blank_issues_enabled: false
contact_links:
- name: CodeIgniter Forum
url: https://forum.codeigniter.com
about: Please ask your support questions in the forums. Thanks!

- name: CodeIgniter Slack channel
url: https://codeigniterchat.slack.com
about: Engage with other members of the community in our Slack channel.
11 changes: 0 additions & 11 deletions .github/ISSUE_TEMPLATE/support-question.md

This file was deleted.

7 changes: 4 additions & 3 deletions PULL_REQUEST_TEMPLATE.md → .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ Explain what you have changed, and why.

**Checklist:**
- [ ] Securely signed commits
- [ ] Component(s) with PHPdocs
- [ ] Component(s) with PHPDoc blocks, only if necessary or adds value
- [ ] Unit testing, with >80% coverage
- [ ] User guide updated
- [ ] Conforms to style guide

---------Remove from here down in your description----------
<!--

**Notes**
- Pull requests must be in English
Expand All @@ -19,4 +19,5 @@ Explain what you have changed, and why.
- Unsolicited pull requests will be considered, but there is no guarantee of acceptance
- Pull requests should be from a feature branch in the contributor's fork of the repository
to the develop branch of the project repository


-->
12 changes: 5 additions & 7 deletions .github/workflows/deploy-apidocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,12 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
tools: phive
coverage: none

- name: Download phpDocumentor v3.1
run: |
cd ./source
curl \
-L https://github.com/phpDocumentor/phpDocumentor/releases/download/v3.1.0/phpDocumentor.phar \
-o admin/phpDocumentor.phar
- name: Download latest phpDocumentor
working-directory: source
run: sudo phive --no-progress install --global --trust-gpg-keys 67F861C3D889C656 phpDocumentor

- name: Prepare API repo
working-directory: api
Expand All @@ -58,7 +56,7 @@ jobs:
- name: Build API in source repo
working-directory: source
run: |
php admin/phpDocumentor.phar run --ansi --verbose
phpDocumentor run --ansi --verbose
cp -R ${GITHUB_WORKSPACE}/source/api/build/* ${GITHUB_WORKSPACE}/api/docs

- name: Deploy to API repo
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-framework.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
run: ./source/.github/scripts/deploy-framework ${GITHUB_WORKSPACE}/source ${GITHUB_WORKSPACE}/framework ${GITHUB_REF##*/}

- name: Release
uses: actions/github-script@v4
uses: actions/github-script@v5
with:
github-token: ${{secrets.ACCESS_TOKEN}}
script: |
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
run: ./source/.github/scripts/deploy-appstarter ${GITHUB_WORKSPACE}/source ${GITHUB_WORKSPACE}/appstarter ${GITHUB_REF##*/}

- name: Release
uses: actions/github-script@v4
uses: actions/github-script@v5
with:
github-token: ${{secrets.ACCESS_TOKEN}}
script: |
Expand Down
75 changes: 75 additions & 0 deletions .github/workflows/test-deptrac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# When a PR is opened or a push is made, perform an
# architectural inspection on the code using Deptrac.
name: Deptrac

on:
pull_request:
branches:
- 'develop'
- '4.*'
paths:
- 'app/**'
- 'system/**'
- 'composer.json'
- 'depfile.yaml'
- '.github/workflows/test-deptrac.yml'
push:
branches:
- 'develop'
- '4.*'
paths:
- 'app/**'
- 'system/**'
- 'composer.json'
- 'depfile.yaml'
- '.github/workflows/test-deptrac.yml'

jobs:
build:
name: Architectural Inspection
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
tools: composer, phive
extensions: intl, json, mbstring, gd, mysqlnd, xdebug, xml, sqlite3

- name: Validate composer.json
run: composer validate --strict

- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Create composer cache directory
run: mkdir -p ${{ steps.composer-cache.outputs.dir }}

- name: Cache composer dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-

- name: Create Deptrac cache directory
run: mkdir -p build/

- name: Cache Deptrac results
uses: actions/cache@v2
with:
path: build
key: ${{ runner.os }}-deptrac-${{ github.sha }}
restore-keys: ${{ runner.os }}-deptrac-

- name: Install dependencies
run: composer update --ansi --no-interaction

- name: Run architectural inspection
run: |
sudo phive --no-progress install --global qossmic/deptrac --trust-gpg-keys B8F640134AB1782E
deptrac analyze --cache-file=build/deptrac.cache
8 changes: 3 additions & 5 deletions .github/workflows/test-phpcpd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,8 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
tools: phive
extensions: intl, json, mbstring, xml
tools: phpcpd
extensions: dom, mbstring

- name: Detect code duplication
run: |
sudo phive --no-progress install --global --trust-gpg-keys 4AA394086372C20A phpcpd
phpcpd --exclude system/Test --exclude system/ThirdParty --exclude system/Database/SQLSRV/Builder.php app/ public/ system/
run: phpcpd --exclude system/Test --exclude system/ThirdParty --exclude system/Database/SQLSRV/Builder.php --exclude system/Database/SQLSRV/Forge.php -- app/ public/ system/
1 change: 0 additions & 1 deletion .github/workflows/test-phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ jobs:
run: |
composer update --ansi --no-interaction
composer remove --ansi --dev --unused -W rector/rector phpstan/phpstan friendsofphp/php-cs-fixer nexusphp/cs-config codeigniter/coding-standard
php -r 'file_put_contents("vendor/laminas/laminas-zendframework-bridge/src/autoload.php", "");'
env:
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}

Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/test-userguide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,22 @@ name: Test User Guide

on:
pull_request:
branches:
- 'develop'
- '4.*'
paths:
- 'user_guide_src/**'
- '.github/workflows/test-userguide.yml'

jobs:
syntax_check:
name: Check User Guide syntax
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v2

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

- uses: ammaraskar/[email protected]
with:
docs-folder: user_guide_src
17 changes: 15 additions & 2 deletions .no-header.php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,22 @@
__DIR__ . '/app',
__DIR__ . '/public',
])
->notName('#Logger\.php$#');
->notName('#Logger\.php$#')
->append([
__DIR__ . '/admin/starter/builds',
]);

$overrides = [];
$overrides = [
'ordered_class_elements' => [
'order' => [
'use_trait',
'constant',
'property',
'method',
],
'sort_algorithm' => 'none',
],
];

$options = [
'cacheFile' => 'build/.no-header.php-cs-fixer.cache',
Expand Down
Loading