Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions inc/Admin/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class Page implements Registrable {
*
* @since 0.1.0
*
* @var string
* @var string|false
*/
private string|false $hook_name = false;

Expand Down Expand Up @@ -245,7 +245,7 @@ private function get_callback(): \Closure {
*
* @since 0.1.0
*
* @return string The hook name of the menu page.
* @return string|false The hook name of the menu page.
*/
public function get_hook_name(): string|false {
return $this->hook_name;
Expand Down
6 changes: 6 additions & 0 deletions inc/Contracts/PostType.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,10 @@
* @since 0.3.2
*/
interface PostType {
/**
* Post type name.
*
* Implementations are expected to override this.
*/
public const string NAME = '';
}
3 changes: 1 addition & 2 deletions inc/PostMeta.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,8 @@ protected function post_type(): string {
*
* @since 0.1.0
*
* @return string Type of the data.
* @return 'array'|'boolean'|'integer'|'number'|'object'|'string' Type of the data.
*/
/** @return 'array'|'boolean'|'integer'|'number'|'object'|'string' */
protected function type(): string {
return PostMetaArgs::TYPE_STRING;
}
Expand Down
3 changes: 1 addition & 2 deletions inc/TermMeta.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,8 @@ protected function taxonomy(): string {
*
* @since 0.1.0
*
* @return string Type of the data.
* @return 'array'|'boolean'|'integer'|'number'|'object'|'string' Type of the data.
*/
/** @return 'array'|'boolean'|'integer'|'number'|'object'|'string' */
protected function type(): string {
return TermMetaArgs::TYPE_STRING;
}
Expand Down