Skip to content

Add phpstan type to NewsHandler#1932

Open
markrandall wants to merge 1 commit into
php:previewfrom
markrandall:phpstan-news-types
Open

Add phpstan type to NewsHandler#1932
markrandall wants to merge 1 commit into
php:previewfrom
markrandall:phpstan-news-types

Conversation

@markrandall

Copy link
Copy Markdown

Defines shape of NewsHandler entry.

Comment thread src/News/NewsHandler.php
/**
* Unused - Looks up generated news with frontpage tags.
*
* Currently unused as the front page no longer displays news.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's not really true yet, right? That needs a whole lot more works than just this PR.

Comment thread src/News/NewsHandler.php
/**
* @param NewsEntryStruct $data
*/
public static function parseTeaserCutoff(array $data): ?DateTimeImmutable

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two seem to be new functions? I can't see where they're used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants