diff --git a/.gitignore b/.gitignore index 11abea69..696da9cb 100644 --- a/.gitignore +++ b/.gitignore @@ -61,6 +61,7 @@ writable/uploads/* !writable/uploads/index.html writable/debugbar/* +!writable/debugbar/.gitkeep php_errors.log diff --git a/README.md b/README.md index 461e949f..11d1cf13 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,11 @@ PHP version 7.4 or higher is required, with the following extensions installed: - [intl](http://php.net/manual/en/intl.requirements.php) - [mbstring](http://php.net/manual/en/mbstring.installation.php) +> **Warning** +> The end of life date for PHP 7.4 was November 28, 2022. If you are +> still using PHP 7.4, you should upgrade immediately. The end of life date +> for PHP 8.0 will be November 26, 2023. + Additionally, make sure that the following extensions are enabled in your PHP: - json (enabled by default - don't turn it off) diff --git a/app/Config/Migrations.php b/app/Config/Migrations.php index 3c825667..1dec8b9b 100644 --- a/app/Config/Migrations.php +++ b/app/Config/Migrations.php @@ -25,9 +25,7 @@ class Migrations extends BaseConfig * * This is the name of the table that will store the current migrations state. * When migrations runs it will store in a database table which migration - * level the system is at. It then compares the migration level in this - * table to the $config['migration_version'] if they are not the same it - * will migrate up. This must be set. + * files have already been run. */ public string $table = 'migrations'; diff --git a/app/Config/View.php b/app/Config/View.php index 78cd547e..cf00863f 100644 --- a/app/Config/View.php +++ b/app/Config/View.php @@ -5,6 +5,10 @@ use CodeIgniter\Config\View as BaseView; use CodeIgniter\View\ViewDecoratorInterface; +/** + * @phpstan-type ParserCallable (callable(mixed): mixed) + * @phpstan-type ParserCallableString (callable(mixed): mixed)&string + */ class View extends BaseView { /** @@ -30,7 +34,8 @@ class View extends BaseView * { title|esc(js) } * { created_on|date(Y-m-d)|esc(attr) } * - * @var array + * @var array + * @phpstan-var array */ public $filters = []; @@ -39,7 +44,8 @@ class View extends BaseView * by the core Parser by creating aliases that will be replaced with * any callable. Can be single or tag pair. * - * @var array + * @var array|callable|string> + * @phpstan-var array|ParserCallableString|ParserCallable> */ public $plugins = [];