diff options
Diffstat (limited to 'vendor/react/http/src/Server.php')
-rw-r--r-- | vendor/react/http/src/Server.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/vendor/react/http/src/Server.php b/vendor/react/http/src/Server.php new file mode 100644 index 0000000..9bb9cf7 --- /dev/null +++ b/vendor/react/http/src/Server.php @@ -0,0 +1,18 @@ +<?php + +namespace React\Http; + +// Deprecated `Server` is an alias for new `HttpServer` to ensure existing code continues to work as-is. +\class_alias(__NAMESPACE__ . '\\HttpServer', __NAMESPACE__ . '\\Server', true); + +// Aid static analysis and IDE autocompletion about this deprecation, +// but don't actually execute during runtime because `HttpServer` is final. +if (!\class_exists(__NAMESPACE__ . '\\Server', false)) { + /** + * @deprecated 1.5.0 See HttpServer instead + * @see HttpServer + */ + final class Server extends HttpServer + { + } +} |