Initial Commit
This commit is contained in:
13
dependencies/amphp/http-client/src/Internal/ForbidCloning.php
vendored
Normal file
13
dependencies/amphp/http-client/src/Internal/ForbidCloning.php
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace WP_Ultimo\Dependencies\Amp\Http\Client\Internal;
|
||||
|
||||
/** @internal */
|
||||
trait ForbidCloning
|
||||
{
|
||||
protected final function __clone()
|
||||
{
|
||||
// clone is automatically denied to all external calls
|
||||
// final protected instead of private to also force denial for all children
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user