Skip to content

Commit f2ac3c8

Browse files
authored
Merge pull request #1092 from hydephp/minor-compatible-schema-interface-updates
Minor compatible schema interface updates
2 parents 8492f21 + 0e44fd0 commit f2ac3c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/framework/src/Markdown/Contracts/FrontMatter/SubSchemas/FeaturedImageSchema.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ interface FeaturedImageSchema
1212
{
1313
public const FEATURED_IMAGE_SCHEMA = [
1414
'path' => 'string',
15-
'url' => 'string',
15+
'url' => 'string', // Takes precedence over path
1616
'description' => 'string',
1717
'title' => 'string',
1818
'copyright' => 'string',

packages/framework/tests/Unit/SchemaContractsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Hyde\Markdown\Contracts\FrontMatter\BlogPostSchema;
88
use Hyde\Markdown\Contracts\FrontMatter\PageSchema;
99
use Hyde\Markdown\Contracts\FrontMatter\SubSchemas\NavigationSchema;
10-
use Hyde\Testing\TestCase;
10+
use PHPUnit\Framework\TestCase;
1111

1212
/**
1313
* A state test to ensure the schemas can't be changed without breaking the tests.

0 commit comments

Comments
 (0)