stan errors done
This commit is contained in:
@@ -74,14 +74,14 @@ function module_exists(string $moduleName): bool
|
|||||||
* echo $user->greet(); // Hello, Ahmet
|
* echo $user->greet(); // Hello, Ahmet
|
||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* @template T of object
|
|
||||||
*
|
*
|
||||||
* @param mixed ...$arguments Key-value pairs (property name => value or Closure)
|
* @param mixed ...$arguments Key-value pairs (property name => value or Closure)
|
||||||
* @return T Anonymous class instance exposing dynamic properties/methods.
|
|
||||||
*/
|
*/
|
||||||
function emptyClass(mixed ...$arguments): object
|
function emptyClass(mixed ...$arguments): object
|
||||||
{
|
{
|
||||||
/** @var T */
|
/**
|
||||||
|
* @var array<string, mixed> $arguments
|
||||||
|
*/
|
||||||
return new class($arguments)
|
return new class($arguments)
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user