mirror of
https://github.com/pestphp/pest.git
synced 2026-04-22 06:57:28 +02:00
first
This commit is contained in:
22
src/Support/NullClosure.php
Normal file
22
src/Support/NullClosure.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Pest\Support;
|
||||
|
||||
use Closure;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class NullClosure
|
||||
{
|
||||
/**
|
||||
* Creates a nullable closure.
|
||||
*/
|
||||
public static function create(): Closure
|
||||
{
|
||||
return Closure::fromCallable(function (): void {
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user