- public function __construct($path) {
- if (!($mdref = current(glob("$path/*.mdref")))) {
- throw new \InvalidArgumentException(
- sprintf("Not a reference, could not find '*.mdref': '%s'",
- $path));
+ public function __construct(string $path) {
+ if (!($glob = glob("$path/*.mdref"))) {
+ throw new InvalidArgumentException(
+ sprintf("Not a reference, could not find '*.mdref': '%s'", $path));