1
0
mirror of https://github.com/danog/amp.git synced 2024-12-11 17:09:40 +01:00

Disabled constructor by maknig private (removed LogicException)

This commit is contained in:
Andrew Carter 2016-05-12 12:27:24 +01:00
parent 4195b46440
commit 83596a6b7a

View File

@ -213,8 +213,5 @@ final class EventLoop
/** /**
* Disable construction as this is a static class. * Disable construction as this is a static class.
*/ */
public function __construct() private function __construct() {}
{
throw new \LogicException('This class is a static class and should not be initialized');
}
} }