Skip to content

Commit

Permalink
Merge pull request #564 from hydephp/develop
Browse files Browse the repository at this point in the history
HydePHP v1.0.0 - Release Candidate Three
  • Loading branch information
caendesilva authored Mar 11, 2023
2 parents b492ebc + 05cceb1 commit ed118d4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Foundation/HydeKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class HydeKernel implements SerializableContract
use Serializable;
use Macroable;

final public const VERSION = '1.0.0-RC.2';
final public const VERSION = '1.0.0-RC.3';

protected static self $instance;

Expand Down
2 changes: 1 addition & 1 deletion src/Markdown/Contracts/FrontMatter/PageSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interface PageSchema extends FrontMatterSchema
{
public const PAGE_SCHEMA = [
'title' => 'string',
'canonicalUrl' => 'string',
'canonicalUrl' => 'string', // DEPRECATED
'navigation' => NavigationSchema::NAVIGATION_SCHEMA,
];
}
4 changes: 3 additions & 1 deletion src/Pages/Concerns/HydePage.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ abstract class HydePage implements PageSchema, SerializableContract
public PageMetadataBag $metadata;
public NavigationData $navigation;

public string $title;
public readonly string $title;

/** @deprecated v1.0.0-RC.3 - This property requires information that is setup-dependent, and will work better through a runtime accessor. Since it is mainly related to blog posts, it will be moved there. */
public ?string $canonicalUrl;

public static function make(string $identifier = '', FrontMatter|array $matter = []): static
Expand Down
4 changes: 1 addition & 3 deletions tests/Feature/HydePageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -370,9 +370,7 @@ public function test_all_returns_collection_of_all_parsed_source_files_from_page
MarkdownPage::all()
);
$this->assertEquals(
['_pages/foo.md' => tap(new MarkdownPage('foo'), function ($page) {
$page->title = 'Foo';
})],
['_pages/foo.md' => (new MarkdownPage('foo'))],
MarkdownPage::all()->all()
);
Filesystem::unlink('_pages/foo.md');
Expand Down

0 comments on commit ed118d4

Please sign in to comment.