Skip to content

Commit a325d2e

Browse files
committed
docs: add @var for better DX
1 parent ed35c36 commit a325d2e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

system/Filters/CSRF.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
use CodeIgniter\HTTP\RequestInterface;
1919
use CodeIgniter\HTTP\ResponseInterface;
2020
use CodeIgniter\Security\Exceptions\SecurityException;
21+
use CodeIgniter\Security\Security;
2122

2223
/**
2324
* CSRF filter.
@@ -44,6 +45,7 @@ public function before(RequestInterface $request, $arguments = null)
4445
return;
4546
}
4647

48+
/** @var Security $security */
4749
$security = service('security');
4850

4951
try {

0 commit comments

Comments
 (0)