Ejemplo n.º 1
0
	/** @noinspection PhpUnusedLocalVariableInspection */
	/** @noinspection PhpIllegalArrayKeyTypeInspection */
	/** @noinspection PhpUndefinedClassInspection */
	/** @noinspection PhpDeprecationInspection */
	$STATIC_METHOD_TYPES = [
		\ZigiPhp\Helpers\Collection::get('') => [
			%s
		],
	];
}
TAG;
error_reporting(-1);
@ini_set('display_errors', 1);
define('PUBLIC_PATH', dirname(__FILE__));
define('ROOT_PATH', dirname(__FILE__));
define('APP_PATH', ROOT_PATH . '/app');
require_once ROOT_PATH . '/bootstrap/autoload.php';
$app = new App();
$keys = array_keys($app->getContainer()->__toArray());
$result = [];
foreach ($keys as $key) {
    $value = $app->getContainer()->get($key);
    if (gettype($value) == 'object') {
        $result[] = sprintf("'{$key}' instanceof %s", get_class($value));
    } else {
        $result[] = sprintf("'{$key}' instanceof %s", gettype($value));
    }
}
$result = implode(',', $result);
file_put_contents(ROOT_PATH . '/.phpstorm.meta.php', sprintf($data, $result));