GPCsolutions / doliwoo

Dolibarr WooCommerce integration
https://gpcsolutions.github.io/doliwoo
39 stars 35 forks source link

[Insight] Object parameters should be type hinted - in includes/class-doliwoo-parameters.php, line 77 #29

Closed rdoursenaud closed 9 years ago

rdoursenaud commented 9 years ago

in includes/class-doliwoo-parameters.php, line 77

The parameter user, which is an object, should be typehinted.

     *
     * @param mixed $user User (object) being displayed
     *
     * @return void
     */
    public function customer_meta_fields( $user ) {
        // Only allow WooCommerce managers
        if ( ! current_user_can( 'manage_woocommerce' ) ) {
            return;
        }

Posted from SensioLabsInsight