Skip to content

Conversation

@shmax
Copy link
Contributor

@shmax shmax commented Sep 3, 2023

Static checking for Model::count_by magic method.

use test\models\Book;

$numBooks = Book::count_by_name('Walden');
assert(is_int($numBooks));

...now passes static analysis.

@shmax shmax merged commit c8be525 into master Sep 3, 2023
@shmax shmax deleted the dynamic-count-by branch September 3, 2023 17:02
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