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

HI! I'm having a problem with Model Implementation #3

Open
camoralb opened this issue Jan 21, 2017 · 1 comment
Open

HI! I'm having a problem with Model Implementation #3

camoralb opened this issue Jan 21, 2017 · 1 comment
Assignees
Labels

Comments

@camoralb
Copy link

Declaration of chsergey\rest\Model::getAttributes() should be compatible with yii\base\Model::getAttributes($names = NULL, $except = Array)

1. in C:\xampp\htdocs\ventas_yii\vendor\chsergey\yii2-rest-client\src\Model.php at line 10
12345678910111213141516171819

<?php
 
namespace chsergey\rest;
 
/**
 * Class Model
 * 
 * @package chsergey\rest
 */
abstract class Model extends \yii\base\Model implements ModelInterface {
    /**
     * Url to REST API without resource name with trailing slash
     * Resource name will be added as postfix
     * @var string
     */
    public static $apiUrl;
    /**
     * REST resource name without trailing slash
     * @var string

2. in C:\xampp\htdocs\ventas_yii\vendor\chsergey\yii2-rest-client\src\Model.php at line 10 – yii\base\ErrorHandler::handleError(2048, 'Declaration of chsergey\rest\Mod...', 'C:\xampp\htdocs\ventas_yii\vendo...', 10, ...)
@lucasgoicoechea
Copy link

I have same problem, i dont want modificed getAtributtes method.
Any solution?

@chsergey chsergey self-assigned this Sep 4, 2018
@chsergey chsergey added the bug label Sep 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants