Files
dolibarr/dev/tools/phan/stubs/fileinfo.phan_php
MDW 8655d5a86b QUAL Use phan to help detect new issues (#27706)
* Qual: Add phan flow

- Add phan configuration (config, baseline, stubs);
- Add github action;
- Update apstats.php.

* Add directives to ignore false phan notices

* Qual: Add typing hints for extrafields TPL files

# Qual: Add typing hints for extrafields TPL files

Add typing hints for phan on view files

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-02-21 18:14:29 +01:00

31 lines
995 B
Plaintext

<?php
// These stubs were generated by the phan stub generator.
// @phan-stub-for-extension fileinfo@1.0.5
namespace {
class finfo {
// methods
public function finfo($options = null, $arg = null) {}
public function set_flags($options) {}
public function file($filename, $options = null, $context = null) {}
public function buffer($string, $options = null, $context = null) {}
}
function finfo_buffer($finfo, $string, $options = null, $context = null) {}
function finfo_close($finfo) {}
function finfo_file($finfo, $filename, $options = null, $context = null) {}
function finfo_open($options = null, $arg = null) {}
function finfo_set_flags($finfo, $options) {}
function mime_content_type($string) {}
const FILEINFO_CONTINUE = 32;
const FILEINFO_DEVICES = 8;
const FILEINFO_MIME = 1040;
const FILEINFO_MIME_ENCODING = 1024;
const FILEINFO_MIME_TYPE = 16;
const FILEINFO_NONE = 0;
const FILEINFO_PRESERVE_ATIME = 128;
const FILEINFO_RAW = 256;
const FILEINFO_SYMLINK = 2;
}