Skip to content

Commit 32d9354

Browse files
committed
fix(nova-5): nova's field resolveForDisplay method signature
1 parent de7dd57 commit 32d9354

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@
6767
"prefer-stable": true,
6868
"repositories": [
6969
{
70-
"type": "path",
71-
"url": "./tests/Fixtures/nova"
70+
"type": "composer",
71+
"url": "https://nova.laravel.com"
7272
}
7373
]
7474
}

src/NovaEditorJsField.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,10 @@ public function __construct($name, $attribute = null, ?callable $resolveCallback
4040
/**
4141
* Resolve the field's value for display.
4242
*
43-
* @param string|null $attribute
4443
*
4544
* @throws \Throwable
4645
*/
47-
public function resolveForDisplay($resource, $attribute = null)
46+
public function resolveForDisplay($resource, ?string $attribute = null): void
4847
{
4948
$attribute = $attribute ?? $this->attribute;
5049
if ($attribute === 'ComputedField') {

0 commit comments

Comments
 (0)