Update phpstan-third-party - #524
Merged
Merged
Conversation
For `composer run-script phpstan-third-party`
Member
Author
|
We could consider adding the number of PHPStan errors to our list of third-party extensions, to get a better idea automatically of their likely compatibility / maintenance / code quality |
Member
Author
$ composer run-script phpstan-third-party
> phpstan analyse -c phpstan-third-party.neon .
458/458 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
------ -------------------------------------------------------------------------------------------
Line third-party/003df625d41b62458ad6771961c1bddc4fe76d3b/xExtension-SendToMyJD2/extension.php
------ -------------------------------------------------------------------------------------------
:305 Undefined variable: $lMD
🪪 variable.undefined
------ -------------------------------------------------------------------------------------------
------ ----------------------------------------------------------------------------------------------------------------
Line third-party/71d0d525734575879efdb68094330d118b534e8a/TranslateTitlesCN/extension.php
------ ----------------------------------------------------------------------------------------------------------------
:21 Cannot instantiate class FreshRSS_UserConfiguration via private constructor Minz_Configuration::__construct().
🪪 new.privateConstructor
:21 Class FreshRSS_UserConfiguration constructor invoked with 1 parameter, 2-4 required.
🪪 arguments.count
:115 Cannot instantiate class FreshRSS_UserConfiguration via private constructor Minz_Configuration::__construct().
🪪 new.privateConstructor
:115 Class FreshRSS_UserConfiguration constructor invoked with 1 parameter, 2-4 required.
🪪 arguments.count
:166 Access to an undefined property TranslateTitlesExtension::$view.
🪪 property.notFound
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
:176 Access to an undefined property TranslateTitlesExtension::$view.
🪪 property.notFound
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
:177 Access to an undefined property TranslateTitlesExtension::$view.
🪪 property.notFound
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
:182 Access to an undefined property TranslateTitlesExtension::$view.
🪪 property.notFound
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
:183 Access to an undefined property TranslateTitlesExtension::$view.
🪪 property.notFound
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
:189 Access to an undefined property TranslateTitlesExtension::$view.
🪪 property.notFound
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
:190 Access to an undefined property TranslateTitlesExtension::$view.
🪪 property.notFound
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
------ ----------------------------------------------------------------------------------------------------------------
------ ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Line third-party/8c042738017d75b31bcbc23d84cfb35d6315f3a7/comics/penny-arcade.php
------ ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
:59 Inner named functions are not supported by PHPStan. Consider refactoring to an anonymous function, class method, or a top-level-defined function. See issue #165 (https://github.com/phpstan/phpstan/issues/165) for more details.
🪪 function.inner
------ ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------ ------------------------------------------------------------------------------------------------
Line third-party/9581cff1782b49a2cfed9e67b94fbc5601de41c5/xExtension-ExtensionManager/extension.php
------ ------------------------------------------------------------------------------------------------
:137 Method ExtensionManagerExtension::queueInstall() has invalid return type true.
🪪 class.notFound
:191 Method ExtensionManagerExtension::queueRemove() has invalid return type true.
🪪 class.notFound
:404 Method ExtensionManagerExtension::installFromExtracted() has invalid return type true.
🪪 class.notFound
------ ------------------------------------------------------------------------------------------------
------ --------------------------------------------------------------------------------------------------------
Line third-party/9581cff1782b49a2cfed9e67b94fbc5601de41c5/xExtension-QuickFilter/lib/QuickFilterService.php
------ --------------------------------------------------------------------------------------------------------
:125 Call to an undefined static method QuickFilterService::buildMatchConditions().
🪪 staticMethod.notFound
------ --------------------------------------------------------------------------------------------------------
------ ---------------------------------------------------------------------------------------
Line third-party/95ca211e7f6c04b83bf51b07c166705938755929/extension.php
------ ---------------------------------------------------------------------------------------
:726 Access to an undefined property FeedDigestExtension::$test_result.
🪪 property.notFound
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
:727 Access to an undefined property FeedDigestExtension::$test_success.
🪪 property.notFound
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
------ ---------------------------------------------------------------------------------------
------ ---------------------------------------------------------------------
Line third-party/ff93e7bdfeac04a02f76b1b3b87f43422186f1c7/extension.php
------ ---------------------------------------------------------------------
:588 Access to an undefined static property FreshRSS_Context::$category.
🪪 staticProperty.notFound
:604 Access to an undefined static property FreshRSS_Context::$feed.
🪪 staticProperty.notFound
:627 Access to an undefined static property FreshRSS_Context::$category.
🪪 staticProperty.notFound
------ ---------------------------------------------------------------------
[ERROR] Found 22 errors
Script phpstan analyse -c phpstan-third-party.neon . handling the phpstan-third-party event returned with error code 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For
composer run-script phpstan-third-party