Skip to content

Commit

Permalink
docs: add @var for better DX
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Aug 9, 2024
1 parent f08c4ae commit 6e9158f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions system/Common.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
use CodeIgniter\HTTP\RedirectResponse;
use CodeIgniter\HTTP\RequestInterface;
use CodeIgniter\HTTP\ResponseInterface;
use CodeIgniter\Language\Language;
use CodeIgniter\Model;
use CodeIgniter\Session\Session;
use CodeIgniter\Test\TestLogger;
Expand Down Expand Up @@ -732,6 +733,7 @@ function is_windows(?bool $mock = null): bool
*/
function lang(string $line, array $args = [], ?string $locale = null)
{
/** @var Language $language */
$language = service('language');

// Get active locale
Expand Down

0 comments on commit 6e9158f

Please sign in to comment.