-
Notifications
You must be signed in to change notification settings - Fork 60
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
Address phpstan ImageProxy complaints #209
Conversation
Please run: vendor/bin/phpstan analyse --level 9 . or remove the lines from https://github.com/FreshRSS/Extensions/blob/master/tests/phpstan-next.txt and then run the full tests: make test-all |
$ vendor/bin/phpstan analyse --level 9 .
Note: Using configuration file /home/alex/GitHub/Extensions/phpstan.neon.
41/41 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
------ ------------------------------------------------------------------------------------------
Line xExtension-ImageProxy/configure.phtml
------ ------------------------------------------------------------------------------------------
:10 Access to an undefined property FreshRSS_UserConfiguration::$image_proxy_url.
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
:16 Access to an undefined property FreshRSS_UserConfiguration::$image_proxy_scheme_http.
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
:22 Access to an undefined property FreshRSS_UserConfiguration::$image_proxy_scheme_https.
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
:29 Access to an undefined property FreshRSS_UserConfiguration::$image_proxy_scheme_default.
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
:29 Access to an undefined property FreshRSS_UserConfiguration::$image_proxy_scheme_default.
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
:40 Access to an undefined property FreshRSS_UserConfiguration::$image_proxy_scheme_include.
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
:46 Access to an undefined property FreshRSS_UserConfiguration::$image_proxy_url_encode.
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
------ ------------------------------------------------------------------------------------------
------ ------------------------------------------------------------------------------------------
Line xExtension-ImageProxy/extension.php
------ ------------------------------------------------------------------------------------------
:24 Access to an undefined property FreshRSS_UserConfiguration::$image_proxy_url.
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
:28 Access to an undefined property FreshRSS_UserConfiguration::$image_proxy_scheme_http.
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
:32 Access to an undefined property FreshRSS_UserConfiguration::$image_proxy_scheme_https.
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
:35 Access to an undefined property FreshRSS_UserConfiguration::$image_proxy_force.
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
:41 Access to an undefined property FreshRSS_UserConfiguration::$image_proxy_scheme_default.
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
:45 Access to an undefined property FreshRSS_UserConfiguration::$image_proxy_scheme_include.
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
:49 Access to an undefined property FreshRSS_UserConfiguration::$image_proxy_url_encode.
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
:62 Access to an undefined property FreshRSS_UserConfiguration::$image_proxy_url.
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
:63 Access to an undefined property FreshRSS_UserConfiguration::$image_proxy_scheme_http.
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
:64 Access to an undefined property FreshRSS_UserConfiguration::$image_proxy_scheme_https.
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
:65 Access to an undefined property FreshRSS_UserConfiguration::$image_proxy_scheme_default.
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
:66 Access to an undefined property FreshRSS_UserConfiguration::$image_proxy_scheme_include.
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
:67 Access to an undefined property FreshRSS_UserConfiguration::$image_proxy_url_encode.
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
:76 Access to an undefined property FreshRSS_UserConfiguration::$image_proxy_scheme_http.
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
:79 Access to an undefined property FreshRSS_UserConfiguration::$image_proxy_scheme_include.
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
:83 Access to an undefined property FreshRSS_UserConfiguration::$image_proxy_scheme_https.
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
:86 Access to an undefined property FreshRSS_UserConfiguration::$image_proxy_scheme_include.
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
:90 Access to an undefined property FreshRSS_UserConfiguration::$image_proxy_scheme_default.
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
:91 Access to an undefined property FreshRSS_UserConfiguration::$image_proxy_scheme_include.
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
:95 Access to an undefined property FreshRSS_UserConfiguration::$image_proxy_scheme_include.
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
:104 Access to an undefined property FreshRSS_UserConfiguration::$image_proxy_url_encode.
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
:107 Access to an undefined property FreshRSS_UserConfiguration::$image_proxy_url.
💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property
------ ------------------------------------------------------------------------------------------
[ERROR] Found 29 errors |
Explanations in #202 |
I had forgotten about #201 |
As stated, when I run
|
To run the tests, PHPStan needs to have access to the FreshRSS repo as well, which is by convention at the same level than the Line 9 in 265fd0b
|
Thanks, it would be useful if it complained that folder didn't exist or something. :-) |
Indeed, that would be a nice improvement, and can probably be done with a shell test |
Actually, that changes nothing. It still says it can't find anything. |
Do you have a structure with the two repos along side each other?
If so, maybe |
|
Yes, that did the trick. Thanks! |
Re. #208 (comment)