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

Multiple issues with dump #1

Open
MarcHagen opened this issue Mar 26, 2024 · 1 comment
Open

Multiple issues with dump #1

MarcHagen opened this issue Mar 26, 2024 · 1 comment

Comments

@MarcHagen
Copy link

MarcHagen commented Mar 26, 2024

Im trying to add these stub file to work with PHPStan so it can resolve some of the classes and functions within the WHMCS blackbox.

Unfortuanlly im encountering some problems that should be indeed fixed..


PHP Fatal error:  Cannot redeclare widgetOutput() (previously declared in oblak\whmcs-stubs\whmcs\whmcs.php:259027) in oblak\whmcs-stubs\whmcs\whmcs.php on line 259037
PHP Fatal error:  Class Doctrine\Common\Annotations\DocLexer contains 3 abstract methods and must therefore be declared abstract or implement the remaining methods (Doctrine\Common\Lexer\AbstractLexer::getCatchablePatterns, Doctrine\Common\Lexer\AbstractLexer::getNonCatchablePatterns, Doctrine\Common\Lexer\
AbstractLexer::getType) in oblak\whmcs-stubs\whmcs\whmcs.php on line 82826
PHP Fatal error:  Class JMS\Serializer\TypeParser contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (JMS\Parser\AbstractParser::parseInternal) in oblak\whmcs-stubs\whmcs\whmcs.php on line 84758
PHP Fatal error:  Class WHMCS\Module\Storage\EncryptedTransientStorage contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (WHMCS\Module\Storage\AbstractDataStorage::readDataFromStorage, WHMCS\Module\Storage\AbstractDataStorage::writeDataToStorage) in oblak\whmcs-stubs\whmcs\whmcs.php on line 192427
PHP Fatal error:  Cannot redeclare licensing_clientarea() (previously declared in oblak\whmcs-stubs\whmcs\whmcs.php:262715) in oblak\whmcs-stubs\whmcs\whmcs.php on line 263182

These are errors because I've also added the illuminate packages to composer.json, and these should be removed from this dump or get a function_exists wrapper.
Makes no sense to me why these are dump within this stub file as we can just include the actual source files.

PHP Fatal error:  Cannot redeclare e() (previously declared in illuminate\support\helpers.php:252) in oblak\whmcs-stubs\whmcs\whmcs.php on line 266617

and more


composer.json

  "require-dev": {
    "illuminate/contracts": "7.12.0",
    "illuminate/database": "7.12.0",
    "illuminate/support": "7.12.0",
    "smarty/smarty": "3.1.36",
    "oblak/whmcs-stubs": "7.10.2"
  },
@MarcHagen
Copy link
Author

Any suggestions @seebeen ?

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

No branches or pull requests

1 participant