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

Remove ugly dependencies to old spaghetti code #12

Open
Tracked by #2 ...
carstingaxion opened this issue Feb 23, 2024 · 0 comments
Open
Tracked by #2 ...

Remove ugly dependencies to old spaghetti code #12

carstingaxion opened this issue Feb 23, 2024 · 0 comments
Labels
bug Something isn't working dependencies 3rd-party Dependencies

Comments

@carstingaxion
Copy link
Member

carstingaxion commented Feb 23, 2024

image

Error: Call to static method get() on an unknown class Figuren_Theater\API.
Error: Class Figuren_Theater\Options\Collection extends unknown class Figuren_Theater\SiteParts\SitePartsCollectionAbstract.
Error: Method Figuren_Theater\Options\Collection::get_collection() has invalid return type Figuren_Theater\SiteParts\SitePartsCollectionInterface.
Error: PHPDoc tag @return with type Figuren_Theater\Options\Proxied_Collection is not subtype of native type Figuren_Theater\SiteParts\SitePartsCollectionInterface.
Error: Class Figuren_Theater\Options\Manager extends unknown class Figuren_Theater\SiteParts\SitePartsManagerAbstract.
Error: Access to an undefined property Figuren_Theater\Options\Manager::$collection.
Error: Access to an undefined property Figuren_Theater\Options\Manager::$collection.
Error: Class Figuren_Theater\Options\Proxied_Collection extends unknown class Figuren_Theater\SiteParts\ProxiedSitePartsCollectionAbstract.
Error: Call to method set_Options_Manager() on an unknown class Figuren_Theater\ProxiedSite.
Error: Class Figuren_Theater\Options\Manager does not have a constructor and must be instantiated without any parameters.
Error: Call to static method add() on an unknown class Figuren_Theater\API.
Error: Process completed with exit code 1.

ft-options/phpstan.neon

Lines 12 to 34 in 098decb

# Error message "Class Figuren_Theater\Options\Collection extends unknown class ...
# ... Figuren_Theater\SiteParts\SitePartsCollectionAbstract." cannot be ignored, use
# excludePaths instead.
- inc/class-collection.php
# Error message "Class Figuren_Theater\Options\Proxied_Collection extends unknown class ...
# ... Figuren_Theater\SiteParts\ProxiedSitePartsCollectionAbstract." cannot be ignored, use
# excludePaths instead.
- inc/class-proxied-collection.php
# Error message "Class Figuren_Theater\Options\Manager extends unknown class ...
# ... Figuren_Theater\SiteParts\SitePartsManagerAbstract." cannot be ignored, use
# excludePaths instead.
- inc/class-manager.php
- vendor/
# "/wp-content/" is created during composer install,
# when package is tested
# and not running within ft-platform
- wp-content/
- tests/
ignoreErrors:
# TODO #12 Remove ugly dependencies to old spaghetti code
- '#Call to static method add\(\) on an unknown class Figuren_Theater\\API\.#'
- '#Call to static method get\(\) on an unknown class Figuren_Theater\\API\.#'
- '#Call to method set_Options_Manager\(\) on an unknown class Figuren_Theater\\ProxiedSite\.#'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies 3rd-party Dependencies
Projects
Status: No status
Development

No branches or pull requests

1 participant