Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add ffime & phpstan #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ging-dev
Copy link

No description provided.

@levydsa
Copy link
Collaborator

levydsa commented Nov 11, 2024

hey, @ging-dev! sorry about the lack of feedback. i'll be setting some time to properly review this, but overall, this is looking great. thanks for the contribution.

@levydsa
Copy link
Collaborator

levydsa commented Dec 9, 2024

@ging-dev I'm unable to run generate.php, getting this error:

object(PHPCParser\PreProcessor\Token)#71499 (6) {
  ["type"]=>
  int(4)
  ["value"]=>
  string(1) ":"
  ["file"]=>
  string(119) "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include//sys/cdefs.h"
  ["line"]=>
  int(554)
  ["next"]=>
  object(PHPCParser\PreProcessor\Token)#71500 (6) {
    ["type"]=>
    int(4)
    ["value"]=>
    string(1) ":"
    ["file"]=>
    string(119) "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include//sys/cdefs.h"
    ["line"]=>
    int(554)
    ["next"]=>
    object(PHPCParser\PreProcessor\Token)#71501 (6) {
      ["type"]=>
      int(1)
      ["value"]=>
      string(19) "unsafe_buffer_usage"
      ["file"]=>
      string(119) "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include//sys/cdefs.h"
      ["line"]=>
      int(554)
      ["next"]=>
      object(PHPCParser\PreProcessor\Token)#71502 (6) {
        ["type"]=>
        int(4)
        ["value"]=>
        string(1) ")"
        ["file"]=>
        string(119) "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include//sys/cdefs.h"
        ["line"]=>
        int(554)
        ["next"]=>
        NULL
        ["origin"]=>
        array(0) {
        }
      }
      ["origin"]=>
      array(0) {
      }
    }
    ["origin"]=>
    array(0) {
    }
  }
  ["origin"]=>
  array(0) {
  }
}

Fatal error: Uncaught LogicException: Unknown operator : in /Users/levy/Documents/libsql-php/vendor/ircmaxell/php-c-parser/lib/Context.php:457
Stack trace:
#0 /Users/levy/Documents/libsql-php/vendor/ircmaxell/php-c-parser/lib/Context.php(411): PHPCParser\Context->evaluateInternal(Object(PHPCParser\PreProcessor\Token), false)
#1 /Users/levy/Documents/libsql-php/vendor/ircmaxell/php-c-parser/lib/Context.php(318): PHPCParser\Context->evaluateInternal(Object(PHPCParser\PreProcessor\Token))
#2 /Users/levy/Documents/libsql-php/vendor/ircmaxell/php-c-parser/lib/PreProcessor.php(162): PHPCParser\Context->evaluate(Object(PHPCParser\PreProcessor\Token))
#3 /Users/levy/Documents/libsql-php/vendor/ircmaxell/php-c-parser/lib/PreProcessor.php(90): PHPCParser\PreProcessor->evaluateIf(Object(PHPCParser\PreProcessor\Token))
#4 /Users/levy/Documents/libsql-php/vendor/ircmaxell/php-c-parser/lib/CParser.php(23): PHPCParser\PreProcessor->process('/Users/levy/Doc...')
#5 /Users/levy/Documents/libsql-php/vendor/ircmaxell/ffime/lib/FFIMe.php(109): PHPCParser\CParser->parse('/Users/levy/Doc...', Object(PHPCParser\Context))
#6 /Users/levy/Documents/libsql-php/generate.php(8): FFIMe\FFIMe->include('/Users/levy/Doc...')
#7 {main}
  thrown in /Users/levy/Documents/libsql-php/vendor/ircmaxell/php-c-parser/lib/Context.php on line 457

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants