LibraryDiscoveryParser::buildByExtension() is missing @throws tags.

Created on 27 October 2016, about 8 years ago
Updated 5 February 2023, almost 2 years ago

buildByExtension throws a range of exceptions not all of them a documented with a @throws tag

   * @throws \Drupal\Core\Asset\Exception\IncompleteLibraryDefinitionException
   *   Thrown when a library has no js/css/setting.
   * @throws \UnexpectedValueException
   *   Thrown when a js file defines a positive weight.

here is what is missing

\LogicException
LibraryDefinitionMissingLicenseException
UnexpectedValueException

This was seen while working on

#2808063: LibraryDiscoveryParser::buildByExtension() doesn't validate that extensions exist β†’

which adds extra exceptions so any patch here may cause conflicts.

πŸ› Bug report
Status

Fixed

Version

9.5

Component
DocumentationΒ  β†’

Last updated about 22 hours ago

No maintainer
Created by

πŸ‡¬πŸ‡§United Kingdom martin107

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024