mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
22 lines
289 B
PHP
22 lines
289 B
PHP
<?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 {});
|
|
}
|
|
}
|