Skip to content

Commit a564fe7

Browse files
authored
Merge pull request #7426 from kenjis/fix-phpstan-errors
docs: fix phpstan errors
2 parents e5407b7 + de96bb0 commit a564fe7

3 files changed

Lines changed: 2 additions & 8 deletions

File tree

phpstan-baseline.neon.dist

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,6 @@ parameters:
6060
count: 1
6161
path: system/Database/Migration.php
6262

63-
-
64-
message: "#^Property CodeIgniter\\\\Database\\\\BaseConnection\\<mysqli,mysqli_result\\>\\:\\:\\$strictOn \\(bool\\) in isset\\(\\) is not nullable\\.$#"
65-
count: 1
66-
path: system/Database/MySQLi/Connection.php
67-
6863
-
6964
message: "#^Access to an undefined property CodeIgniter\\\\Database\\\\BaseConnection\\<mysqli, mysqli_result\\>\\:\\:\\$mysqli\\.$#"
7065
count: 3

system/API/ResponseTrait.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
use CodeIgniter\Format\FormatterInterface;
1515
use CodeIgniter\HTTP\IncomingRequest;
16+
use CodeIgniter\HTTP\RequestInterface;
1617
use CodeIgniter\HTTP\ResponseInterface;
1718
use Config\Services;
1819

@@ -21,7 +22,7 @@
2122
* consistent HTTP responses under a variety of common
2223
* situations when working as an API.
2324
*
24-
* @property IncomingRequest $request
25+
* @property RequestInterface $request
2526
* @property ResponseInterface $response
2627
*/
2728
trait ResponseTrait

system/HTTP/ResponseTrait.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
* Additional methods to make a PSR-7 Response class
3131
* compliant with the framework's own ResponseInterface.
3232
*
33-
* @property array $statusCodes
34-
*
3533
* @see https://github.com/php-fig/http-message/blob/master/src/ResponseInterface.php
3634
*/
3735
trait ResponseTrait

0 commit comments

Comments
 (0)