mirror of
https://github.com/flarum/core.git
synced 2025-07-26 03:01:22 +02:00
Pushing latest stuff
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Flarum\PHPStan\Reflection;
|
||||
|
||||
use PHPStan\Reflection\ParameterReflection;
|
||||
use PHPStan\Reflection\PassedByReference;
|
||||
use PHPStan\Type\MixedType;
|
||||
use PHPStan\Type\Type;
|
||||
|
||||
class DynamicWhereParameterReflection implements ParameterReflection
|
||||
{
|
||||
public function getName(): string
|
||||
{
|
||||
return 'dynamic-where-parameter';
|
||||
}
|
||||
|
||||
public function isOptional(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function getType(): Type
|
||||
{
|
||||
return new MixedType();
|
||||
}
|
||||
|
||||
public function passedByReference(): PassedByReference
|
||||
{
|
||||
return PassedByReference::createNo();
|
||||
}
|
||||
|
||||
public function isVariadic(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDefaultValue(): ?Type
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user