Skip to content

Commit fbdcee4

Browse files
authored
Merge pull request #7746 from paulbalandan/types-autoloader
Add types to Autoloader
2 parents 621edbe + 68a0907 commit fbdcee4

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

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
{

0 commit comments

Comments
 (0)