Skip to content

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

@camoralb

Description

@camoralb

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, ...)

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions