Skip to content

Instantly share code, notes, and snippets.

@szepeviktor
Last active June 30, 2019 16:34
Show Gist options
  • Save szepeviktor/9881470ac57fe6236d0e2ea77d3e7d17 to your computer and use it in GitHub Desktop.
Save szepeviktor/9881470ac57fe6236d0e2ea77d3e7d17 to your computer and use it in GitHub Desktop.
flexible-shipping-ups
$ analyze/bin/phpstan analyze
Note: Using configuration file /home/viktor/tmp/flexible-shipping-ups/phpstan.neon.dist.
44/44 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
------ ---------------------------------------------------------------------------------------------------------------------------
Line classes/access-points-helper.php
------ ---------------------------------------------------------------------------------------------------------------------------
35 PHPDoc tag @param has invalid value ($access_key): Unexpected token "$access_key", expected TOKEN_IDENTIFIER at offset 75
35 PHPDoc tag @param has invalid value ($password): Unexpected token "$password", expected TOKEN_IDENTIFIER at offset 120
35 PHPDoc tag @param has invalid value ($user_id): Unexpected token "$user_id", expected TOKEN_IDENTIFIER at offset 99
------ ---------------------------------------------------------------------------------------------------------------------------
------ -------------------------------------------------------------------------------------------------------------------------------------------------------------
Line classes/flexible-shipping-ups-plugin.php
------ -------------------------------------------------------------------------------------------------------------------------------------------------------------
38 PHPDoc tag @param references unknown parameter: $base_file
38 PHPDoc tag @param references unknown parameter: $plugin_data
83 Access to an undefined property Flexible_Shipping_UPS_Plugin::$plugin_text_domain.
86 Access to an undefined property Flexible_Shipping_UPS_Plugin::$default_settings_tab.
92 Access to an undefined property Flexible_Shipping_UPS_Plugin::$default_view_args.
222 PHPDoc tag @param has invalid value ($methods): Unexpected token "$methods", expected TOKEN_IDENTIFIER at offset 56
247 Constant WC_VERSION not found.
277 Function should_enable_wpdesk_tracker not found while trying to analyse it - autoloading is probably not configured properly.
277 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.
300 Constant WC_VERSION not found.
------ -------------------------------------------------------------------------------------------------------------------------------------------------------------
------ -----------------------------------------------------------------------------------------------------------------------------------------------------------
Line classes/shipping-method.php
------ -----------------------------------------------------------------------------------------------------------------------------------------------------------
25 Property Flexible_Shipping_UPS_Shipping_Method::$rating_rest_api (Flexible_Shipping_UPS_UPS_RATING_REST_API) does not accept default value of type false.
39 Flexible_Shipping_UPS_Shipping_Method::__construct() does not call parent constructor from WC_Shipping_Method.
101 Constant WC_VERSION not found.
161 Negated boolean expression is always false.
384 Constant WC_VERSION not found.
397 PHPDoc tag @param has invalid value ($data): Unexpected token "$data", expected TOKEN_IDENTIFIER at offset 91
397 PHPDoc tag @param has invalid value ($key): Unexpected token "$key", expected TOKEN_IDENTIFIER at offset 74
479 PHPDoc tag @param has invalid value ($data): Unexpected token "$data", expected TOKEN_IDENTIFIER at offset 89
479 PHPDoc tag @param has invalid value ($key): Unexpected token "$key", expected TOKEN_IDENTIFIER at offset 72
519 PHPDoc tag @param has invalid value ($key): Unexpected token "$key", expected TOKEN_IDENTIFIER at offset 63
519 PHPDoc tag @param has invalid value ($value): Unexpected token "$value", expected TOKEN_IDENTIFIER at offset 80
559 Method Flexible_Shipping_UPS_Shipping_Method::process_admin_options() should return bool|void but return statement is missing.
568 PHPDoc tag @param has invalid value ($message): Unexpected token "$message", expected TOKEN_IDENTIFIER at offset 51
816 Access to an undefined property object::$CurrencyCode.
848 PHPDoc tag @param has invalid value ($service_code): Unexpected token "$service_code", expected TOKEN_IDENTIFIER at offset 46
865 PHPDoc tag @param has invalid value ($service_code): Unexpected token "$service_code", expected TOKEN_IDENTIFIER at offset 44
952 PHPDoc tag @param has invalid value ($package): Unexpected token "$package", expected TOKEN_IDENTIFIER at offset 48
1076 PHPDoc tag @param has invalid value ($package): Unexpected token "$package", expected TOKEN_IDENTIFIER at offset 51
1091 PHPDoc tag @param has invalid value ($package): Unexpected token "$package", expected TOKEN_IDENTIFIER at offset 52
------ -----------------------------------------------------------------------------------------------------------------------------------------------------------
------ ---------------------------------------------------------------------------------------------------------------
Line classes/ups/rating-rest-api.php
------ ---------------------------------------------------------------------------------------------------------------
149 Access to an undefined property object::$detail.
174 PHPDoc tag @param has invalid value ($data): Unexpected token "$data", expected TOKEN_IDENTIFIER at offset 16
------ ---------------------------------------------------------------------------------------------------------------
------ -----------------------------------------------------------------
Line inc/wpdesk-tracker/class-wpdesk-tracker.php
------ -----------------------------------------------------------------
157 Function should_enable_wpdesk_tracker not found.
279 Function should_enable_wpdesk_tracker not found.
341 Function remove_action invoked with 4 parameters, 2-3 required.
355 Function remove_action invoked with 4 parameters, 2-3 required.
416 Function should_enable_wpdesk_tracker not found.
------ -----------------------------------------------------------------
------ ----------------------------------------------------------------------------------
Line inc/wpdesk-tracker/data_provider/class-wpdesk-tracker-data-provider-gateways.php
------ ----------------------------------------------------------------------------------
30 Access to an undefined property WooCommerce::$payment_gateways.
33 Access to an undefined property object::$supports.
33 Access to an undefined property object::$title.
------ ----------------------------------------------------------------------------------
------ ---------------------------------------------------------------------------------------------
Line inc/wpdesk-tracker/data_provider/class-wpdesk-tracker-data-provider-identification-gdpr.php
------ ---------------------------------------------------------------------------------------------
38 Constant NONCE_SALT not found.
52 Constant NONCE_SALT not found.
54 Constant NONCE_SALT not found.
------ ---------------------------------------------------------------------------------------------
------ ---------------------------------------------------------------------------------
Line inc/wpdesk-tracker/data_provider/class-wpdesk-tracker-data-provider-jetpack.php
------ ---------------------------------------------------------------------------------
31 Call to static method is_active() on an unknown class Jetpack.
32 Call to static method is_staging_site() on an unknown class Jetpack.
------ ---------------------------------------------------------------------------------
------ ----------------------------------------------------------------------------------------
Line inc/wpdesk-tracker/data_provider/class-wpdesk-tracker-data-provider-license-emails.php
------ ----------------------------------------------------------------------------------------
39 Access to an undefined property object::$activation_email.
39 Access to an undefined property object::$activation_email.
------ ----------------------------------------------------------------------------------------
------ --------------------------------------------------------------------------------------
Line inc/wpdesk-tracker/data_provider/class-wpdesk-tracker-data-provider-orders-month.php
------ --------------------------------------------------------------------------------------
44 Result of && is always false.
------ --------------------------------------------------------------------------------------
------ ------------------------------------------------------------------------------------------------
Line inc/wpdesk-tracker/data_provider/class-wpdesk-tracker-data-provider-shipping-methods-zones.php
------ ------------------------------------------------------------------------------------------------
54 Variable $data might not be defined.
------ ------------------------------------------------------------------------------------------------
------ ------------------------------------------------------------------------------------------
Line inc/wpdesk-tracker/data_provider/class-wpdesk-tracker-data-provider-shipping-methods.php
------ ------------------------------------------------------------------------------------------
31 Access to an undefined property WooCommerce::$shipping.
35 Access to an undefined property object::$title.
36 Access to an undefined property object::$tax_status.
------ ------------------------------------------------------------------------------------------
------ -------------------------------------------------------------------------------
Line inc/wpdesk-tracker/data_provider/class-wpdesk-tracker-data-provider-theme.php
------ -------------------------------------------------------------------------------
34 Access to an undefined property WP_Theme::$Name.
35 Access to an undefined property WP_Theme::$Version.
------ -------------------------------------------------------------------------------
------ -----------------------------------------------------------------------------------
Line inc/wpdesk-tracker/data_provider/class-wpdesk-tracker-data-provider-wordpress.php
------ -----------------------------------------------------------------------------------
31 Constant WP_MEMORY_LIMIT not found.
------ -----------------------------------------------------------------------------------
------ ----------------------------------------------------------------------------------
Line inc/wpdesk-tracker/sender/class-wpdesk-tracker-sender-logged.php
------ ----------------------------------------------------------------------------------
41 Access to constant DEBUG on an unknown class WPDesk_Logger.
41 Call to static method log_message() on an unknown class WPDesk_Logger_Factory.
44 Access to constant DEBUG on an unknown class WPDesk_Logger.
44 Call to static method log_message() on an unknown class WPDesk_Logger_Factory.
47 Call to static method log_exception() on an unknown class WPDesk_Logger_Factory.
------ ----------------------------------------------------------------------------------
[ERROR] Found 62 errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment