src/Description.php
public function set(string $key, DescriptorInterface $descriptor, int $priority = 0)
    {
        // do not overwrite descriptor if a lower priority is given.
        if (isset($this->priorities[$key])) {
            if ($priority < $this->priorities[$key]) {
                return;
            }
        }

        $this->descriptors[$key] = $descriptor;
        $this->priorities[$key] = $priority;
    }
public function set(string $key, DescriptorInterface $descriptor, int $priority = 0)
    {
        // do not overwrite descriptor if a lower priority is given.
        if (isset($this->priorities[$key])) {
            if ($priority < $this->priorities[$key]) {
                return;
            }
        }

        $this->descriptors[$key] = $descriptor;
        $this->priorities[$key] = $priority;
    }
{@inheritdoc}