Skip to content

Commit 89c0898

Browse files
committed
FIX: psalm.php(if statement)
1 parent 19fac63 commit 89c0898

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

psalm/psalm.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66

77
namespace Psalm\Internal\Codebase;
88

9-
use function view;
10-
119
class InternalCodebase
1210
{
1311
/**
14-
* @psalm-suppress UnrecognizedFunction
12+
* Initializes framework functions for Psalm to recognize.
1513
*/
1614
public function initFunctions(): void
1715
{
18-
if (!function_exists('view')) {
16+
// Fully qualify the namespace when checking for the function's existence
17+
if (!function_exists(__NAMESPACE__ . '\\view')) {
1918
/**
19+
* Declare the stub function within the current namespace.
2020
* @psalm-suppress UndefinedFunction
2121
*/
2222
function view(string $view, array $options = []): string

0 commit comments

Comments
 (0)