Backups Created:
/home/japatmex/public_html/wp-content/edit-wolf.php
Savvy
W
olf -
MANAGER
Edit File: DummyConstantReflection.php
<?php declare(strict_types = 1); namespace PHPStan\Reflection\Dummy; use PHPStan\Broker\Broker; use PHPStan\Reflection\ClassReflection; use PHPStan\Reflection\ConstantReflection; class DummyConstantReflection implements ConstantReflection { /** @var string */ private $name; public function __construct(string $name) { $this->name = $name; } public function getDeclaringClass(): ClassReflection { $broker = Broker::getInstance(); return $broker->getClass(\stdClass::class); } public function isStatic(): bool { return true; } public function isPrivate(): bool { return false; } public function isPublic(): bool { return true; } public function getName(): string { return $this->name; } /** * @return mixed */ public function getValue() { // so that Scope::getTypeFromValue() returns mixed return new \stdClass(); } }