for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace yiicod\fileupload\events;
use yii\base\Event;
/**
* Class RemoveFile
* Remove file event
*
* @author Virchenko Maksim <[email protected]>
* @package yiicod\fileupload\events
*/
class RemoveFile extends Event
{
* Removed field file name
* @var array
public $field;
* Upload directory path
public $uploadDir;
* Folder path
* @var
public $folderPath;
* RemoveFile constructor.
* @param string $field
* @param string $uploadDir
* @param string $folderPath
* @param array $config
public function __construct(string $field, string $uploadDir, string $folderPath, array $config = [])
parent::__construct($config);
$this->field = $field;
$field
string
array
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..
$this->uploadDir = $uploadDir;
$uploadDir
$this->folderPath = $folderPath;
}
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..