Skip to content

Multiple issues with dump #1

@MarcHagen

Description

@MarcHagen

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"
  },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions