artesaos / seotools

SEO Tools for Laravel
MIT License
3.04k stars 503 forks source link

Unable to create new `JsonLd` instance with empty constructor parameters #169

Closed klimov-paul closed 2 years ago

klimov-paul commented 4 years ago

What steps will reproduce the problem?

Attempt to instantiate new JsonLd object with empty constructor arguments:

use Artesaos\SEOTools\JsonLd;

$jsonLd = new JsonLd();

What is the expected result?

A new object created successfully.

What do you get instead?

A PHP error occurs saying "Undefined index: title".

Additional info

Q A
This Package Version 0.15.0
Laravel Framework Version 5.8.31
PHP version 7.2
Operating system *
J-Brk commented 2 years ago

A solution was already implemented; closing this issue as resolved.