We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19fac63 commit 89c0898Copy full SHA for 89c0898
1 file changed
psalm/psalm.php
@@ -6,17 +6,17 @@
6
7
namespace Psalm\Internal\Codebase;
8
9
-use function view;
10
-
11
class InternalCodebase
12
{
13
/**
14
- * @psalm-suppress UnrecognizedFunction
+ * Initializes framework functions for Psalm to recognize.
15
*/
16
public function initFunctions(): void
17
18
- if (!function_exists('view')) {
+ // Fully qualify the namespace when checking for the function's existence
+ if (!function_exists(__NAMESPACE__ . '\\view')) {
19
+ * Declare the stub function within the current namespace.
20
* @psalm-suppress UndefinedFunction
21
22
function view(string $view, array $options = []): string
0 commit comments