/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
src/Illuminate/Database/Concerns/ParsesSearchPath.php
25 строк
578 B
Derek MacDonald
[9.x] Fix Postgres driver not dropping all tables & views (#41701)
28 мар 2022, 17:15
Не верифицирован
28 мар 2022, 17:15
ba1e833
Код
Авторство
О чём код?
<?php namespace Illuminate\Database\Concerns; trait ParsesSearchPath { /** * Parse the Postgres "search_path" configuration value into an array. * * @param string|array|null $searchPath * @return array */ protected function parseSearchPath($searchPath) { if (is_string($searchPath)) { preg_match_all('/[^\s,"\']+/', $searchPath, $matches); $searchPath = $matches[0]; } return array_map(function ($schema) { return trim($schema, '\'"'); }, $searchPath ?? []); } }