2022-12-30 19:21:36 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
2019-12-26 21:33:51 +01:00
|
|
|
|
2022-12-08 20:16:40 +01:00
|
|
|
$input = file_get_contents('vendor/league/uri-interfaces/src/Contracts/UriInterface.php');
|
|
|
|
preg_match_all("/public function (\w+)[(].*/", $input, $matches);
|
2019-12-26 21:33:51 +01:00
|
|
|
$search = $matches[1];
|
|
|
|
$replace = $matches[0];
|
|
|
|
|
|
|
|
foreach ($search as &$method) {
|
|
|
|
$method = "/public function $method".'[(].*/';
|
|
|
|
}
|
|
|
|
foreach ($replace as &$method) {
|
2022-12-08 20:16:40 +01:00
|
|
|
$method= str_replace(';', '', $method);
|
2019-12-26 21:33:51 +01:00
|
|
|
}
|
|
|
|
|
2022-12-08 20:16:40 +01:00
|
|
|
$input = file_get_contents('vendor/league/uri/src/Uri.php');
|
|
|
|
$input = preg_replace($search, $replace, $input);
|
|
|
|
file_put_contents('vendor/league/uri/src/Uri.php', $input);
|