librarianphp / librarian-core

Core Librarian Source
MIT License
4 stars 1 forks source link

Error: Uncaught TypeError on ContentProvider #23

Closed erikaheidi closed 1 year ago

erikaheidi commented 1 year ago

Something is broken with the ContentProvider. Having a look now.

127.0.0.1:38428 [500]: GET / - Uncaught TypeError: Librarian\Provider\ContentServiceProvider::fetchFrom(): Argument #1 ($contentType) must be of type Librarian\ContentType, string given, called in /home/erika/Projects/learnphp/vendor/librarianphp/librarian-core/src/Provider/LibrarianServiceProvider.php on line 86 and defined in /home/erika/Projects/learnphp/vendor/librarianphp/librarian-core/src/Provider/ContentServiceProvider.php:234
erikaheidi commented 1 year ago

The issue was actually in the "docs" theme calling the ` Twig function. Fixed it 👍🏼