Skip to content

Commit b302649

Browse files
committed
Merge branch 'require-php84'
2 parents ab9f7a7 + 2fd4c72 commit b302649

File tree

6 files changed

+15
-87
lines changed

6 files changed

+15
-87
lines changed

.github/workflows/test-phpunit.yml

Lines changed: 13 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -15,98 +15,44 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
php: [ '8.4', '8.3', '8.2', '8.1', '8.0', '7.4']
18+
php: [ '8.5', '8.4' ]
1919
DB: [ 'pdo/mysql', 'pdo/pgsql', 'pdo/sqlite', 'mysqli', 'pgsql', 'sqlite' ]
2020
compiler: [ default ]
2121
include:
22-
- php: '8.4'
23-
DB: 'pdo/mysql'
24-
compiler: jit
25-
- php: '8.4'
26-
DB: 'pdo/pgsql'
27-
compiler: jit
28-
- php: '8.4'
29-
DB: 'pdo/sqlite'
30-
compiler: jit
31-
- php: '8.4'
32-
DB: 'mysqli'
33-
compiler: jit
34-
- php: '8.4'
35-
DB: 'pgsql'
36-
compiler: jit
37-
- php: '8.4'
38-
DB: 'sqlite'
39-
compiler: jit
40-
- php: '8.3'
41-
DB: 'pdo/mysql'
42-
compiler: jit
43-
- php: '8.3'
44-
DB: 'pdo/pgsql'
45-
compiler: jit
46-
- php: '8.3'
47-
DB: 'pdo/sqlite'
48-
compiler: jit
49-
- php: '8.3'
50-
DB: 'mysqli'
51-
compiler: jit
52-
- php: '8.3'
53-
DB: 'pgsql'
54-
compiler: jit
55-
- php: '8.3'
56-
DB: 'sqlite'
57-
compiler: jit
58-
- php: '8.2'
59-
DB: 'pdo/mysql'
60-
compiler: jit
61-
- php: '8.2'
62-
DB: 'pdo/pgsql'
63-
compiler: jit
64-
- php: '8.2'
65-
DB: 'pdo/sqlite'
66-
compiler: jit
67-
- php: '8.2'
68-
DB: 'mysqli'
69-
compiler: jit
70-
- php: '8.2'
71-
DB: 'pgsql'
72-
compiler: jit
73-
- php: '8.2'
74-
DB: 'sqlite'
75-
compiler: jit
76-
- php: '8.1'
22+
- php: '8.5'
7723
DB: 'pdo/mysql'
7824
compiler: jit
79-
- php: '8.1'
25+
- php: '8.5'
8026
DB: 'pdo/pgsql'
8127
compiler: jit
82-
- php: '8.1'
28+
- php: '8.5'
8329
DB: 'pdo/sqlite'
8430
compiler: jit
85-
- php: '8.1'
31+
- php: '8.5'
8632
DB: 'mysqli'
8733
compiler: jit
88-
- php: '8.1'
34+
- php: '8.5'
8935
DB: 'pgsql'
9036
compiler: jit
91-
- php: '8.1'
37+
- php: '8.5'
9238
DB: 'sqlite'
9339
compiler: jit
94-
- php: '8.0'
40+
- php: '8.4'
9541
DB: 'pdo/mysql'
9642
compiler: jit
97-
- php: '8.0'
43+
- php: '8.4'
9844
DB: 'pdo/pgsql'
9945
compiler: jit
100-
- php: '8.0'
46+
- php: '8.4'
10147
DB: 'pdo/sqlite'
10248
compiler: jit
103-
- php: '8.0'
49+
- php: '8.4'
10450
DB: 'mysqli'
10551
compiler: jit
106-
- php: '8.0'
52+
- php: '8.4'
10753
DB: 'pgsql'
10854
compiler: jit
109-
- php: '8.0'
55+
- php: '8.4'
11056
DB: 'sqlite'
11157
compiler: jit
11258

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"source": "https://github.com/bcit-ci/CodeIgniter"
1212
},
1313
"require": {
14-
"php": ">=7.4"
14+
"php": ">=8.4"
1515
},
1616
"scripts": {
1717
"test:coverage": [

tests/codeigniter/core/Log_test.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,11 @@ class Log_test extends CI_TestCase {
44
public function test_configuration()
55
{
66
$path = new ReflectionProperty('CI_Log', '_log_path');
7-
$path->setAccessible(TRUE);
87
$threshold = new ReflectionProperty('CI_Log', '_threshold');
9-
$threshold->setAccessible(TRUE);
108
$date_fmt = new ReflectionProperty('CI_Log', '_date_fmt');
11-
$date_fmt->setAccessible(TRUE);
129
$file_ext = new ReflectionProperty('CI_Log', '_file_ext');
13-
$file_ext->setAccessible(TRUE);
1410
$file_perms = new ReflectionProperty('CI_Log', '_file_permissions');
15-
$file_perms->setAccessible(TRUE);
1611
$enabled = new ReflectionProperty('CI_Log', '_enabled');
17-
$enabled->setAccessible(TRUE);
1812

1913
$this->ci_set_config('log_path', '/root/');
2014
$this->ci_set_config('log_threshold', 'z');
@@ -54,7 +48,6 @@ public function test_format_line()
5448
$instance = new CI_Log();
5549

5650
$format_line = new ReflectionMethod($instance, '_format_line');
57-
$format_line->setAccessible(TRUE);
5851
$this->assertEquals(
5952
$format_line->invoke($instance, 'LEVEL', 'Timestamp', 'Message'),
6053
"LEVEL - Timestamp --> Message".PHP_EOL

tests/codeigniter/helpers/text_helper_test.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,6 @@ public function test_entities_to_ascii()
6464

6565
public function test_convert_accented_characters()
6666
{
67-
if (substr(PHP_VERSION, 0, 3) === '7.4')
68-
{
69-
return $this->markTestSkipped('For some reason all PHP 7.4 instances on GitHub Actions trigger a parse error when foreign_chars.php is loaded');
70-
}
71-
7267
$this->ci_vfs_clone('application/config/foreign_chars.php');
7368
$this->assertEquals('AAAeEEEIIOOEUUUeY', convert_accented_characters('ÀÂÄÈÊËÎÏÔŒÙÛÜŸ'));
7469
$this->assertEquals('a e i o u n ue', convert_accented_characters('á é í ó ú ñ ü'));
@@ -101,11 +96,7 @@ public function test_censored_words()
10196

10297
public function test_highlight_code()
10398
{
104-
if (PHP_VERSION_ID >= 80300) {
105-
$expect = "<pre><code style=\"color: #000000\"><span style=\"color: #0000BB\">&lt;?php var_dump</span><span style=\"color: #007700\">(</span><span style=\"color: #0000BB\">\$this</span><span style=\"color: #007700\">); </span><span style=\"color: #0000BB\">?&gt; ?&gt;</span></code></pre>";
106-
} else {
107-
$expect = "<code><span style=\"color: #000000\">\n<span style=\"color: #0000BB\">&lt;?php&nbsp;var_dump</span><span style=\"color: #007700\">(</span><span style=\"color: #0000BB\">\$this</span><span style=\"color: #007700\">);&nbsp;</span><span style=\"color: #0000BB\">?&gt;&nbsp;</span>\n</span>\n</code>";
108-
}
99+
$expect = "<pre><code style=\"color: #000000\"><span style=\"color: #0000BB\">&lt;?php var_dump</span><span style=\"color: #007700\">(</span><span style=\"color: #0000BB\">\$this</span><span style=\"color: #007700\">); </span><span style=\"color: #0000BB\">?&gt; ?&gt;</span></code></pre>";
109100

110101
$this->assertEquals($expect, highlight_code('<?php var_dump($this); ?>'));
111102
}

tests/codeigniter/libraries/Upload_test.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ public function test___construct_initialize()
2727

2828
$reflection = new ReflectionClass($upload);
2929
$reflection = $reflection->getProperty('_file_name_override');
30-
$reflection->setAccessible(TRUE);
3130
$this->assertEquals('foo', $reflection->getValue($upload));
3231

3332
$this->assertTrue($upload->file_ext_tolower);

tests/codeigniter/libraries/Xmlrpc_test.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ public function set_up()
1515
$this->input = new Mock_Core_Input($security, $utf8);
1616

1717
$this->input_lib_raw_stream = new ReflectionProperty($this->input, '_raw_input_stream');
18-
$this->input_lib_raw_stream->setAccessible(TRUE);
1918

2019
$this->ci_instance_var('input', $this->input);
2120
$this->ci_instance_var('security', $security);

0 commit comments

Comments
 (0)