Skip to content

Commit 8d8f27e

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into 4.4
Conflicts: tests/system/CodeIgniterTest.php tests/system/Commands/RoutesTest.php tests/system/CommonFunctionsTest.php tests/system/Config/FactoriesTest.php tests/system/Database/Live/ForgeTest.php tests/system/Database/ModelFactoryTest.php tests/system/Entity/EntityTest.php tests/system/Filters/FiltersTest.php tests/system/HTTP/CURLRequestDoNotShareOptionsTest.php tests/system/HTTP/CURLRequestTest.php tests/system/HTTP/DownloadResponseTest.php tests/system/HTTP/Files/FileCollectionTest.php tests/system/HTTP/ResponseTest.php tests/system/HTTP/URITest.php tests/system/Router/AutoRouterImprovedTest.php tests/system/Router/Controllers/Index.php tests/system/Security/SecurityCSRFSessionRandomizeTokenTest.php tests/system/Security/SecurityCSRFSessionTest.php tests/system/Security/SecurityTest.php tests/system/Test/FeatureTestTraitTest.php
2 parents 5695e7a + 1ce507e commit 8d8f27e

277 files changed

Lines changed: 3772 additions & 3778 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

phpstan-baseline.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
<?php declare(strict_types = 1);
22

33
$ignoreErrors = [];
4-
$ignoreErrors[] = [
5-
'message' => '#^Method CodeIgniter\\\\Autoloader\\\\Autoloader\\:\\:discoverComposerNamespaces\\(\\) has no return type specified\\.$#',
6-
'count' => 1,
7-
'path' => __DIR__ . '/system/Autoloader/Autoloader.php',
8-
];
9-
$ignoreErrors[] = [
10-
'message' => '#^Method CodeIgniter\\\\Autoloader\\\\Autoloader\\:\\:register\\(\\) has no return type specified\\.$#',
11-
'count' => 1,
12-
'path' => __DIR__ . '/system/Autoloader/Autoloader.php',
13-
];
144
$ignoreErrors[] = [
155
'message' => '#^Parameter \\#1 \\$callback of function spl_autoload_register expects \\(callable\\(string\\)\\: void\\)\\|null, array\\{\\$this\\(CodeIgniter\\\\Autoloader\\\\Autoloader\\), \'loadClass\'\\} given\\.$#',
166
'count' => 1,

system/Autoloader/Autoloader.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ private function loadComposerInfo(Modules $modules): void
148148

149149
/**
150150
* Register the loader with the SPL autoloader stack.
151+
*
152+
* @return void
151153
*/
152154
public function register()
153155
{
@@ -445,6 +447,8 @@ private function loadComposerClassmap(ClassLoader $composer): void
445447
* Locates autoload information from Composer, if available.
446448
*
447449
* @deprecated No longer used.
450+
*
451+
* @return void
448452
*/
449453
protected function discoverComposerNamespaces()
450454
{

tests/_support/Commands/AppInfo.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ class AppInfo extends BaseCommand
2323
protected $arguments = ['draft' => 'unused'];
2424
protected $description = 'Displays basic application information.';
2525

26-
public function run(array $params)
26+
public function run(array $params): void
2727
{
2828
CLI::write('CI Version: ' . CLI::color(CodeIgniter::CI_VERSION, 'red'));
2929
}
3030

31-
public function bomb()
31+
public function bomb(): void
3232
{
3333
try {
3434
CLI::color('test', 'white', 'Background');
@@ -37,7 +37,7 @@ public function bomb()
3737
}
3838
}
3939

40-
public function helpme()
40+
public function helpme(): void
4141
{
4242
$this->call('help');
4343
}

tests/_support/Commands/InvalidCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function __construct()
2727
throw new ReflectionException();
2828
}
2929

30-
public function run(array $params)
30+
public function run(array $params): void
3131
{
3232
CLI::write('CI Version: ' . CLI::color(CodeIgniter::CI_VERSION, 'red'));
3333
}

tests/_support/Commands/LanguageCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class LanguageCommand extends BaseCommand
2727
'--sort' => 'Turn on/off the sortImports flag.',
2828
];
2929

30-
public function run(array $params)
30+
public function run(array $params): void
3131
{
3232
$this->setHasClassName(false);
3333
$params[0] = 'Foobar';

tests/_support/Commands/ParamsReveal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class ParamsReveal extends BaseCommand
2121
protected $description = 'Reveal params';
2222
public static $args;
2323

24-
public function run(array $params)
24+
public function run(array $params): void
2525
{
2626
static::$args = $params;
2727
}

tests/_support/Commands/Unsuffixable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class Unsuffixable extends BaseCommand
6565
/**
6666
* Actually execute a command.
6767
*/
68-
public function run(array $params)
68+
public function run(array $params): void
6969
{
7070
$this->component = 'Command';
7171
$this->directory = 'Commands';

tests/_support/Controllers/Popcorn.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function pop()
3333
return $this->respond('Oops', 567, 'Surprise');
3434
}
3535

36-
public function popper()
36+
public function popper(): void
3737
{
3838
throw new RuntimeException('Surprise', 500);
3939
}
@@ -61,12 +61,12 @@ public function index3()
6161
return $this->response->setJSON(['lang' => $this->request->getLocale()]);
6262
}
6363

64-
public function canyon()
64+
public function canyon(): void
6565
{
6666
echo 'Hello-o-o ' . $this->request->getGet('foo');
6767
}
6868

69-
public function cat()
69+
public function cat(): void
7070
{
7171
}
7272

tests/_support/Database/Migrations/20160428212500_Create_test_tables.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
class Migration_Create_test_tables extends Migration
1717
{
18-
public function up()
18+
public function up(): void
1919
{
2020
// User Table
2121
$this->forge->addField([
@@ -160,7 +160,7 @@ public function up()
160160
}
161161
}
162162

163-
public function down()
163+
public function down(): void
164164
{
165165
$this->forge->dropTable('user', true);
166166
$this->forge->dropTable('job', true);

tests/_support/Database/Seeds/AnotherSeeder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
class AnotherSeeder extends Seeder
1717
{
18-
public function run()
18+
public function run(): void
1919
{
2020
$row = [
2121
'name' => 'Jerome Lohan',

0 commit comments

Comments
 (0)