nextcloud-config-parser/tests/configs/non_literal.php

17 lines
No EOL
338 B
PHP

<?php
function get_foo(): string { return 'foo'; }
$CONFIG = [
'overwrite.cli.url' => 'https://cloud.example.com',
'dbtype' => 'mysql',
'dbname' => get_foo() . '_db',
'dbhost' => '127.0.0.1',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'nextcloud',
'dbpassword' => 'secret',
'redis' => [
'host' => 'localhost'
]
];