chore: update CodeIgniter to 4.2.4 + other dependencies to latest

This commit is contained in:
Yassine Doghri 2022-08-20 10:08:15 +00:00
parent e5d16e8711
commit 37f086075e
11 changed files with 2059 additions and 2858 deletions

View File

@ -54,7 +54,7 @@ class App extends BaseConfig
* URI PROTOCOL
* --------------------------------------------------------------------------
*
* This item determines which getServer global should be used to retrieve the
* This item determines which server global should be used to retrieve the
* URI string. The default setting of 'REQUEST_URI' works for most servers.
* If your links do not seem to work, try one of the other delicious flavors:
*

View File

@ -60,7 +60,7 @@ class Logger extends BaseConfig
* The logging system supports multiple actions to be taken when something
* is logged. This is done by allowing for multiple Handlers, special classes
* designed to write the log to their chosen destinations, whether that is
* a file on the getServer, a cloud-based service, or even taking actions such
* a file on the server, a cloud-based service, or even taking actions such
* as emailing the dev team.
*
* Each handler is defined by the class name used for that handler, and it

View File

@ -35,8 +35,8 @@ class Paths
*
* If you want this front controller to use a different "app"
* folder than the default one you can set its name here. The folder
* can also be renamed or relocated anywhere on your getServer. If
* you do, use a full getServer path.
* can also be renamed or relocated anywhere on your server. If
* you do, use a full server path.
*
* @see http://codeigniter.com/user_guide/general/managing_apps.html
*/

View File

@ -42,6 +42,7 @@ class UserModel extends MythAuthUserModel
public function getPodcastContributor(int $userId, int $podcastId): ?User
{
// @phpstan-ignore-next-line
return $this->select('users.*, podcasts_users.podcast_id as podcast_id, auth_groups.name as podcast_role')
->join('podcasts_users', 'podcasts_users.user_id = users.id')
->join('auth_groups', 'auth_groups.id = podcasts_users.group_id')

View File

@ -7,17 +7,17 @@
"license": "AGPL-3.0-or-later",
"require": {
"php": "^8.0",
"codeigniter4/framework": "^4.2.1",
"codeigniter4/framework": "^v4.2.4",
"james-heinrich/getid3": "^2.0.x-dev",
"whichbrowser/parser": "^v2.1.7",
"geoip2/geoip2": "^v2.12.2",
"geoip2/geoip2": "v2.13.0",
"myth/auth": "dev-develop",
"league/commonmark": "^2.3.3",
"league/commonmark": "^2.3.5",
"vlucas/phpdotenv": "^v5.4.1",
"league/html-to-markdown": "^v5.1.0",
"opawg/user-agents-php": "^v1.0",
"adaures/ipcat-php": "^1.0",
"adaures/podcast-persons-taxonomy": "^1.0",
"adaures/ipcat-php": "^v1.0.0",
"adaures/podcast-persons-taxonomy": "^v1.0.0",
"phpseclib/phpseclib": "~2.0.37",
"michalsn/codeigniter4-uuid": "dev-develop",
"essence/essence": "^3.5.4",
@ -26,11 +26,11 @@
"melbahja/seo": "^v2.1.0"
},
"require-dev": {
"mikey179/vfsstream": "v1.6.10",
"mikey179/vfsstream": "^v1.6.11",
"phpunit/phpunit": "^9.5.21",
"captainhook/captainhook": "^5.10.10",
"captainhook/captainhook": "^5.10.11",
"symplify/easy-coding-standard": "^10.3.3",
"phpstan/phpstan": "^1.8.0",
"phpstan/phpstan": "^1.8.2",
"rector/rector": "^0.12.23",
"symplify/coding-standard": "^10.3.3"
},

363
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "9605e8e2a063e48a811a8feeca49245d",
"content-hash": "c7fb331cbf17ff8a7b1712778115dd20",
"packages": [
{
"name": "adaures/ipcat-php",
@ -75,26 +75,26 @@
},
{
"name": "brick/math",
"version": "0.9.3",
"version": "0.10.2",
"source": {
"type": "git",
"url": "https://github.com/brick/math.git",
"reference": "ca57d18f028f84f777b2168cd1911b0dee2343ae"
"reference": "459f2781e1a08d52ee56b0b1444086e038561e3f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/brick/math/zipball/ca57d18f028f84f777b2168cd1911b0dee2343ae",
"reference": "ca57d18f028f84f777b2168cd1911b0dee2343ae",
"url": "https://api.github.com/repos/brick/math/zipball/459f2781e1a08d52ee56b0b1444086e038561e3f",
"reference": "459f2781e1a08d52ee56b0b1444086e038561e3f",
"shasum": ""
},
"require": {
"ext-json": "*",
"php": "^7.1 || ^8.0"
"php": "^7.4 || ^8.0"
},
"require-dev": {
"php-coveralls/php-coveralls": "^2.2",
"phpunit/phpunit": "^7.5.15 || ^8.5 || ^9.0",
"vimeo/psalm": "4.9.2"
"phpunit/phpunit": "^9.0",
"vimeo/psalm": "4.25.0"
},
"type": "library",
"autoload": {
@ -117,19 +117,15 @@
],
"support": {
"issues": "https://github.com/brick/math/issues",
"source": "https://github.com/brick/math/tree/0.9.3"
"source": "https://github.com/brick/math/tree/0.10.2"
},
"funding": [
{
"url": "https://github.com/BenMorel",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/brick/math",
"type": "tidelift"
}
],
"time": "2021-08-15T20:50:18+00:00"
"time": "2022-08-10T22:54:19+00:00"
},
{
"name": "chrisjean/php-ico",
@ -173,16 +169,16 @@
},
{
"name": "codeigniter4/framework",
"version": "v4.2.1",
"version": "v4.2.4",
"source": {
"type": "git",
"url": "https://github.com/codeigniter4/framework.git",
"reference": "f65a2cff3a572c58c8ab9c8f61bdba904362b549"
"reference": "f91bc95493dcbdc398372e1366f09827656f2982"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/codeigniter4/framework/zipball/f65a2cff3a572c58c8ab9c8f61bdba904362b549",
"reference": "f65a2cff3a572c58c8ab9c8f61bdba904362b549",
"url": "https://api.github.com/repos/codeigniter4/framework/zipball/f91bc95493dcbdc398372e1366f09827656f2982",
"reference": "f91bc95493dcbdc398372e1366f09827656f2982",
"shasum": ""
},
"require": {
@ -223,7 +219,7 @@
"slack": "https://codeigniterchat.slack.com",
"source": "https://github.com/codeigniter4/CodeIgniter4"
},
"time": "2022-06-16T13:53:25+00:00"
"time": "2022-08-13T13:46:07+00:00"
},
{
"name": "codeigniter4/settings",
@ -281,16 +277,16 @@
},
{
"name": "composer/ca-bundle",
"version": "1.3.2",
"version": "1.3.3",
"source": {
"type": "git",
"url": "https://github.com/composer/ca-bundle.git",
"reference": "fd5dd441932a7e10ca6e5b490e272d34c8430640"
"reference": "30897edbfb15e784fe55587b4f73ceefd3c4d98c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/composer/ca-bundle/zipball/fd5dd441932a7e10ca6e5b490e272d34c8430640",
"reference": "fd5dd441932a7e10ca6e5b490e272d34c8430640",
"url": "https://api.github.com/repos/composer/ca-bundle/zipball/30897edbfb15e784fe55587b4f73ceefd3c4d98c",
"reference": "30897edbfb15e784fe55587b4f73ceefd3c4d98c",
"shasum": ""
},
"require": {
@ -329,7 +325,7 @@
"support": {
"irc": "irc://irc.freenode.org/composer",
"issues": "https://github.com/composer/ca-bundle/issues",
"source": "https://github.com/composer/ca-bundle/tree/1.3.2"
"source": "https://github.com/composer/ca-bundle/tree/1.3.3"
},
"funding": [
{
@ -345,7 +341,7 @@
"type": "tidelift"
}
],
"time": "2022-05-24T11:56:16+00:00"
"time": "2022-07-20T07:14:26+00:00"
},
{
"name": "dflydev/dot-access-data",
@ -591,16 +587,16 @@
},
{
"name": "geoip2/geoip2",
"version": "v2.12.2",
"version": "v2.13.0",
"source": {
"type": "git",
"url": "https://github.com/maxmind/GeoIP2-php.git",
"reference": "83adb44ac4b9553d36b579a14673ed124583082f"
"url": "git@github.com:maxmind/GeoIP2-php.git",
"reference": "6a41d8fbd6b90052bc34dff3b4252d0f88067b23"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/maxmind/GeoIP2-php/zipball/83adb44ac4b9553d36b579a14673ed124583082f",
"reference": "83adb44ac4b9553d36b579a14673ed124583082f",
"url": "https://api.github.com/repos/maxmind/GeoIP2-php/zipball/6a41d8fbd6b90052bc34dff3b4252d0f88067b23",
"reference": "6a41d8fbd6b90052bc34dff3b4252d0f88067b23",
"shasum": ""
},
"require": {
@ -633,32 +629,28 @@
"description": "MaxMind GeoIP2 PHP API",
"homepage": "https://github.com/maxmind/GeoIP2-php",
"keywords": ["IP", "geoip", "geoip2", "geolocation", "maxmind"],
"support": {
"issues": "https://github.com/maxmind/GeoIP2-php/issues",
"source": "https://github.com/maxmind/GeoIP2-php/tree/v2.12.2"
},
"time": "2021-11-30T18:15:25+00:00"
"time": "2022-08-05T20:32:58+00:00"
},
{
"name": "graham-campbell/result-type",
"version": "v1.0.4",
"version": "v1.1.0",
"source": {
"type": "git",
"url": "https://github.com/GrahamCampbell/Result-Type.git",
"reference": "0690bde05318336c7221785f2a932467f98b64ca"
"reference": "a878d45c1914464426dc94da61c9e1d36ae262a8"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/0690bde05318336c7221785f2a932467f98b64ca",
"reference": "0690bde05318336c7221785f2a932467f98b64ca",
"url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/a878d45c1914464426dc94da61c9e1d36ae262a8",
"reference": "a878d45c1914464426dc94da61c9e1d36ae262a8",
"shasum": ""
},
"require": {
"php": "^7.0 || ^8.0",
"phpoption/phpoption": "^1.8"
"php": "^7.2.5 || ^8.0",
"phpoption/phpoption": "^1.9"
},
"require-dev": {
"phpunit/phpunit": "^6.5.14 || ^7.5.20 || ^8.5.19 || ^9.5.8"
"phpunit/phpunit": "^8.5.28 || ^9.5.21"
},
"type": "library",
"autoload": {
@ -685,7 +677,7 @@
],
"support": {
"issues": "https://github.com/GrahamCampbell/Result-Type/issues",
"source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.0.4"
"source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.1.0"
},
"funding": [
{
@ -697,7 +689,7 @@
"type": "tidelift"
}
],
"time": "2021-11-21T21:41:47+00:00"
"time": "2022-07-30T15:56:11+00:00"
},
{
"name": "james-heinrich/getid3",
@ -775,16 +767,16 @@
},
{
"name": "kint-php/kint",
"version": "4.1.2",
"version": "4.1.4",
"source": {
"type": "git",
"url": "https://github.com/kint-php/kint.git",
"reference": "fa53c4333cda79dc9cb002cfa029abe994d0ae00"
"reference": "84a61c9b19abd4bed2b961af8254d38deae33d44"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/kint-php/kint/zipball/fa53c4333cda79dc9cb002cfa029abe994d0ae00",
"reference": "fa53c4333cda79dc9cb002cfa029abe994d0ae00",
"url": "https://api.github.com/repos/kint-php/kint/zipball/84a61c9b19abd4bed2b961af8254d38deae33d44",
"reference": "84a61c9b19abd4bed2b961af8254d38deae33d44",
"shasum": ""
},
"require": {
@ -826,9 +818,9 @@
"keywords": ["debug", "kint", "php"],
"support": {
"issues": "https://github.com/kint-php/kint/issues",
"source": "https://github.com/kint-php/kint/tree/4.1.2"
"source": "https://github.com/kint-php/kint/tree/4.1.4"
},
"time": "2022-02-22T20:32:24+00:00"
"time": "2022-07-30T16:29:40+00:00"
},
{
"name": "laminas/laminas-escaper",
@ -889,16 +881,16 @@
},
{
"name": "league/commonmark",
"version": "2.3.3",
"version": "2.3.5",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/commonmark.git",
"reference": "0da1dca5781dd3cfddbe328224d9a7a62571addc"
"reference": "84d74485fdb7074f4f9dd6f02ab957b1de513257"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/thephpleague/commonmark/zipball/0da1dca5781dd3cfddbe328224d9a7a62571addc",
"reference": "0da1dca5781dd3cfddbe328224d9a7a62571addc",
"url": "https://api.github.com/repos/thephpleague/commonmark/zipball/84d74485fdb7074f4f9dd6f02ab957b1de513257",
"reference": "84d74485fdb7074f4f9dd6f02ab957b1de513257",
"shasum": ""
},
"require": {
@ -920,13 +912,13 @@
"github/gfm": "0.29.0",
"michelf/php-markdown": "^1.4",
"nyholm/psr7": "^1.5",
"phpstan/phpstan": "^0.12.88 || ^1.0.0",
"phpunit/phpunit": "^9.5.5",
"phpstan/phpstan": "^1.8.2",
"phpunit/phpunit": "^9.5.21",
"scrutinizer/ocular": "^1.8.1",
"symfony/finder": "^5.3",
"symfony/finder": "^5.3 | ^6.0",
"symfony/yaml": "^2.3 | ^3.0 | ^4.0 | ^5.0 | ^6.0",
"unleashedtech/php-coding-standard": "^3.1",
"vimeo/psalm": "^4.7.3"
"unleashedtech/php-coding-standard": "^3.1.1",
"vimeo/psalm": "^4.24.0"
},
"suggest": {
"symfony/yaml": "v2.3+ required if using the Front Matter extension"
@ -989,7 +981,7 @@
"type": "tidelift"
}
],
"time": "2022-06-07T21:28:26+00:00"
"time": "2022-07-29T10:59:45+00:00"
},
{
"name": "league/config",
@ -1370,12 +1362,12 @@
"source": {
"type": "git",
"url": "https://github.com/lonnieezell/myth-auth.git",
"reference": "bc606fed47812773bb0647c7770fae6edc02d9f4"
"reference": "cc94231f5284e9578967aba4796f018809669c84"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/lonnieezell/myth-auth/zipball/bc606fed47812773bb0647c7770fae6edc02d9f4",
"reference": "bc606fed47812773bb0647c7770fae6edc02d9f4",
"url": "https://api.github.com/repos/lonnieezell/myth-auth/zipball/cc94231f5284e9578967aba4796f018809669c84",
"reference": "cc94231f5284e9578967aba4796f018809669c84",
"shasum": ""
},
"require": {
@ -1429,7 +1421,7 @@
"type": "patreon"
}
],
"time": "2022-05-28T11:14:13+00:00"
"time": "2022-08-01T17:23:52+00:00"
},
{
"name": "nette/schema",
@ -1601,29 +1593,33 @@
},
{
"name": "phpoption/phpoption",
"version": "1.8.1",
"version": "1.9.0",
"source": {
"type": "git",
"url": "https://github.com/schmittjoh/php-option.git",
"reference": "eab7a0df01fe2344d172bff4cd6dbd3f8b84ad15"
"reference": "dc5ff11e274a90cc1c743f66c9ad700ce50db9ab"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/schmittjoh/php-option/zipball/eab7a0df01fe2344d172bff4cd6dbd3f8b84ad15",
"reference": "eab7a0df01fe2344d172bff4cd6dbd3f8b84ad15",
"url": "https://api.github.com/repos/schmittjoh/php-option/zipball/dc5ff11e274a90cc1c743f66c9ad700ce50db9ab",
"reference": "dc5ff11e274a90cc1c743f66c9ad700ce50db9ab",
"shasum": ""
},
"require": {
"php": "^7.0 || ^8.0"
"php": "^7.2.5 || ^8.0"
},
"require-dev": {
"bamarni/composer-bin-plugin": "^1.4.1",
"phpunit/phpunit": "^6.5.14 || ^7.5.20 || ^8.5.19 || ^9.5.8"
"bamarni/composer-bin-plugin": "^1.8",
"phpunit/phpunit": "^8.5.28 || ^9.5.21"
},
"type": "library",
"extra": {
"bamarni-bin": {
"bin-links": true,
"forward-command": true
},
"branch-alias": {
"dev-master": "1.8-dev"
"dev-master": "1.9-dev"
}
},
"autoload": {
@ -1649,7 +1645,7 @@
"keywords": ["language", "option", "php", "type"],
"support": {
"issues": "https://github.com/schmittjoh/php-option/issues",
"source": "https://github.com/schmittjoh/php-option/tree/1.8.1"
"source": "https://github.com/schmittjoh/php-option/tree/1.9.0"
},
"funding": [
{
@ -1661,7 +1657,7 @@
"type": "tidelift"
}
],
"time": "2021-12-04T23:24:31+00:00"
"time": "2022-07-30T15:51:26+00:00"
},
{
"name": "phpseclib/phpseclib",
@ -1971,20 +1967,20 @@
},
{
"name": "ramsey/uuid",
"version": "4.3.1",
"version": "4.4.0",
"source": {
"type": "git",
"url": "https://github.com/ramsey/uuid.git",
"reference": "8505afd4fea63b81a85d3b7b53ac3cb8dc347c28"
"reference": "373f7bacfcf3de038778ff27dcce5672ddbf4c8a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/ramsey/uuid/zipball/8505afd4fea63b81a85d3b7b53ac3cb8dc347c28",
"reference": "8505afd4fea63b81a85d3b7b53ac3cb8dc347c28",
"url": "https://api.github.com/repos/ramsey/uuid/zipball/373f7bacfcf3de038778ff27dcce5672ddbf4c8a",
"reference": "373f7bacfcf3de038778ff27dcce5672ddbf4c8a",
"shasum": ""
},
"require": {
"brick/math": "^0.8 || ^0.9",
"brick/math": "^0.8 || ^0.9 || ^0.10",
"ext-ctype": "*",
"ext-json": "*",
"php": "^8.0",
@ -2000,7 +1996,6 @@
"doctrine/annotations": "^1.8",
"ergebnis/composer-normalize": "^2.15",
"mockery/mockery": "^1.3",
"moontoast/math": "^1.1",
"paragonie/random-lib": "^2",
"php-mock/php-mock": "^2.2",
"php-mock/php-mock-mockery": "^1.3",
@ -2041,7 +2036,7 @@
"keywords": ["guid", "identifier", "uuid"],
"support": {
"issues": "https://github.com/ramsey/uuid/issues",
"source": "https://github.com/ramsey/uuid/tree/4.3.1"
"source": "https://github.com/ramsey/uuid/tree/4.4.0"
},
"funding": [
{
@ -2053,7 +2048,7 @@
"type": "tidelift"
}
],
"time": "2022-03-27T21:42:02+00:00"
"time": "2022-08-05T17:58:37+00:00"
},
{
"name": "symfony/deprecation-contracts",
@ -2536,16 +2531,16 @@
"packages-dev": [
{
"name": "captainhook/captainhook",
"version": "5.10.10",
"version": "5.10.11",
"source": {
"type": "git",
"url": "https://github.com/captainhookphp/captainhook.git",
"reference": "7c54bc7633b175a257a7ed2a7fd3fba655c96b34"
"reference": "377ea566c5fb91e2fbec6ad0aadf21eb88e18cee"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/captainhookphp/captainhook/zipball/7c54bc7633b175a257a7ed2a7fd3fba655c96b34",
"reference": "7c54bc7633b175a257a7ed2a7fd3fba655c96b34",
"url": "https://api.github.com/repos/captainhookphp/captainhook/zipball/377ea566c5fb91e2fbec6ad0aadf21eb88e18cee",
"reference": "377ea566c5fb91e2fbec6ad0aadf21eb88e18cee",
"shasum": ""
},
"require": {
@ -2603,7 +2598,7 @@
],
"support": {
"issues": "https://github.com/captainhookphp/captainhook/issues",
"source": "https://github.com/captainhookphp/captainhook/tree/5.10.10"
"source": "https://github.com/captainhookphp/captainhook/tree/5.10.11"
},
"funding": [
{
@ -2611,7 +2606,7 @@
"type": "github"
}
],
"time": "2022-06-06T16:48:03+00:00"
"time": "2022-07-26T20:11:41+00:00"
},
{
"name": "composer/pcre",
@ -3014,16 +3009,16 @@
},
{
"name": "friendsofphp/php-cs-fixer",
"version": "v3.8.0",
"version": "v3.10.0",
"source": {
"type": "git",
"url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git",
"reference": "cbad1115aac4b5c3c5540e7210d3c9fba2f81fa3"
"reference": "76d7da666e66d83a1dc27a9d1c625c80cc4ac1fe"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/cbad1115aac4b5c3c5540e7210d3c9fba2f81fa3",
"reference": "cbad1115aac4b5c3c5540e7210d3c9fba2f81fa3",
"url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/76d7da666e66d83a1dc27a9d1c625c80cc4ac1fe",
"reference": "76d7da666e66d83a1dc27a9d1c625c80cc4ac1fe",
"shasum": ""
},
"require": {
@ -3033,7 +3028,7 @@
"ext-json": "*",
"ext-tokenizer": "*",
"php": "^7.4 || ^8.0",
"php-cs-fixer/diff": "^2.0",
"sebastian/diff": "^4.0",
"symfony/console": "^5.4 || ^6.0",
"symfony/event-dispatcher": "^5.4 || ^6.0",
"symfony/filesystem": "^5.4 || ^6.0",
@ -3087,7 +3082,7 @@
"description": "A tool to automatically fix PHP code style",
"support": {
"issues": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues",
"source": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/tree/v3.8.0"
"source": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/tree/v3.10.0"
},
"funding": [
{
@ -3095,20 +3090,20 @@
"type": "github"
}
],
"time": "2022-03-18T17:20:59+00:00"
"time": "2022-08-17T22:13:10+00:00"
},
{
"name": "mikey179/vfsstream",
"version": "v1.6.10",
"version": "v1.6.11",
"source": {
"type": "git",
"url": "https://github.com/bovigo/vfsStream.git",
"reference": "250c0825537d501e327df879fb3d4cd751933b85"
"reference": "17d16a85e6c26ce1f3e2fa9ceeacdc2855db1e9f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/bovigo/vfsStream/zipball/250c0825537d501e327df879fb3d4cd751933b85",
"reference": "250c0825537d501e327df879fb3d4cd751933b85",
"url": "https://api.github.com/repos/bovigo/vfsStream/zipball/17d16a85e6c26ce1f3e2fa9ceeacdc2855db1e9f",
"reference": "17d16a85e6c26ce1f3e2fa9ceeacdc2855db1e9f",
"shasum": ""
},
"require": {
@ -3144,7 +3139,7 @@
"source": "https://github.com/bovigo/vfsStream/tree/master",
"wiki": "https://github.com/bovigo/vfsStream/wiki"
},
"time": "2021-09-25T08:05:01+00:00"
"time": "2022-02-23T02:02:42+00:00"
},
{
"name": "myclabs/deep-copy",
@ -3347,52 +3342,6 @@
},
"time": "2022-02-21T01:04:05+00:00"
},
{
"name": "php-cs-fixer/diff",
"version": "v2.0.2",
"source": {
"type": "git",
"url": "https://github.com/PHP-CS-Fixer/diff.git",
"reference": "29dc0d507e838c4580d018bd8b5cb412474f7ec3"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/PHP-CS-Fixer/diff/zipball/29dc0d507e838c4580d018bd8b5cb412474f7ec3",
"reference": "29dc0d507e838c4580d018bd8b5cb412474f7ec3",
"shasum": ""
},
"require": {
"php": "^5.6 || ^7.0 || ^8.0"
},
"require-dev": {
"phpunit/phpunit": "^5.7.23 || ^6.4.3 || ^7.0",
"symfony/process": "^3.3"
},
"type": "library",
"autoload": {
"classmap": ["src/"]
},
"notification-url": "https://packagist.org/downloads/",
"license": ["BSD-3-Clause"],
"authors": [
{
"name": "Sebastian Bergmann",
"email": "sebastian@phpunit.de"
},
{
"name": "Kore Nordmann",
"email": "mail@kore-nordmann.de"
}
],
"description": "sebastian/diff v3 backport support for PHP 5.6+",
"homepage": "https://github.com/PHP-CS-Fixer",
"keywords": ["diff"],
"support": {
"issues": "https://github.com/PHP-CS-Fixer/diff/issues",
"source": "https://github.com/PHP-CS-Fixer/diff/tree/v2.0.2"
},
"time": "2020-10-14T08:32:19+00:00"
},
{
"name": "phpdocumentor/reflection-common",
"version": "2.2.0",
@ -3607,16 +3556,16 @@
},
{
"name": "phpstan/phpstan",
"version": "1.8.0",
"version": "1.8.2",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpstan.git",
"reference": "b7648d4ee9321665acaf112e49da9fd93df8fbd5"
"reference": "c53312ecc575caf07b0e90dee43883fdf90ca67c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/b7648d4ee9321665acaf112e49da9fd93df8fbd5",
"reference": "b7648d4ee9321665acaf112e49da9fd93df8fbd5",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/c53312ecc575caf07b0e90dee43883fdf90ca67c",
"reference": "c53312ecc575caf07b0e90dee43883fdf90ca67c",
"shasum": ""
},
"require": {
@ -3635,7 +3584,7 @@
"description": "PHPStan - PHP Static Analysis Tool",
"support": {
"issues": "https://github.com/phpstan/phpstan/issues",
"source": "https://github.com/phpstan/phpstan/tree/1.8.0"
"source": "https://github.com/phpstan/phpstan/tree/1.8.2"
},
"funding": [
{
@ -3655,27 +3604,27 @@
"type": "tidelift"
}
],
"time": "2022-06-29T08:53:31+00:00"
"time": "2022-07-20T09:57:31+00:00"
},
{
"name": "phpunit/php-code-coverage",
"version": "9.2.15",
"version": "9.2.16",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-code-coverage.git",
"reference": "2e9da11878c4202f97915c1cb4bb1ca318a63f5f"
"reference": "2593003befdcc10db5e213f9f28814f5aa8ac073"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/2e9da11878c4202f97915c1cb4bb1ca318a63f5f",
"reference": "2e9da11878c4202f97915c1cb4bb1ca318a63f5f",
"url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/2593003befdcc10db5e213f9f28814f5aa8ac073",
"reference": "2593003befdcc10db5e213f9f28814f5aa8ac073",
"shasum": ""
},
"require": {
"ext-dom": "*",
"ext-libxml": "*",
"ext-xmlwriter": "*",
"nikic/php-parser": "^4.13.0",
"nikic/php-parser": "^4.14",
"php": ">=7.3",
"phpunit/php-file-iterator": "^3.0.3",
"phpunit/php-text-template": "^2.0.2",
@ -3716,7 +3665,7 @@
"keywords": ["coverage", "testing", "xunit"],
"support": {
"issues": "https://github.com/sebastianbergmann/php-code-coverage/issues",
"source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.15"
"source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.16"
},
"funding": [
{
@ -3724,7 +3673,7 @@
"type": "github"
}
],
"time": "2022-03-07T09:28:20+00:00"
"time": "2022-08-20T05:26:47+00:00"
},
{
"name": "phpunit/php-file-iterator",
@ -5126,16 +5075,16 @@
},
{
"name": "sebastianfeldmann/git",
"version": "3.8.2",
"version": "3.8.3",
"source": {
"type": "git",
"url": "https://github.com/sebastianfeldmann/git.git",
"reference": "e30b5ed4a87c6b16339bfc6a79c141aba83bade4"
"reference": "853066c3841faf96d3f0ea00822eeb3b6cd8d995"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianfeldmann/git/zipball/e30b5ed4a87c6b16339bfc6a79c141aba83bade4",
"reference": "e30b5ed4a87c6b16339bfc6a79c141aba83bade4",
"url": "https://api.github.com/repos/sebastianfeldmann/git/zipball/853066c3841faf96d3f0ea00822eeb3b6cd8d995",
"reference": "853066c3841faf96d3f0ea00822eeb3b6cd8d995",
"shasum": ""
},
"require": {
@ -5171,7 +5120,7 @@
"keywords": ["git"],
"support": {
"issues": "https://github.com/sebastianfeldmann/git/issues",
"source": "https://github.com/sebastianfeldmann/git/tree/3.8.2"
"source": "https://github.com/sebastianfeldmann/git/tree/3.8.3"
},
"funding": [
{
@ -5179,20 +5128,20 @@
"type": "github"
}
],
"time": "2022-02-17T19:43:52+00:00"
"time": "2022-07-26T19:59:55+00:00"
},
{
"name": "symfony/config",
"version": "v6.1.0",
"version": "v6.1.3",
"source": {
"type": "git",
"url": "https://github.com/symfony/config.git",
"reference": "ed8d12417bcacd2d969750feb1fe1aab1c11e613"
"reference": "a0645dc585d378b73c01115dd7ab9348f7d40c85"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/config/zipball/ed8d12417bcacd2d969750feb1fe1aab1c11e613",
"reference": "ed8d12417bcacd2d969750feb1fe1aab1c11e613",
"url": "https://api.github.com/repos/symfony/config/zipball/a0645dc585d378b73c01115dd7ab9348f7d40c85",
"reference": "a0645dc585d378b73c01115dd7ab9348f7d40c85",
"shasum": ""
},
"require": {
@ -5236,7 +5185,7 @@
"description": "Helps you find, load, combine, autofill and validate configuration values of any kind",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/config/tree/v6.1.0"
"source": "https://github.com/symfony/config/tree/v6.1.3"
},
"funding": [
{
@ -5252,20 +5201,20 @@
"type": "tidelift"
}
],
"time": "2022-05-17T12:56:32+00:00"
"time": "2022-07-20T15:00:40+00:00"
},
{
"name": "symfony/console",
"version": "v6.1.2",
"version": "v6.1.3",
"source": {
"type": "git",
"url": "https://github.com/symfony/console.git",
"reference": "7a86c1c42fbcb69b59768504c7bca1d3767760b7"
"reference": "43fcb5c5966b43c56bcfa481368d90d748936ab8"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/console/zipball/7a86c1c42fbcb69b59768504c7bca1d3767760b7",
"reference": "7a86c1c42fbcb69b59768504c7bca1d3767760b7",
"url": "https://api.github.com/repos/symfony/console/zipball/43fcb5c5966b43c56bcfa481368d90d748936ab8",
"reference": "43fcb5c5966b43c56bcfa481368d90d748936ab8",
"shasum": ""
},
"require": {
@ -5323,7 +5272,7 @@
"homepage": "https://symfony.com",
"keywords": ["cli", "command line", "console", "terminal"],
"support": {
"source": "https://github.com/symfony/console/tree/v6.1.2"
"source": "https://github.com/symfony/console/tree/v6.1.3"
},
"funding": [
{
@ -5339,20 +5288,20 @@
"type": "tidelift"
}
],
"time": "2022-06-26T13:01:30+00:00"
"time": "2022-07-22T14:17:57+00:00"
},
{
"name": "symfony/dependency-injection",
"version": "v6.1.2",
"version": "v6.1.3",
"source": {
"type": "git",
"url": "https://github.com/symfony/dependency-injection.git",
"reference": "5635ff016a814d7984b1c4644ad28e7df546077b"
"reference": "079e336a1880f457b219aecc3d41bef2f1093b0b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/dependency-injection/zipball/5635ff016a814d7984b1c4644ad28e7df546077b",
"reference": "5635ff016a814d7984b1c4644ad28e7df546077b",
"url": "https://api.github.com/repos/symfony/dependency-injection/zipball/079e336a1880f457b219aecc3d41bef2f1093b0b",
"reference": "079e336a1880f457b219aecc3d41bef2f1093b0b",
"shasum": ""
},
"require": {
@ -5406,7 +5355,7 @@
"description": "Allows you to standardize and centralize the way objects are constructed in your application",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/dependency-injection/tree/v6.1.2"
"source": "https://github.com/symfony/dependency-injection/tree/v6.1.3"
},
"funding": [
{
@ -5422,7 +5371,7 @@
"type": "tidelift"
}
],
"time": "2022-06-26T13:01:30+00:00"
"time": "2022-07-20T13:46:29+00:00"
},
{
"name": "symfony/event-dispatcher",
@ -5582,16 +5531,16 @@
},
{
"name": "symfony/filesystem",
"version": "v6.1.0",
"version": "v6.1.3",
"source": {
"type": "git",
"url": "https://github.com/symfony/filesystem.git",
"reference": "3132d2f43ca799c2aa099f9738d98228c56baa5d"
"reference": "c780e677cddda78417fa5187a7c6cd2f21110db9"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/filesystem/zipball/3132d2f43ca799c2aa099f9738d98228c56baa5d",
"reference": "3132d2f43ca799c2aa099f9738d98228c56baa5d",
"url": "https://api.github.com/repos/symfony/filesystem/zipball/c780e677cddda78417fa5187a7c6cd2f21110db9",
"reference": "c780e677cddda78417fa5187a7c6cd2f21110db9",
"shasum": ""
},
"require": {
@ -5621,7 +5570,7 @@
"description": "Provides basic utilities for the filesystem",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/filesystem/tree/v6.1.0"
"source": "https://github.com/symfony/filesystem/tree/v6.1.3"
},
"funding": [
{
@ -5637,20 +5586,20 @@
"type": "tidelift"
}
],
"time": "2022-05-21T13:34:40+00:00"
"time": "2022-07-20T14:45:06+00:00"
},
{
"name": "symfony/finder",
"version": "v6.1.0",
"version": "v6.1.3",
"source": {
"type": "git",
"url": "https://github.com/symfony/finder.git",
"reference": "45b8beb69d6eb3b05a65689ebfd4222326773f8f"
"reference": "39696bff2c2970b3779a5cac7bf9f0b88fc2b709"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/finder/zipball/45b8beb69d6eb3b05a65689ebfd4222326773f8f",
"reference": "45b8beb69d6eb3b05a65689ebfd4222326773f8f",
"url": "https://api.github.com/repos/symfony/finder/zipball/39696bff2c2970b3779a5cac7bf9f0b88fc2b709",
"reference": "39696bff2c2970b3779a5cac7bf9f0b88fc2b709",
"shasum": ""
},
"require": {
@ -5681,7 +5630,7 @@
"description": "Finds files and directories via an intuitive fluent interface",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/finder/tree/v6.1.0"
"source": "https://github.com/symfony/finder/tree/v6.1.3"
},
"funding": [
{
@ -5697,7 +5646,7 @@
"type": "tidelift"
}
],
"time": "2022-04-15T08:08:08+00:00"
"time": "2022-07-29T07:42:06+00:00"
},
{
"name": "symfony/options-resolver",
@ -5915,16 +5864,16 @@
},
{
"name": "symfony/process",
"version": "v6.1.0",
"version": "v6.1.3",
"source": {
"type": "git",
"url": "https://github.com/symfony/process.git",
"reference": "318718453c2be58266f1a9e74063d13cb8dd4165"
"reference": "a6506e99cfad7059b1ab5cab395854a0a0c21292"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/process/zipball/318718453c2be58266f1a9e74063d13cb8dd4165",
"reference": "318718453c2be58266f1a9e74063d13cb8dd4165",
"url": "https://api.github.com/repos/symfony/process/zipball/a6506e99cfad7059b1ab5cab395854a0a0c21292",
"reference": "a6506e99cfad7059b1ab5cab395854a0a0c21292",
"shasum": ""
},
"require": {
@ -5952,7 +5901,7 @@
"description": "Executes commands in sub-processes",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/process/tree/v6.1.0"
"source": "https://github.com/symfony/process/tree/v6.1.3"
},
"funding": [
{
@ -5968,7 +5917,7 @@
"type": "tidelift"
}
],
"time": "2022-05-11T12:12:29+00:00"
"time": "2022-06-27T17:24:16+00:00"
},
{
"name": "symfony/service-contracts",
@ -6111,16 +6060,16 @@
},
{
"name": "symfony/string",
"version": "v6.1.2",
"version": "v6.1.3",
"source": {
"type": "git",
"url": "https://github.com/symfony/string.git",
"reference": "1903f2879875280c5af944625e8246d81c2f0604"
"reference": "f35241f45c30bcd9046af2bb200a7086f70e1d6b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/string/zipball/1903f2879875280c5af944625e8246d81c2f0604",
"reference": "1903f2879875280c5af944625e8246d81c2f0604",
"url": "https://api.github.com/repos/symfony/string/zipball/f35241f45c30bcd9046af2bb200a7086f70e1d6b",
"reference": "f35241f45c30bcd9046af2bb200a7086f70e1d6b",
"shasum": ""
},
"require": {
@ -6163,7 +6112,7 @@
"homepage": "https://symfony.com",
"keywords": ["grapheme", "i18n", "string", "unicode", "utf-8", "utf8"],
"support": {
"source": "https://github.com/symfony/string/tree/v6.1.2"
"source": "https://github.com/symfony/string/tree/v6.1.3"
},
"funding": [
{
@ -6179,7 +6128,7 @@
"type": "tidelift"
}
],
"time": "2022-06-26T16:35:04+00:00"
"time": "2022-07-27T15:50:51+00:00"
},
{
"name": "symplify/autowire-array-parameter",

2
env
View File

@ -45,6 +45,7 @@
# database.default.password = root
# database.default.DBDriver = MySQLi
# database.default.DBPrefix =
# database.default.port = 3306
# database.tests.hostname = localhost
# database.tests.database = ci4
@ -52,6 +53,7 @@
# database.tests.password = root
# database.tests.DBDriver = MySQLi
# database.tests.DBPrefix =
# database.tests.port = 3306
#--------------------------------------------------------------------
# CONTENT SECURITY POLICY

4438
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -27,15 +27,15 @@
"prepare": "is-ci || husky install"
},
"dependencies": {
"@amcharts/amcharts4": "^4.10.25",
"@amcharts/amcharts4": "^4.10.27",
"@amcharts/amcharts4-geodata": "^4.1.23",
"@codemirror/commands": "^6.0.1",
"@codemirror/commands": "^6.1.0",
"@codemirror/lang-xml": "^6.0.0",
"@codemirror/language": "^6.2.0",
"@codemirror/state": "^6.1.0",
"@floating-ui/dom": "^0.5.4",
"@codemirror/language": "^6.2.1",
"@codemirror/state": "^6.1.1",
"@floating-ui/dom": "^1.0.1",
"@github/clipboard-copy-element": "^1.1.2",
"@github/hotkey": "^2.0.0",
"@github/hotkey": "^2.0.1",
"@github/markdown-toolbar-element": "^2.1.1",
"@github/time-elements": "^3.1.2",
"@tailwindcss/nesting": "^0.0.0-insiders.565cd3e",
@ -45,8 +45,8 @@
"flatpickr": "^4.6.13",
"leaflet": "^1.8.0",
"leaflet.markercluster": "^1.5.3",
"lit": "^2.2.7",
"marked": "^4.0.17",
"lit": "^2.3.1",
"marked": "^4.0.18",
"wavesurfer.js": "^6.2.0",
"xml-formatter": "^2.6.1"
},
@ -56,20 +56,20 @@
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@semantic-release/gitlab": "^9.3.2",
"@semantic-release/gitlab": "^9.4.1",
"@tailwindcss/forms": "^0.5.2",
"@tailwindcss/line-clamp": "^0.4.0",
"@tailwindcss/typography": "^0.5.2",
"@tailwindcss/typography": "^0.5.4",
"@types/leaflet": "^1.7.11",
"@types/marked": "^4.0.3",
"@types/marked": "^4.0.5",
"@types/wavesurfer.js": "^6.0.3",
"@typescript-eslint/eslint-plugin": "^5.30.3",
"@typescript-eslint/parser": "^5.30.3",
"@typescript-eslint/eslint-plugin": "^5.33.1",
"@typescript-eslint/parser": "^5.33.1",
"all-contributors-cli": "^6.20.0",
"cross-env": "^7.0.3",
"cssnano": "^5.1.12",
"cssnano": "^5.1.13",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.19.0",
"eslint": "^8.22.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.1",
@ -77,22 +77,22 @@
"lint-staged": "^13.0.3",
"postcss-import": "^14.1.0",
"postcss-nesting": "^10.1.10",
"postcss-preset-env": "^7.7.2",
"postcss-preset-env": "^7.8.0",
"postcss-reporter": "^7.0.5",
"prettier": "2.7.1",
"prettier-plugin-organize-imports": "^3.0.0",
"prettier-plugin-organize-imports": "^3.1.0",
"semantic-release": "^19.0.3",
"stylelint": "^14.9.1",
"stylelint-config-standard": "^26.0.0",
"stylelint": "^14.10.0",
"stylelint-config-standard": "^27.0.0",
"svgo": "^2.8.0",
"tailwindcss": "^3.1.4",
"tailwindcss": "^3.1.8",
"typescript": "^4.7.4",
"vite": "2.8.6",
"vite-plugin-pwa": "^0.12.2",
"workbox-build": "^6.5.3",
"workbox-core": "^6.5.3",
"workbox-routing": "^6.5.3",
"workbox-strategies": "^6.5.3"
"vite-plugin-pwa": "^0.12.3",
"workbox-build": "^6.5.4",
"workbox-core": "^6.5.4",
"workbox-routing": "^6.5.4",
"workbox-strategies": "^6.5.4"
},
"lint-staged": {
"*.{js,ts,css,md,json}": "prettier --write",

View File

@ -16,7 +16,7 @@
* See https://www.php.net/manual/en/opcache.preloading.php
*
* How to Use:
* 1. Set Preload::$paths.
* 1. Set preload::$paths.
* 2. Set opcache.preload in php.ini.
* php.ini:
* opcache.preload=/path/to/preload.php

View File

@ -9,6 +9,7 @@ test your application. Those details can be found in the documentation.
- [CodeIgniter 4 User Guide on Testing](https://codeigniter4.github.io/userguide/testing/index.html)
- [PHPUnit docs](https://phpunit.de/documentation.html)
- [Any tutorials on Unit testing in CI4?](https://forum.codeigniter.com/showthread.php?tid=81830)
## Requirements
@ -18,15 +19,20 @@ writing we are running version 9.x. Support for this has been built into the
via [Composer](https://getcomposer.org/) if you don't already have it installed
globally.
> composer install
```console
> composer install
```
If running under OS X or Linux, you can create a symbolic link to make running
If running under macOS or Linux, you can create a symbolic link to make running
tests a touch nicer.
> ln -s ./vendor/bin/phpunit ./phpunit
```console
> ln -s ./vendor/bin/phpunit ./phpunit
```
You also need to install [XDebug](https://xdebug.org/index.php) in order for
code coverage to be calculated successfully.
You also need to install [XDebug](https://xdebug.org/docs/install) in order for
code coverage to be calculated successfully. After installing `XDebug`, you must
add `xdebug.mode=coverage` in the **php.ini** file to enable code coverage.
## Setting Up
@ -37,33 +43,36 @@ running on your machine. More details on a test database setup are in the
[Testing Your Database](https://codeigniter4.github.io/userguide/testing/database.html)
section of the documentation.
If you want to run the tests without using live database you can exclude
@DatabaseLive group. Or make a copy of **phpunit.dist.xml** - call it
**phpunit.xml** - and comment out the <testsuite> named "database". This will
make the tests run quite a bit faster.
## Running the tests
The entire test suite can be run by simply typing one command-line command from
the main directory.
> ./phpunit
```console
> ./phpunit
```
If you are using Windows, use the following command.
> vendor\bin\phpunit
```console
> vendor\bin\phpunit
```
You can limit tests to those within a single test directory by specifying the
directory name after phpunit.
> ./phpunit app/Models
```console
> ./phpunit app/Models
```
## Generating Code Coverage
To generate coverage information, including HTML reports you can view in your
browser, you can use the following command:
> ./phpunit --colors --coverage-text=tests/coverage.txt --coverage-html=tests/coverage/ -d memory_limit=1024m
```console
> ./phpunit --colors --coverage-text=tests/coverage.txt --coverage-html=tests/coverage/ -d memory_limit=1024m
```
This runs all of the tests again collecting information about how many lines,
functions, and files are tested. It also reports the percentage of the code that