Skip to content

Commit

Permalink
Add debug statements for namespace parsing
Browse files Browse the repository at this point in the history
Inserted var_dump() calls to display the namespace and namespaceResult variables. This will assist in debugging issues related to namespace parsing in the ClassName.php file.
  • Loading branch information
koriym committed Nov 4, 2024
1 parent 7a4a679 commit 7228740
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ClassName.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ public static function from(string $filePath): ?string
/** @var string */

Check failure on line 59 in src/ClassName.php

View workflow job for this annotation

GitHub Actions / cs / Coding Standards

Invalid inline documentation comment format "@var string", expected "@var type $variableName Optional description".
$namespace = $namespaceResult[0];
$position = $namespaceResult[1];
var_dump("ns:$namespace");

Check failure on line 62 in src/ClassName.php

View workflow job for this annotation

GitHub Actions / sa / Psalm

ForbiddenCode: Unsafe var_dump
var_dump("namespaceResult:");

Check failure on line 63 in src/ClassName.php

View workflow job for this annotation

GitHub Actions / cs / Coding Standards

String "namespaceResult:" does not require double quotes; use single quotes instead

Check failure on line 63 in src/ClassName.php

View workflow job for this annotation

GitHub Actions / sa / Psalm

ForbiddenCode: Unsafe var_dump
var_dump($namespaceResult);

Check failure on line 64 in src/ClassName.php

View workflow job for this annotation

GitHub Actions / sa / Psalm

ForbiddenCode: Unsafe var_dump

continue 2;
case T_CLASS:
$className = self::parseClassName($tokens, $position + 1, $count);
Expand Down

0 comments on commit 7228740

Please sign in to comment.