Update Document.php #29
Annotations
10 errors
phpstan:
src/Actions/Documents/Create.php#L16
Access to an undefined property Illuminate\Database\Eloquent\Model::$id.
|
phpstan:
src/Actions/Documents/Download.php#L37
Access to an undefined property JamesDordoy\HTMLable\Models\Document::$name.
|
phpstan:
src/Actions/Elements/Create.php#L22
Variable $validate on left side of ?? always exists and is not nullable.
|
phpstan:
src/Actions/Elements/Create.php#L24
Parameter #1 $attributes of static method Illuminate\Database\Eloquent\Builder<JamesDordoy\HTMLable\Models\Element>::create() expects array<model property of JamesDordoy\HTMLable\Models\Element, mixed>, bool given.
|
phpstan:
src/Http/Resources/Documents/DocumentResource.php#L17
Access to an undefined property JamesDordoy\HTMLable\Http\Resources\Documents\DocumentResource::$elements.
|
phpstan:
src/Http/Resources/Elements/ElementResource.php#L17
Access to an undefined property JamesDordoy\HTMLable\Http\Resources\Elements\ElementResource::$elements.
|
phpstan:
src/Models/Document.php#L36
Return type (Illuminate\Support\HtmlString) of method JamesDordoy\HTMLable\Models\Document::render() should be compatible with return type (string) of method Illuminate\Contracts\Support\Renderable::render()
|
phpstan:
src/Models/Document.php#L132
Parameter #1 $node of method JamesDordoy\HTMLable\Models\Document::saveElement() expects DOMElement, DOMNode given.
|
phpstan:
src/Models/Element.php#L40
Return type (Illuminate\Support\HtmlString) of method JamesDordoy\HTMLable\Models\Element::render() should be compatible with return type (string) of method Illuminate\Contracts\Support\Renderable::render()
|
phpstan:
src/Models/Element.php#L52
Access to an undefined property JamesDordoy\HTMLable\Models\Element::$tag.
|