<?php declare(strict_types=1); namespace Roave\BetterReflection\Reflection\Exception; use RuntimeException; use function sprintf; class PropertyIsNotStatic extends RuntimeException { public static function fromName(string $propertyName) : self { return new self(sprintf('Property "%s" is not static', $propertyName)); } }