Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/infection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
php-version: '8.3'
tools: infection, phpunit
extensions: intl, json, mbstring, gd, xml, sqlite3
coverage: xdebug
Expand Down
4 changes: 2 additions & 2 deletions app/Config/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class Database extends Config
// * @var array<string, mixed>
// */
// public array $default = [
// 'DSN' => 'localhost:1521/XEPDB1',
// 'DSN' => 'localhost:1521/FREEPDB1',
// 'username' => 'root',
// 'password' => 'root',
// 'DBDriver' => 'OCI8',
Expand Down Expand Up @@ -177,7 +177,7 @@ class Database extends Config
'swapPre' => '',
'encrypt' => false,
'compress' => false,
'strictOn' => false,
'strictOn' => true,
'failover' => [],
'port' => 3306,
'foreignKeys' => true,
Expand Down
4 changes: 3 additions & 1 deletion app/Config/Events.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@

Events::on('pre_system', static function () {
if (ENVIRONMENT !== 'testing') {
if (ini_get('zlib.output_compression')) {
$value = ini_get('zlib.output_compression');

if (filter_var($value, FILTER_VALIDATE_BOOLEAN) || (int) $value > 0) {
throw FrameworkException::forEnabledZlibOutputCompression();
}

Expand Down
4 changes: 1 addition & 3 deletions app/Config/Routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

use CodeIgniter\Router\RouteCollection;

/**
* @var RouteCollection $routes
*/
/** @var RouteCollection $routes */
$routes->get('/', 'Home::index');
$routes->get('discuss', 'Discuss::index');
$routes->get('contribute', 'Contribute::index');
Expand Down
10 changes: 2 additions & 8 deletions app/Config/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
use CodeIgniter\Config\View as BaseView;
use CodeIgniter\View\ViewDecoratorInterface;

/**
* @phpstan-type parser_callable (callable(mixed): mixed)
* @phpstan-type parser_callable_string (callable(mixed): mixed)&string
*/
class View extends BaseView
{
/**
Expand All @@ -34,8 +30,7 @@ class View extends BaseView
* { title|esc(js) }
* { created_on|date(Y-m-d)|esc(attr) }
*
* @var array<string, string>
* @phpstan-var array<string, parser_callable_string>
* @var array<string, (callable(mixed): mixed)&string>
*/
public $filters = [];

Expand All @@ -44,8 +39,7 @@ 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<string, callable|list<string>|string>
* @phpstan-var array<string, list<parser_callable_string>|parser_callable_string|parser_callable>
* @var array<string, (callable(mixed...): mixed)|((callable(mixed...): mixed)&string)|list<(callable(mixed...): mixed)&string>>
*/
public $plugins = [];

Expand Down
12 changes: 12 additions & 0 deletions app/Config/WorkerMode.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@ class WorkerMode
'cache',
];

/**
* Reset Event Listeners
*
* List of event names whose listeners should be removed between requests.
* Use this if you register event listeners inside other event callbacks
* (rather than at the top level of Config/Events.php), which would cause
* them to accumulate across requests in worker mode.
*
* @var list<string>
*/
public array $resetEventListeners = [];

/**
* Force Garbage Collection
*
Expand Down
6 changes: 1 addition & 5 deletions app/Libraries/Blog.php
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@
*
* @return list<string>|string|null
*/
protected function parseVideoTags(?string $html = null)

Check warning on line 291 in app/Libraries/Blog.php

View workflow job for this annotation

GitHub Actions / Mutation Testing

Escaped Mutant for Mutator "ProtectedVisibility": @@ @@ * * @return list<string>|string|null */ - protected function parseVideoTags(?string $html = null) + private function parseVideoTags(?string $html = null) { helper('video');
{
helper('video');

Expand All @@ -301,11 +301,7 @@
return $html;
}

for ($i = 0; $i < count($matches) - 1; $i++) {
if (empty($matches[0]) || empty($matches[1])) {
continue;
}

for ($i = 0; $i < count($matches[0]); $i++) {
$html = str_replace($matches[0][$i], embedVideo($matches[1][$i]), $html);
}

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"php-http/discovery": true
},
"platform": {
"php": "8.2"
"php": "8.2.29"
},
"optimize-autoloader": true,
"preferred-install": "dist",
Expand Down
Loading
Loading