Skip to content

Conversation

@kenjis
Copy link
Member

@kenjis kenjis commented Sep 7, 2022

No description provided.

@kenjis kenjis changed the title refactor: fix static analys errors refactor: fix static analysis errors Sep 7, 2022
]);
}

assert($token->last_used_at instanceof Time || $token->last_used_at === null);
Copy link
Member Author

Choose a reason for hiding this comment

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

I don't know why but without this line, phpstan reports errors.

Copy link
Member

@MGatner MGatner Sep 7, 2022

Choose a reason for hiding this comment

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

How about adding @property Time|null $last_used_at to the entity?

Oh, you already did! Yeah I'm not sure either.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Although I don't like doing anything without understanding the reason, #417 seems to be waiting for this PR.

@kenjis kenjis merged commit 96c1d39 into codeigniter4:develop Sep 7, 2022
@kenjis kenjis deleted the fix-sa-errors branch September 7, 2022 22:10
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.

3 participants