Skip to content

Commit 0a64294

Browse files
committed
Fix: Remove the system-Controller ignore errors.
1 parent 9f7e031 commit 0a64294

2 files changed

Lines changed: 8 additions & 20 deletions

File tree

phpstan-baseline.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -346,26 +346,6 @@
346346
'count' => 1,
347347
'path' => __DIR__ . '/system/Config/View.php',
348348
];
349-
$ignoreErrors[] = [
350-
'message' => '#^Method CodeIgniter\\\\Controller\\:\\:cachePage\\(\\) has no return type specified\\.$#',
351-
'count' => 1,
352-
'path' => __DIR__ . '/system/Controller.php',
353-
];
354-
$ignoreErrors[] = [
355-
'message' => '#^Method CodeIgniter\\\\Controller\\:\\:forceHTTPS\\(\\) has no return type specified\\.$#',
356-
'count' => 1,
357-
'path' => __DIR__ . '/system/Controller.php',
358-
];
359-
$ignoreErrors[] = [
360-
'message' => '#^Method CodeIgniter\\\\Controller\\:\\:initController\\(\\) has no return type specified\\.$#',
361-
'count' => 1,
362-
'path' => __DIR__ . '/system/Controller.php',
363-
];
364-
$ignoreErrors[] = [
365-
'message' => '#^Method CodeIgniter\\\\Controller\\:\\:loadHelpers\\(\\) has no return type specified\\.$#',
366-
'count' => 1,
367-
'path' => __DIR__ . '/system/Controller.php',
368-
];
369349
$ignoreErrors[] = [
370350
'message' => '#^Method CodeIgniter\\\\Database\\\\BaseBuilder\\:\\:_whereIn\\(\\) has parameter \\$values with no signature specified for Closure\\.$#',
371351
'count' => 1,

system/Controller.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ class Controller
7070
/**
7171
* Constructor.
7272
*
73+
* @return void
74+
*
7375
* @throws HTTPException
7476
*/
7577
public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
@@ -96,6 +98,8 @@ public function initController(RequestInterface $request, ResponseInterface $res
9698
* considered secure for. Only with HSTS header.
9799
* Default value is 1 year.
98100
*
101+
* @return void
102+
*
99103
* @throws HTTPException
100104
*/
101105
protected function forceHTTPS(int $duration = 31_536_000)
@@ -106,6 +110,8 @@ protected function forceHTTPS(int $duration = 31_536_000)
106110
/**
107111
* Provides a simple way to tie into the main CodeIgniter class and
108112
* tell it how long to cache the current page for.
113+
*
114+
* @return void
109115
*/
110116
protected function cachePage(int $time)
111117
{
@@ -118,6 +124,8 @@ protected function cachePage(int $time)
118124
* @deprecated Use `helper` function instead of using this method.
119125
*
120126
* @codeCoverageIgnore
127+
*
128+
* @return void
121129
*/
122130
protected function loadHelpers()
123131
{

0 commit comments

Comments
 (0)