mirror of
https://github.com/vrana/adminer.git
synced 2026-02-22 14:38:02 +01:00
PHPStan: Fix level 6 errors
This commit is contained in:
@@ -2,18 +2,23 @@
|
||||
namespace Adminer;
|
||||
|
||||
class TmpFile {
|
||||
private $handler;
|
||||
public $size; ///< @visibility protected(set)
|
||||
/** @var resource */ private $handler;
|
||||
/** @var int @visibility protected(set) */ public $size;
|
||||
|
||||
function __construct() {
|
||||
$this->handler = tmpfile();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string
|
||||
* @return void
|
||||
*/
|
||||
function write($contents) {
|
||||
$this->size += strlen($contents);
|
||||
fwrite($this->handler, $contents);
|
||||
}
|
||||
|
||||
/** @return void */
|
||||
function send() {
|
||||
fseek($this->handler, 0);
|
||||
fpassthru($this->handler);
|
||||
|
||||
Reference in New Issue
Block a user