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:
parent
4195b46440
commit
83596a6b7a
@ -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');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user