Skip to content

4.3.6 Ready code #7588

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 173 commits into from
Jun 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
173 commits
Select commit Hold shift + click to select a range
0f6a341
docs: add changelog and upgrade for v4.3.6
kenjis May 22, 2023
fa817f5
Merge pull request #7513 from kenjis/docs-changelog-v436
kenjis May 22, 2023
12dce39
docs: change parameter descriptions to numbered list
kenjis May 23, 2023
403b473
docs: add warning
kenjis May 23, 2023
3f8f4a9
docs: move &$error description to numbered list
kenjis May 23, 2023
d80fa7c
chore: update psalm-baseline.xml
kenjis May 23, 2023
4c76bbf
chore: add for system/Test/ControllerResponse.php
kenjis May 23, 2023
77b0b1d
chore: add new parameters
kenjis May 23, 2023
1c7212c
chore: exclude files that causes errors
kenjis May 23, 2023
fd7ecde
chore: fix coding style
kenjis May 23, 2023
86cadcf
docs: remove sending PR to https://github.com/FriendsOfPHP/security-a…
kenjis May 23, 2023
c33dd88
Merge pull request #7516 from kenjis/update-psalm-baseline.xml
kenjis May 24, 2023
da8ecfa
Merge pull request #7517 from kenjis/fix-cs-for-v3.17.0
kenjis May 24, 2023
6704da9
docs: move note up
kenjis May 25, 2023
9d265bd
docs: add link to page
kenjis May 25, 2023
2e15098
docs: improve description
kenjis May 25, 2023
de41e83
docs: fix group name
kenjis May 25, 2023
d316a45
docs: fix file name decration
kenjis May 25, 2023
8d96f2d
docs: add deprecated
kenjis May 25, 2023
1584825
docs: add setPad() method
kenjis May 25, 2023
a724f92
Merge pull request #7518 from kenjis/update-RELEASE.md
kenjis May 25, 2023
a4de3e7
refactor: remove unneeded code
kenjis May 26, 2023
da67d3d
fix: class without import. scrolling in examples.
iRedds May 27, 2023
167042a
Merge pull request #7525 from kenjis/refactor-IncomingRequest-getLocale
samsonasik May 30, 2023
fa26b48
build(deps-dev): update rector/rector requirement from 0.16.0 to 0.17.0
dependabot[bot] Jun 1, 2023
c988fd7
Remove ForToForeachRector and AddPregQuoteDelimiterRector and re-run …
samsonasik Jun 1, 2023
4900d7a
rollback comment on removed on run rector
samsonasik Jun 1, 2023
a5958bd
remove unused variable on ForgeTest
samsonasik Jun 2, 2023
95c04c8
Merge pull request #7531 from codeigniter4/dependabot/composer/rector…
samsonasik Jun 2, 2023
8e9e3a4
docs: set TOC depth to 3
kenjis Jun 2, 2023
84a6c51
docs: text decoration
kenjis Jun 2, 2023
291a4bf
docs: add sub section titles
kenjis Jun 2, 2023
8fa52ed
docs: move "Nesting Groups" down
kenjis Jun 2, 2023
3eaecb6
docs: level up "Grouping Routes"
kenjis Jun 2, 2023
eb776e8
docs: level up "Reverse Routing" and "Named Routes"
kenjis Jun 2, 2023
6d8edba
docs: level up "Global Options"
kenjis Jun 2, 2023
0ec5e71
docs: improve section titles
kenjis Jun 2, 2023
c399d66
docs: move "Array Callable Syntax" up
kenjis Jun 2, 2023
64370c4
docs: add sections
kenjis Jun 2, 2023
f2d87d2
style: break long lines
kenjis Jun 2, 2023
56f855c
style: add empty lines
kenjis Jun 2, 2023
3a70fb4
refactor: add variable for if condition
kenjis Jun 3, 2023
ec607be
refactor: remove variable
kenjis Jun 3, 2023
9050b8a
test: replace ApplicationDirectory with AppDirectory
kenjis Jun 3, 2023
3672ce9
docs: add comments
kenjis Jun 3, 2023
e05c0b7
test: rename test method names
kenjis Jun 3, 2023
7f9ffac
test: rename test methods and add comments
kenjis Jun 3, 2023
60188ac
test: rename test method names
kenjis Jun 3, 2023
9dab01a
docs: add comments
kenjis Jun 3, 2023
d8a1565
docs: make doc comments more specific
kenjis Jun 3, 2023
7af4ff8
fix typos
LukaMax Jun 3, 2023
2e93b9b
Merge pull request #7537 from LukaMax/TimeLegacy
samsonasik Jun 3, 2023
8fc46bb
docs: fix by proofreading
kenjis Jun 3, 2023
0de4ce2
Update user_guide_src/source/database/query_builder/062.php
iRedds Jun 3, 2023
85bfa44
Merge pull request #7526 from iRedds/doc-qb-examples
kenjis Jun 3, 2023
923e2b3
refactor: fix incorrect return value
kenjis Jun 6, 2023
90321e7
Merge pull request #7523 from kenjis/docs-cli
kenjis Jun 6, 2023
1e8e60e
Merge pull request #7532 from kenjis/docs-routing.rst
kenjis Jun 6, 2023
505041c
Merge pull request #7534 from kenjis/refactor-View
kenjis Jun 6, 2023
2b04972
Merge pull request #7535 from kenjis/test-FileLocator
kenjis Jun 6, 2023
335ab86
Merge pull request #7542 from kenjis/fix-Entity-return-type
kenjis Jun 6, 2023
05fbcd4
test: add test for feature test with validation twice
kenjis Jun 7, 2023
dbf469f
fix: feature testing does not reset validation result
kenjis Jun 7, 2023
0410b82
docs: fix by proofreading
kenjis Jun 7, 2023
8c0b58e
test: improve test method names
kenjis Jun 8, 2023
ce2df7a
test: add test for invalid DBGroup
kenjis Jun 8, 2023
b5bea51
docs: add @TODO
kenjis Jun 8, 2023
66e3804
docs: remove unneeded @throws
kenjis Jun 4, 2023
0012fe3
docs: remove uneeded @throws
kenjis Jun 8, 2023
96e690c
fix: DBGroup is ignored in validation process while using placeholders
kenjis Jun 8, 2023
0e73931
docs: improve comment
kenjis Jun 8, 2023
0318d87
fix: [BC] Validation::check() cannot specify non-default database group.
kenjis Jun 8, 2023
a411369
docs: add changelog and upgrade guide
kenjis Jun 8, 2023
e634bd5
Merge pull request #7515 from kenjis/docs-validation-data-array
kenjis Jun 8, 2023
c68e6d0
docs: fix RST format or so
kenjis Jun 8, 2023
470c41f
Merge pull request #7548 from kenjis/fix-feature-test-validation
kenjis Jun 8, 2023
fa86c55
Merge pull request #7551 from kenjis/fix-docs-changelogs-435
kenjis Jun 8, 2023
0798239
Merge pull request #7549 from kenjis/fix-validation-placeholder-DBGroup
kenjis Jun 8, 2023
f36ef70
docs: improve doc comments
kenjis Jun 9, 2023
ebccb29
refactor: do not reassign
kenjis Jun 9, 2023
07f3274
refactor: use ternary operator
kenjis Jun 9, 2023
d7826f5
docs: add section titles
kenjis Jun 10, 2023
de3635b
docs: fix section title
kenjis Jun 10, 2023
7789dcf
docs: capitalize first letter of title
kenjis Jun 10, 2023
c372070
docs: fix variable notation
kenjis Jun 10, 2023
df4e640
docs: decorate string in sample code
kenjis Jun 10, 2023
b93a901
docs: do not show unneeded `<?php` in sample code
kenjis Jun 10, 2023
a3c2b71
docs: fix incorrect property name
kenjis Jun 10, 2023
9426a5a
docs: make TOC depth 3
kenjis Jun 10, 2023
2ebf497
docs: fix section title
kenjis Jun 10, 2023
e277406
docs: fix text decoration
kenjis Jun 10, 2023
bceb19e
docs: add section titles
kenjis Jun 10, 2023
5eeb988
docs: fix incorrect description
kenjis Jun 10, 2023
faaadd6
docs: update sample files
kenjis Jun 10, 2023
b9d4bf9
docs: update DBDebug for testing
kenjis Jun 10, 2023
a6b876b
test: fix charset for OCI8
kenjis Jun 10, 2023
99b93bf
fix: [Postgre] Semicolon in the connection parameters break the DSN s…
michalsn Jun 10, 2023
e936bb3
Merge pull request #7555 from kenjis/fix-docs-database-configuration.rst
kenjis Jun 10, 2023
7c5a540
docs: decorate example code
kenjis Jun 11, 2023
b79feaa
docs: decorate text
kenjis Jun 11, 2023
ea5669e
docs: add link to PHP manual
kenjis Jun 11, 2023
f51fb5d
docs: improve description
kenjis Jun 11, 2023
13fbaa5
docs: align comments
kenjis Jun 11, 2023
af55149
docs: add warning to sample code
kenjis Jun 11, 2023
dda5a01
Merge pull request #7553 from kenjis/refactor-Database-initDriver
kenjis Jun 11, 2023
23829e3
Merge pull request #7554 from kenjis/fix-docs-database-connecting.rst
kenjis Jun 11, 2023
647afc3
Merge pull request #7556 from kenjis/test-update-db-configs
kenjis Jun 11, 2023
019ebea
docs: add sub section title
kenjis Jun 11, 2023
a24e4b6
docs: add explanation for namespacing
kenjis Jun 12, 2023
1ae4363
docs: add explanation and fix incorrect Parameter values
kenjis Jun 12, 2023
ef76729
fix: incorrect sql without space before "ON DUPLICATE KEY UPDATE"
kenjis Jun 12, 2023
23f72b6
refactor: remove Factories::models()
paulbalandan Jun 13, 2023
7a394d2
Merge pull request #7566 from paulbalandan/phpstan-cleanup
paulbalandan Jun 13, 2023
f6bcb65
docs: fix by proofreading
kenjis Jun 13, 2023
a842af4
docs: improve description for required_with and required_without
kenjis Jun 13, 2023
ef732e0
test: add tests for required_with
kenjis Jun 12, 2023
281615f
test: add tests for required_with with zero value
kenjis Jun 13, 2023
b7e15b9
refactor: extract methods
kenjis Jun 12, 2023
0a54bca
refactor: remove uneeded unset()
kenjis Jun 12, 2023
675b32e
fix: parameter types
kenjis Jun 12, 2023
021a616
style: break long line
kenjis Jun 12, 2023
cd0fb1a
refactor: remove unneeded variables
kenjis Jun 12, 2023
d83a8ba
style: break long line
kenjis Jun 12, 2023
c7865da
fix: param types
kenjis Jun 13, 2023
87b5237
docs: remove `of` in comments
kenjis Jun 13, 2023
39230fe
style: break long line
kenjis Jun 13, 2023
49dabc1
Merge pull request #7560 from kenjis/fix-docs-routing.rst
kenjis Jun 13, 2023
3185942
fix: wrong classname in exception message
kenjis Jun 13, 2023
5b0c405
fix: fix the image handler.
ping-yee Jun 13, 2023
d2ef51f
docs: replace mixed type at Encryption class.
ping-yee Jun 13, 2023
a18c7b9
docs: replace mixed type at Config class.
ping-yee Jun 13, 2023
d4bcffd
test: add test for feature testing and auto routing improved
kenjis Jun 6, 2023
7dbf0d1
fix: [BC] feature testing may use incorrect HTTP verb for auto routin…
kenjis Jun 6, 2023
a932dc1
test: update test code
kenjis Jun 6, 2023
3410ea9
fix: ensure HTTP verb is lower case
kenjis Jun 6, 2023
c32182e
refactor: remove unused private property
kenjis Jun 6, 2023
ab0ebb9
docs: add docs
kenjis Jun 6, 2023
27729b1
chore: add skip rule for deprecated constructor param
kenjis Jun 7, 2023
fbff5a2
docs: add deprecation
kenjis Jun 10, 2023
f22139b
docs: add value examples
kenjis Jun 13, 2023
cfa97d3
Merge pull request #7558 from kenjis/fix-docs-libraries/validation.rst
kenjis Jun 13, 2023
c603406
Merge pull request #7564 from kenjis/fix-qb-upsertBatch
kenjis Jun 13, 2023
5d6d4be
Merge pull request #7565 from kenjis/refactor-validation-processRules
kenjis Jun 13, 2023
e31579e
Merge pull request #7569 from kenjis/fix-cell-error-msg
kenjis Jun 13, 2023
78b5156
docs: remove redundant note
kenjis Jun 13, 2023
e431447
docs: move note up
kenjis Jun 13, 2023
062e8d5
docs: fix incorrect sample code
kenjis Jun 13, 2023
30ffa63
docs: use term "route path" and "route handler"
kenjis Jun 13, 2023
61d87fa
docs: add note in section "Auto Routing (Improved)"
kenjis Jun 13, 2023
ebaa5ea
docs: improve section title
kenjis Jun 13, 2023
c87169d
Merge pull request #7543 from kenjis/fix-feature-testing-with-autoroute
kenjis Jun 13, 2023
9527ee9
refactor: ensure $httpVerb is lower case
kenjis Jun 14, 2023
8ebbc9e
docs: fix incorrect comments
kenjis Jun 14, 2023
5c17f47
chore(deps-dev): update rector/rector requirement from 0.17.0 to 0.17.1
dependabot[bot] Jun 14, 2023
f658272
update rector config and re-run rector
samsonasik Jun 14, 2023
f171b08
skip SimplifyRegexPatternRector
samsonasik Jun 15, 2023
8967217
Re-run Rector
samsonasik Jun 15, 2023
9d4e10c
Merge pull request #7578 from codeigniter4/dependabot/composer/rector…
samsonasik Jun 15, 2023
712ddbf
Merge pull request #7540 from kenjis/docs-remove-throws
kenjis Jun 15, 2023
95be341
Merge pull request #7575 from kenjis/refactor-AutoRouterImproved-getR…
kenjis Jun 15, 2023
bfd952c
Merge pull request #7576 from kenjis/fix-docs-query_builder-sample
kenjis Jun 15, 2023
8b8da0f
docs: change note to warning
kenjis Jun 15, 2023
59da173
docs: fix by proofreading
kenjis Jun 15, 2023
8e5c50e
chore: scan tests/_support
kenjis Jun 15, 2023
1d2eb63
docs: add type null.
ping-yee Jun 15, 2023
ed32757
docs: modify the type.
ping-yee Jun 15, 2023
66ea8c0
Merge pull request #7573 from kenjis/fix-docs-routing.rst
kenjis Jun 16, 2023
8069635
Merge pull request #7571 from ping-yee/230613_encryption
kenjis Jun 16, 2023
d827fc9
Merge pull request #7572 from ping-yee/230614_config
kenjis Jun 16, 2023
eea5087
Merge pull request #7580 from kenjis/fix-psalm_autoload.php
kenjis Jun 17, 2023
557b0ed
Merge pull request #7570 from ping-yee/230613_img
kenjis Jun 17, 2023
1f05ec6
Prep for 4.3.6 release
kenjis Jun 17, 2023
b730910
Merge pull request #7587 from kenjis/release-4.3.6
kenjis Jun 17, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
'ThirdParty',
'Validation/Views',
])
->notPath([
'_support/View/Cells/multiplier.php',
'_support/View/Cells/colors.php',
'_support/View/Cells/addition.php',
])
->notName('#Foobar.php$#')
->append([
__FILE__,
Expand Down
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# Changelog

## [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)

### Breaking Changes

* fix: [Validation] DBGroup is ignored when checking the value of a placeholder by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7549
* fix: [Auto Routing Improved] feature testing may not find controller/method by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7543

### Fixed Bugs

* fix: feature test with validation by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7548
* fix: [Postgre] Semicolon in the connection parameters break the DSN string by @michalsn in https://github.com/codeigniter4/CodeIgniter4/pull/7552
* fix: [QueryBuilder] incorrect SQL without space before "ON DUPLICATE KEY UPDATE" by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7564
* fix: wrong classname in exception message in Cell by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7569
* fix: `imagecreatefrompng()` gd-png: libpng warning by @ping-yee in https://github.com/codeigniter4/CodeIgniter4/pull/7570

### Refactoring

* refactor: remove unneeded code in IncomingRequest by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7525
* refactor: View by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7534
* refactor: [Entity] fix incorrect return value by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7542
* refactor: Database::initDriver() by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7553
* refactor: remove Factories::models() by @paulbalandan in https://github.com/codeigniter4/CodeIgniter4/pull/7566
* refactor: Validation::processRules() by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7565
* refactor: [Auto Routing Improved] ensure $httpVerb is lower case by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/7575

## [v4.3.5](https://github.com/codeigniter4/CodeIgniter4/tree/v4.3.5) (2023-05-21)
[Full Changelog](https://github.com/codeigniter4/CodeIgniter4/compare/v4.3.4...v4.3.5)

Expand Down
8 changes: 0 additions & 8 deletions admin/RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,6 @@ the existing content.
* Create **user_guide_src/source/installation/upgrade_{next_version}.rst** and add it to
**upgrading.rst** (See **next-upgrading-guide.rst**)

## After Publishing Security Advisory

* Send a PR to [PHP Security Advisories Database](https://github.com/FriendsOfPHP/security-advisories).
* E.g. https://github.com/FriendsOfPHP/security-advisories/pull/606
* See https://github.com/FriendsOfPHP/security-advisories#contributing
* Don't forget to run `php -d memory_limit=-1 validator.php`, before
submitting the PR

## Appendix

### Sphinx Installation
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"phpunit/phpcov": "^8.2",
"phpunit/phpunit": "^9.1",
"predis/predis": "^1.1 || ^2.0",
"rector/rector": "0.16.0",
"rector/rector": "0.17.1",
"vimeo/psalm": "^5.0"
},
"suggest": {
Expand Down
5 changes: 0 additions & 5 deletions phpstan-baseline.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,6 @@ parameters:
count: 1
path: system/HTTP/Files/UploadedFile.php

-
message: "#^Property CodeIgniter\\\\HTTP\\\\IncomingRequest\\:\\:\\$locale \\(string\\) on left side of \\?\\? is not nullable\\.$#"
count: 1
path: system/HTTP/IncomingRequest.php

-
message: "#^Property CodeIgniter\\\\HTTP\\\\Message\\:\\:\\$protocolVersion \\(string\\) on left side of \\?\\? is not nullable\\.$#"
count: 1
Expand Down
156 changes: 39 additions & 117 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,212 +1,134 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="4.30.0@d0bc6e25d89f649e4f36a534f330f8bb4643dd69">
<file src="app/Config/Routes.php">
<MissingFile occurrences="1">
<code>require APPPATH . 'Config/' . ENVIRONMENT . '/Routes.php'</code>
</MissingFile>
</file>
<files psalm-version="5.12.0@f90118cdeacd0088e7215e64c0c99ceca819e176">
<file src="system/Cache/Handlers/MemcachedHandler.php">
<UndefinedClass occurrences="3">
<UndefinedClass>
<code>Memcache</code>
<code>Memcache</code>
<code>Memcache</code>
</UndefinedClass>
<UndefinedDocblockClass occurrences="7">
<code>$this-&gt;memcached</code>
<code>$this-&gt;memcached</code>
<code>$this-&gt;memcached</code>
<code>$this-&gt;memcached</code>
<code>$this-&gt;memcached</code>
<code>$this-&gt;memcached</code>
<UndefinedDocblockClass>
<code><![CDATA[$this->memcached]]></code>
<code><![CDATA[$this->memcached]]></code>
<code><![CDATA[$this->memcached]]></code>
<code><![CDATA[$this->memcached]]></code>
<code><![CDATA[$this->memcached]]></code>
<code><![CDATA[$this->memcached]]></code>
<code>Memcache|Memcached</code>
</UndefinedDocblockClass>
</file>
<file src="system/Commands/Utilities/Routes/AutoRouterImproved/ControllerMethodReader.php">
<DuplicateArrayKey occurrences="1">
<code>$routeWithoutController</code>
</DuplicateArrayKey>
</file>
<file src="system/Commands/Utilities/Routes/ControllerMethodReader.php">
<DuplicateArrayKey occurrences="2">
<DuplicateArrayKey>
<code>$routeWithoutController</code>
<code>$routeWithoutController</code>
</DuplicateArrayKey>
</file>
<file src="system/Database/BasePreparedQuery.php">
<InaccessibleProperty occurrences="1">
<code>$this-&gt;db-&gt;transStatus</code>
<InaccessibleProperty>
<code><![CDATA[$this->db->transStatus]]></code>
</InaccessibleProperty>
</file>
<file src="system/Database/OCI8/Connection.php">
<UndefinedConstant occurrences="5">
<UndefinedConstant>
<code>OCI_COMMIT_ON_SUCCESS</code>
<code>OCI_COMMIT_ON_SUCCESS</code>
<code>OCI_COMMIT_ON_SUCCESS</code>
<code>OCI_NO_AUTO_COMMIT</code>
<code>SQLT_CHR</code>
</UndefinedConstant>
</file>
<file src="system/Database/SQLSRV/Connection.php">
<UndefinedConstant occurrences="3">
<code>SQLSRV_ENC_CHAR</code>
<code>SQLSRV_ERR_ERRORS</code>
<code>SQLSRV_ERR_ERRORS</code>
</UndefinedConstant>
</file>
<file src="system/Database/SQLSRV/Result.php">
<UndefinedConstant occurrences="30">
<code>SQLSRV_FETCH_ASSOC</code>
<code>SQLSRV_SQLTYPE_BIGINT</code>
<code>SQLSRV_SQLTYPE_BIT</code>
<code>SQLSRV_SQLTYPE_CHAR</code>
<code>SQLSRV_SQLTYPE_DATE</code>
<code>SQLSRV_SQLTYPE_DATETIME</code>
<code>SQLSRV_SQLTYPE_DATETIME2</code>
<code>SQLSRV_SQLTYPE_DATETIMEOFFSET</code>
<code>SQLSRV_SQLTYPE_DECIMAL</code>
<code>SQLSRV_SQLTYPE_FLOAT</code>
<code>SQLSRV_SQLTYPE_IMAGE</code>
<code>SQLSRV_SQLTYPE_INT</code>
<code>SQLSRV_SQLTYPE_MONEY</code>
<code>SQLSRV_SQLTYPE_NCHAR</code>
<code>SQLSRV_SQLTYPE_NTEXT</code>
<code>SQLSRV_SQLTYPE_NUMERIC</code>
<code>SQLSRV_SQLTYPE_NVARCHAR</code>
<code>SQLSRV_SQLTYPE_REAL</code>
<code>SQLSRV_SQLTYPE_SMALLDATETIME</code>
<code>SQLSRV_SQLTYPE_SMALLINT</code>
<code>SQLSRV_SQLTYPE_SMALLMONEY</code>
<code>SQLSRV_SQLTYPE_TEXT</code>
<code>SQLSRV_SQLTYPE_TIME</code>
<code>SQLSRV_SQLTYPE_TIMESTAMP</code>
<code>SQLSRV_SQLTYPE_TINYINT</code>
<code>SQLSRV_SQLTYPE_UDT</code>
<code>SQLSRV_SQLTYPE_UNIQUEIDENTIFIER</code>
<code>SQLSRV_SQLTYPE_VARBINARY</code>
<code>SQLSRV_SQLTYPE_VARCHAR</code>
<code>SQLSRV_SQLTYPE_XML</code>
</UndefinedConstant>
</file>
<file src="system/Debug/Toolbar/Views/toolbar.tpl.php">
<InaccessibleMethod occurrences="1">
<InaccessibleMethod>
<code>renderTimeline</code>
</InaccessibleMethod>
<UndefinedGlobalVariable occurrences="1">
<UndefinedGlobalVariable>
<code>$config</code>
</UndefinedGlobalVariable>
</file>
<file src="system/Email/Email.php">
<LoopInvalidation occurrences="1">
<LoopInvalidation>
<code>$timestamp</code>
</LoopInvalidation>
</file>
<file src="system/HTTP/Files/FileCollection.php">
<EmptyArrayAccess occurrences="1">
<EmptyArrayAccess>
<code>$output[$name]</code>
</EmptyArrayAccess>
</file>
<file src="system/Helpers/text_helper.php">
<LoopInvalidation occurrences="3">
<LoopInvalidation>
<code>$count</code>
<code>$count</code>
<code>$count</code>
</LoopInvalidation>
</file>
<file src="system/I18n/TimeTrait.php">
<MissingImmutableAnnotation occurrences="3">
<MissingImmutableAnnotation>
<code>#[ReturnTypeWillChange]</code>
<code>#[ReturnTypeWillChange]</code>
<code>#[ReturnTypeWillChange]</code>
</MissingImmutableAnnotation>
</file>
<file src="system/Test/ControllerResponse.php">
<UnsupportedPropertyReferenceUsage>
<code><![CDATA[$this->dom = &$this->domParser]]></code>
</UnsupportedPropertyReferenceUsage>
</file>
<file src="tests/_support/Config/Filters.php">
<UndefinedGlobalVariable occurrences="1">
<UndefinedGlobalVariable>
<code>$filters</code>
</UndefinedGlobalVariable>
</file>
<file src="tests/_support/Config/Routes.php">
<UndefinedGlobalVariable occurrences="2">
<UndefinedGlobalVariable>
<code>$routes</code>
<code>$routes</code>
</UndefinedGlobalVariable>
</file>
<file src="tests/_support/View/Cells/addition.php">
<UndefinedGlobalVariable occurrences="1">
<code>$value</code>
</UndefinedGlobalVariable>
</file>
<file src="tests/_support/View/Cells/colors.php">
<InvalidScope occurrences="1">
<InvalidScope>
<code>$this</code>
</InvalidScope>
</file>
<file src="tests/_support/View/Cells/greeting.php">
<UndefinedGlobalVariable occurrences="2">
<code>$greeting</code>
<code>$name</code>
</UndefinedGlobalVariable>
</file>
<file src="tests/_support/View/Cells/lister.php">
<UndefinedGlobalVariable occurrences="1">
<code>$items</code>
</UndefinedGlobalVariable>
</file>
<file src="tests/_support/View/Cells/multiplier.php">
<UndefinedGlobalVariable occurrences="1">
<code>$value</code>
</UndefinedGlobalVariable>
</file>
<file src="tests/_support/View/Cells/notice.php">
<UndefinedGlobalVariable occurrences="1">
<code>$message</code>
</UndefinedGlobalVariable>
</file>
<file src="tests/system/CLI/ConsoleTest.php">
<DuplicateArrayKey occurrences="1">
<DuplicateArrayKey>
<code>$command</code>
</DuplicateArrayKey>
</file>
<file src="tests/system/CommonFunctionsTest.php">
<UndefinedClass occurrences="2">
<code>'JobModel'</code>
<UndefinedClass>
<code>UnexsistenceClass</code>
</UndefinedClass>
</file>
<file src="tests/system/Config/BaseConfigTest.php">
<UndefinedClass occurrences="1">
<code>SimpleConfig</code>
</UndefinedClass>
</file>
<file src="tests/system/Config/FactoriesTest.php">
<UndefinedClass occurrences="1">
<code>'SomeWidget'</code>
<UndefinedClass>
<code><![CDATA['SomeWidget']]></code>
</UndefinedClass>
</file>
<file src="tests/system/Database/BaseConnectionTest.php">
<InaccessibleProperty occurrences="2">
<code>$db-&gt;username</code>
<code>$db-&gt;username</code>
<InaccessibleProperty>
<code><![CDATA[$db->username]]></code>
<code><![CDATA[$db->username]]></code>
</InaccessibleProperty>
</file>
<file src="tests/system/Database/Live/OCI8/CallStoredProcedureTest.php">
<UndefinedConstant occurrences="3">
<UndefinedConstant>
<code>OCI_ASSOC</code>
<code>OCI_B_CURSOR</code>
<code>OCI_RETURN_NULLS</code>
</UndefinedConstant>
</file>
<file src="tests/system/Entity/EntityTest.php">
<EmptyArrayAccess occurrences="1">
<EmptyArrayAccess>
<code>$current[$key]</code>
</EmptyArrayAccess>
</file>
<file src="tests/system/HTTP/RedirectResponseTest.php">
<EmptyArrayAccess occurrences="1">
<code>$_SESSION['_ci_old_input']</code>
<EmptyArrayAccess>
<code><![CDATA[$_SESSION['_ci_old_input']]]></code>
</EmptyArrayAccess>
</file>
<file src="tests/system/Test/ControllerTestTraitTest.php">
<UndefinedClass occurrences="1">
<UndefinedClass>
<code>NeverHeardOfIt</code>
</UndefinedClass>
</file>
Expand Down
2 changes: 2 additions & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
autoloader="psalm_autoload.php"
cacheDirectory="build/psalm/"
errorBaseline="psalm-baseline.xml"
findUnusedBaselineEntry="false"
findUnusedCode="false"
>
<projectFiles>
<directory name="app/" />
Expand Down
19 changes: 19 additions & 0 deletions psalm_autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,23 @@
}
}

$dirs = [
'tests/_support/Controllers',
];

foreach ($dirs as $dir) {
$dir = __DIR__ . '/' . $dir;
if (! is_dir($dir)) {
continue;
}

chdir($dir);

foreach (glob('*.php') as $filename) {
$filePath = realpath($dir . '/' . $filename);

require_once $filePath;
}
}

chdir(__DIR__);
Loading