willdurand / Negotiation

Content Negotiation tools for PHP.
https://williamdurand.fr/Negotiation/
MIT License
1.41k stars 62 forks source link

Fix invalid PHPDocs return comment #112

Closed michalbundyra closed 3 years ago

michalbundyra commented 3 years ago

As per Psalm error:

ERROR: InvalidDocblock - vendor/willdurand/negotiation/src/Negotiation/AbstractNegotiator.php:60:5 - Unexpected token [ in docblock for Negotiation\AbstractNegotiator::getOrderedElements (see https://psalm.dev/008)
    /**
     * @param string $header A string containing an `Accept|Accept-*` header.
     *
     * @return [AcceptHeader] An ordered list of accept header elements
     */
    public function getOrderedElements($header)
willdurand commented 3 years ago

thanks