diff --git a/.travis.yml b/.travis.yml index 7c9776c..23a03c0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,9 @@ matrix: - php: 7.2 env: COLLECT_COVERAGE=true VALIDATE_CODING_STYLE=true RUN_PHPSTAN=true IGNORE_PLATFORMS=false - php: 7.3 - env: COLLECT_COVERAGE=false VALIDATE_CODING_STYLE=false RUN_PHPSTAN=false IGNORE_PLATFORMS=true + env: COLLECT_COVERAGE=false VALIDATE_CODING_STYLE=false RUN_PHPSTAN=false IGNORE_PLATFORMS=false + - php: 7.4 + env: COLLECT_COVERAGE=false VALIDATE_CODING_STYLE=false RUN_PHPSTAN=false IGNORE_PLATFORMS=false - php: nightly env: COLLECT_COVERAGE=false VALIDATE_CODING_STYLE=false RUN_PHPSTAN=false IGNORE_PLATFORMS=true allow_failures: diff --git a/benchmark/http-create-from-components.php b/benchmark/http-create-from-components.php index 07b4e28..c774b8f 100644 --- a/benchmark/http-create-from-components.php +++ b/benchmark/http-create-from-components.php @@ -1,7 +1,7 @@ scheme && null === $this->host); } } + +class_alias(Ftp::class, League\Schemes\Ftp::class); diff --git a/src/Http.php b/src/Http.php index 18b9d36..e24eb50 100644 --- a/src/Http.php +++ b/src/Http.php @@ -1,7 +1,7 @@ - * @license https://github.com/thephpleague/uri-schemes/blob/master/LICENSE (MIT License) - * @version 1.2.1 - * @link https://github.com/thephpleague/uri-schemes - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace League\Uri\Schemes; - -use League\Uri as LeagueUri; -use function class_alias; -use function class_exists; - -class_alias(LeagueUri\AbstractUri::class, AbstractUri::class); -if (!class_exists(AbstractUri::class)) { - /** - * @deprecated use instead {@link LeagueUri\AbstractUri} - */ - class AbstractUri - { - } -} - -class_alias(LeagueUri\Data::class, Data::class); -if (!class_exists(Data::class)) { - /** - * @deprecated use instead {@link LeagueUri\Data} - */ - class Data - { - } -} - -class_alias(LeagueUri\File::class, File::class); -if (!class_exists(File::class)) { - /** - * @deprecated use instead {@link LeagueUri\File} - */ - class File - { - } -} - -class_alias(LeagueUri\Ftp::class, Ftp::class); -if (!class_exists(Ftp::class)) { - /** - * @deprecated use instead {@link LeagueUri\Ftp} - */ - class Ftp - { - } -} - -class_alias(LeagueUri\Http::class, Http::class); -if (!class_exists(Http::class)) { - /** - * @deprecated use instead {@link LeagueUri\Http} - */ - class Http - { - } -} - -class_alias(LeagueUri\Uri::class, Uri::class); -if (!class_exists(Uri::class)) { - /** - * @deprecated use instead {@link LeagueUri\Uri} - */ - class Uri - { - } -} - -class_alias(LeagueUri\UriException::class, UriException::class); -if (!class_exists(UriException::class)) { - /** - * @deprecated use instead {@link LeagueUri\UriException} - */ - class UriException - { - } -} - -class_alias(LeagueUri\Ws::class, Ws::class); -if (!class_exists(Ws::class)) { - /** - * @deprecated use instead {@link LeagueUri\Ws} - */ - class Ws - { - } -} diff --git a/src/Uri.php b/src/Uri.php index 52f463e..d85528d 100644 --- a/src/Uri.php +++ b/src/Uri.php @@ -1,7 +1,7 @@